From f7f63fbec6d54b5c5277410b1b5b0be12ef1099d Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Tue, 17 Mar 2026 16:06:03 +0100 Subject: [PATCH 01/12] adding v3.2 metamodel classes --- README.md | 8 +- .../aas4j/v3/model/AasSubmodelElements.java | 163 +++-- .../aas4j/v3/model/AbstractLangString.java | 92 +-- .../v3/model/AdministrativeInformation.java | 208 +++--- .../model/AnnotatedRelationshipElement.java | 58 +- .../v3/model/AssetAdministrationShell.java | 124 ++-- .../AssetAdministrationShellDescriptor.java | 177 ----- .../aas4j/v3/model/AssetInformation.java | 212 +++--- .../digitaltwin/aas4j/v3/model/AssetKind.java | 52 +- .../aas4j/v3/model/BaseOperationResult.java | 58 -- .../aas4j/v3/model/BasicEventElement.java | 342 ++++----- .../digitaltwin/aas4j/v3/model/Blob.java | 82 ++- .../aas4j/v3/model/Capability.java | 17 +- .../aas4j/v3/model/ConceptDescription.java | 52 +- .../v3/model/CustomDataSpecification.java | 22 - .../aas4j/v3/model/DataElement.java | 25 +- .../v3/model/DataSpecificationContent.java | 16 +- .../v3/model/DataSpecificationIec61360.java | 433 ++++++------ .../aas4j/v3/model/DataTypeDefXsd.java | 280 ++++---- .../aas4j/v3/model/DataTypeIec61360.java | 237 ++++--- .../aas4j/v3/model/Descriptor.java | 75 -- .../digitaltwin/aas4j/v3/model/Direction.java | 30 +- .../v3/model/EmbeddedDataSpecification.java | 92 +-- .../digitaltwin/aas4j/v3/model/Endpoint.java | 55 -- .../digitaltwin/aas4j/v3/model/Entity.java | 164 ++--- .../aas4j/v3/model/EntityType.java | 40 +- .../aas4j/v3/model/Environment.java | 123 ++-- .../aas4j/v3/model/EventElement.java | 21 +- .../aas4j/v3/model/EventPayload.java | 328 ++++----- .../aas4j/v3/model/ExecutionState.java | 47 -- .../digitaltwin/aas4j/v3/model/Extension.java | 156 ++-- .../digitaltwin/aas4j/v3/model/File.java | 92 +-- .../aas4j/v3/model/HasDataSpecification.java | 68 +- .../aas4j/v3/model/HasExtensions.java | 56 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 54 +- .../aas4j/v3/model/HasSemantics.java | 102 +-- .../aas4j/v3/model/Identifiable.java | 88 +-- .../digitaltwin/aas4j/v3/model/Key.java | 92 +-- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 237 ++++--- .../aas4j/v3/model/LangString.java | 92 +++ .../LangStringDefinitionTypeIec61360.java | 21 +- .../aas4j/v3/model/LangStringNameType.java | 21 +- .../LangStringPreferredNameTypeIec61360.java | 21 +- .../LangStringShortNameTypeIec61360.java | 21 +- .../aas4j/v3/model/LangStringTextType.java | 21 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 150 ++-- .../digitaltwin/aas4j/v3/model/Message.java | 100 --- .../aas4j/v3/model/MessageType.java | 43 -- .../digitaltwin/aas4j/v3/model/ModelType.java | 99 --- .../aas4j/v3/model/ModellingKind.java | 40 +- .../aas4j/v3/model/MultiLanguageProperty.java | 88 +-- .../digitaltwin/aas4j/v3/model/Operation.java | 122 ++-- .../aas4j/v3/model/OperationHandle.java | 40 -- .../aas4j/v3/model/OperationRequest.java | 72 -- .../aas4j/v3/model/OperationResult.java | 56 -- .../aas4j/v3/model/OperationVariable.java | 50 +- .../aas4j/v3/model/PackageDescription.java | 56 -- .../digitaltwin/aas4j/v3/model/Property.java | 120 ++-- .../aas4j/v3/model/ProtocolInformation.java | 135 ---- .../aas4j/v3/model/Qualifiable.java | 56 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 202 +++--- .../aas4j/v3/model/QualifierKind.java | 38 +- .../digitaltwin/aas4j/v3/model/Range.java | 120 ++-- .../digitaltwin/aas4j/v3/model/Referable.java | 164 ++--- .../digitaltwin/aas4j/v3/model/Reference.java | 122 ++-- .../aas4j/v3/model/ReferenceElement.java | 54 +- .../aas4j/v3/model/ReferenceTypes.java | 30 +- .../aas4j/v3/model/RelationshipElement.java | 82 +-- .../digitaltwin/aas4j/v3/model/Resource.java | 82 ++- .../digitaltwin/aas4j/v3/model/Result.java | 44 -- .../v3/model/SecurityAttributeObject.java | 82 --- .../aas4j/v3/model/SecurityTypeEnum.java | 35 - .../aas4j/v3/model/SpecificAssetId.java | 120 ++-- .../aas4j/v3/model/StateOfEvent.java | 30 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 61 +- .../aas4j/v3/model/SubmodelDescriptor.java | 116 --- .../aas4j/v3/model/SubmodelElement.java | 34 +- .../v3/model/SubmodelElementCollection.java | 52 +- .../aas4j/v3/model/SubmodelElementList.java | 218 +++--- .../digitaltwin/aas4j/v3/model/ValueList.java | 56 +- .../aas4j/v3/model/ValueReferencePair.java | 82 ++- .../aas4j/v3/model/annotations/IRI.java | 23 +- .../v3/model/annotations/KnownSubtypes.java | 32 +- .../v3/model/builder/AbstractBuilder.java | 32 +- .../AdministrativeInformationBuilder.java | 157 +++-- .../AnnotatedRelationshipElementBuilder.java | 430 +++++------ .../AssetAdministrationShellBuilder.java | 364 +++++----- ...tAdministrationShellDescriptorBuilder.java | 231 ------ .../builder/AssetInformationBuilder.java | 134 ++-- .../builder/BaseOperationResultBuilder.java | 70 -- .../builder/BasicEventElementBuilder.java | 474 ++++++------- .../aas4j/v3/model/builder/BlobBuilder.java | 388 +++++----- .../aas4j/v3/model/builder/Builder.java | 10 +- .../v3/model/builder/CapabilityBuilder.java | 344 ++++----- .../builder/ConceptDescriptionBuilder.java | 320 ++++----- .../DataSpecificationIec61360Builder.java | 343 ++++----- .../v3/model/builder/DescriptorBuilder.java | 92 --- .../EmbeddedDataSpecificationBuilder.java | 52 +- .../v3/model/builder/EndpointBuilder.java | 45 -- .../aas4j/v3/model/builder/EntityBuilder.java | 434 ++++++------ .../v3/model/builder/EnvironmentBuilder.java | 134 ++-- .../v3/model/builder/EventPayloadBuilder.java | 173 +++-- .../v3/model/builder/ExtendableBuilder.java | 13 +- .../v3/model/builder/ExtensionBuilder.java | 174 ++--- .../aas4j/v3/model/builder/FileBuilder.java | 388 +++++----- .../aas4j/v3/model/builder/KeyBuilder.java | 52 +- ...ngStringDefinitionTypeIec61360Builder.java | 53 +- .../builder/LangStringNameTypeBuilder.java | 52 +- ...tringPreferredNameTypeIec61360Builder.java | 53 +- ...angStringShortNameTypeIec61360Builder.java | 53 +- .../builder/LangStringTextTypeBuilder.java | 52 +- .../v3/model/builder/LevelTypeBuilder.java | 92 +-- .../v3/model/builder/MessageBuilder.java | 78 -- .../builder/MultiLanguagePropertyBuilder.java | 408 +++++------ .../v3/model/builder/OperationBuilder.java | 434 ++++++------ .../model/builder/OperationHandleBuilder.java | 34 - .../builder/OperationRequestBuilder.java | 81 --- .../model/builder/OperationResultBuilder.java | 114 --- .../builder/OperationVariableBuilder.java | 32 +- .../builder/PackageDescriptionBuilder.java | 57 -- .../v3/model/builder/PropertyBuilder.java | 410 +++++------ .../builder/ProtocolInformationBuilder.java | 124 ---- .../v3/model/builder/QualifierBuilder.java | 174 ++--- .../aas4j/v3/model/builder/RangeBuilder.java | 410 +++++------ .../v3/model/builder/ReferenceBuilder.java | 94 +-- .../builder/ReferenceElementBuilder.java | 364 +++++----- .../builder/RelationshipElementBuilder.java | 386 +++++----- .../v3/model/builder/ResourceBuilder.java | 52 +- .../aas4j/v3/model/builder/ResultBuilder.java | 46 -- .../SecurityAttributeObjectBuilder.java | 57 -- .../model/builder/SpecificAssetIdBuilder.java | 134 ++-- .../v3/model/builder/SubmodelBuilder.java | 454 ++++++------ .../builder/SubmodelDescriptorBuilder.java | 184 ----- .../SubmodelElementCollectionBuilder.java | 386 +++++----- .../builder/SubmodelElementListBuilder.java | 434 ++++++------ .../v3/model/builder/ValueListBuilder.java | 54 +- .../builder/ValueReferencePairBuilder.java | 52 +- .../DefaultAdministrativeInformation.java | 302 ++++---- .../DefaultAnnotatedRelationshipElement.java | 487 +++++++------ .../impl/DefaultAssetAdministrationShell.java | 446 ++++++------ ...ultAssetAdministrationShellDescriptor.java | 293 -------- .../model/impl/DefaultAssetInformation.java | 252 ++++--- .../impl/DefaultBaseOperationResult.java | 116 --- .../model/impl/DefaultBasicEventElement.java | 667 +++++++++--------- .../aas4j/v3/model/impl/DefaultBlob.java | 456 ++++++------ .../v3/model/impl/DefaultCapability.java | 399 +++++------ .../model/impl/DefaultConceptDescription.java | 403 +++++------ .../DefaultDataSpecificationIec61360.java | 489 +++++++------ .../v3/model/impl/DefaultDescriptor.java | 119 ---- .../DefaultEmbeddedDataSpecification.java | 146 ++-- .../aas4j/v3/model/impl/DefaultEndpoint.java | 100 --- .../aas4j/v3/model/impl/DefaultEntity.java | 518 +++++++------- .../v3/model/impl/DefaultEnvironment.java | 180 ++--- .../v3/model/impl/DefaultEventPayload.java | 363 +++++----- .../aas4j/v3/model/impl/DefaultExtension.java | 287 ++++---- .../aas4j/v3/model/impl/DefaultFile.java | 453 ++++++------ .../aas4j/v3/model/impl/DefaultKey.java | 128 ++-- ...faultLangStringDefinitionTypeIec61360.java | 148 ++-- .../model/impl/DefaultLangStringNameType.java | 147 ++-- ...ltLangStringPreferredNameTypeIec61360.java | 156 ++-- ...efaultLangStringShortNameTypeIec61360.java | 148 ++-- .../model/impl/DefaultLangStringTextType.java | 147 ++-- .../aas4j/v3/model/impl/DefaultLevelType.java | 211 +++--- .../aas4j/v3/model/impl/DefaultMessage.java | 151 ---- .../impl/DefaultMultiLanguageProperty.java | 452 ++++++------ .../aas4j/v3/model/impl/DefaultOperation.java | 484 +++++++------ .../v3/model/impl/DefaultOperationHandle.java | 79 --- .../model/impl/DefaultOperationRequest.java | 106 --- .../v3/model/impl/DefaultOperationResult.java | 156 ---- .../model/impl/DefaultOperationVariable.java | 104 +-- .../model/impl/DefaultPackageDescription.java | 102 --- .../aas4j/v3/model/impl/DefaultProperty.java | 485 +++++++------ .../impl/DefaultProtocolInformation.java | 169 ----- .../aas4j/v3/model/impl/DefaultQualifier.java | 334 +++++---- .../aas4j/v3/model/impl/DefaultRange.java | 486 +++++++------ .../aas4j/v3/model/impl/DefaultReference.java | 181 ++--- .../model/impl/DefaultReferenceElement.java | 434 ++++++------ .../impl/DefaultRelationshipElement.java | 452 ++++++------ .../aas4j/v3/model/impl/DefaultResource.java | 149 ++-- .../aas4j/v3/model/impl/DefaultResult.java | 82 --- .../impl/DefaultSecurityAttributeObject.java | 108 --- .../v3/model/impl/DefaultSpecificAssetId.java | 252 ++++--- .../aas4j/v3/model/impl/DefaultSubmodel.java | 520 +++++++------- .../model/impl/DefaultSubmodelDescriptor.java | 230 ------ .../DefaultSubmodelElementCollection.java | 433 ++++++------ .../impl/DefaultSubmodelElementList.java | 553 +++++++-------- .../aas4j/v3/model/impl/DefaultValueList.java | 108 +-- .../model/impl/DefaultValueReferencePair.java | 130 ++-- pom.xml | 6 +- 189 files changed, 14250 insertions(+), 18200 deletions(-) delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java diff --git a/README.md b/README.md index 65147cf45..c0502cc54 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Eclipse AAS4J -> :newspaper: The _`Eclipse AAS4J 2.0.1`_ release is available on [Maven Central Repository](https://oss.sonatype.org/#nexus-search;quick~org.eclipse.digitaltwin.aas4j) and includes the -> following artifacts implementing the _AAS Specs – [Part 1 V3.1](https://industrialdigitaltwin.org/en/wp-content/uploads/sites/2/2025/06/IDTA_01001-25-01_AAS-Specification_Part1_Metamodel.pdf)_: `aas4j-dataformat-core`, `aas4j-dataformat-aasx`, +> :newspaper: The _`Eclipse AAS4J 3.0.0`_ release is available on [Maven Central Repository](https://oss.sonatype.org/#nexus-search;quick~org.eclipse.digitaltwin.aas4j) and includes the +> following artifacts implementing the _AAS Specs – [Part 1 V3.2](https://industrialdigitaltwin.org/en/wp-content/uploads/sites/2/2026/06/IDTA_01001-26-01_AAS-Specification_Part1_Metamodel.pdf)_: `aas4j-dataformat-core`, `aas4j-dataformat-aasx`, > `aas4j-dataformat-xml`, `aas4j-dataformat-json`, `aas4j-dataformat-parent`, and `aas4j-model`. [Eclipse AAS4J](https://projects.eclipse.org/projects/dt.aas4j) implements the specification of the Asset Administration @@ -134,9 +134,9 @@ An updated list of the committers can be found here: https://projects.eclipse.or This project was initiated by SAP and Fraunhofer to provide a foundation for the AAS development and to foster its dissemination. ## License -Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. +Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. -Copyright 2023 SAP SE or an SAP affiliate company and Eclipse AAS4J contributors. +Copyright 2026 SAP SE or an SAP affiliate company and Eclipse AAS4J contributors. The serializers contained in this repository provide the functionalities to serialize and deserialize instances of the Asset Administration Shell (AAS) data model from and to the AAS Java Model library. It is licensed under the Apache License 2.0 (see [LICENSE](https://github.com/eclipse-aas4j/aas4j/blob/main/LICENSE)). diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index 5d90665c9..415e73a45 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,77 +14,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration of all possible elements of a 'SubmodelElementList'. */ + +/** + * Enumeration of all possible elements of a 'SubmodelElementList'. + */ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Blob") - BLOB, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Capability") - CAPABILITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/DataElement") - DATA_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Entity") - ENTITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/EventElement") - EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/File") - FILE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Operation") - OPERATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Property") - PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Range") - RANGE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/ReferenceElement") - REFERENCE_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/SubmodelElement") - SUBMODEL_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") + BLOB, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") + CAPABILITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") + DATA_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") + ENTITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") + EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") + FILE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") + OPERATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") + PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") + RANGE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") + REFERENCE_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") + SUBMODEL_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; - /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index a3c668b93..c613ac218 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,54 +14,59 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** Strings with language tags */ + +/** + * Strings with language tags + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringTextType.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringTextType.class) }) public interface AbstractLangString { - /** - * Language tag conforming to BCP 47 - * - *

More information under https://admin-shell.io/aas/3/1/AbstractLangString/language - * - * @return Returns the String for the property language. - */ - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/language") - String getLanguage(); + /** + * Language tag conforming to BCP 47 + * + * More information under https://admin-shell.io/aas/3/2/AbstractLangString/language + * + * @return Returns the String for the property language. + */ + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + String getLanguage(); + + /** + * Language tag conforming to BCP 47 + * + * More information under https://admin-shell.io/aas/3/2/AbstractLangString/language + * + * @param language desired value for the property language. + */ + void setLanguage(String language); - /** - * Language tag conforming to BCP 47 - * - *

More information under https://admin-shell.io/aas/3/1/AbstractLangString/language - * - * @param language desired value for the property language. - */ - void setLanguage(String language); + /** + * Text in the 'language' + * + * More information under https://admin-shell.io/aas/3/2/AbstractLangString/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + String getText(); - /** - * Text in the 'language' - * - *

More information under https://admin-shell.io/aas/3/1/AbstractLangString/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/text") - String getText(); + /** + * Text in the 'language' + * + * More information under https://admin-shell.io/aas/3/2/AbstractLangString/text + * + * @param text desired value for the property text. + */ + void setText(String text); - /** - * Text in the 'language' - * - *

More information under https://admin-shell.io/aas/3/1/AbstractLangString/text - * - * @param text desired value for the property text. - */ - void setText(String text); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 4d3f539f9..1b29510e7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,87 +14,134 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAdministrativeInformation; -/** Administrative meta-information for an element like version information. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAdministrativeInformation.class)}) +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + * Administrative meta-information for an element like version information. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) +}) public interface AdministrativeInformation extends HasDataSpecification { - /** - * Version of the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/version - * - * @return Returns the String for the property version. - */ - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/version") - String getVersion(); - - /** - * Version of the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/version - * - * @param version desired value for the property version. - */ - void setVersion(String version); - - /** - * Revision of the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/revision - * - * @return Returns the String for the property revision. - */ - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/revision") - String getRevision(); - - /** - * Revision of the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/revision - * - * @param revision desired value for the property revision. - */ - void setRevision(String revision); - - /** - * The subject ID of the subject responsible for making the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/creator - * - * @return Returns the Reference for the property creator. - */ - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/creator") - Reference getCreator(); - - /** - * The subject ID of the subject responsible for making the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/creator - * - * @param creator desired value for the property creator. - */ - void setCreator(Reference creator); - - /** - * Identifier of the template that guided the creation of the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/templateId - * - * @return Returns the String for the property templateId. - */ - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/templateId") - String getTemplateId(); - - /** - * Identifier of the template that guided the creation of the element. - * - *

More information under https://admin-shell.io/aas/3/1/AdministrativeInformation/templateId - * - * @param templateId desired value for the property templateId. - */ - void setTemplateId(String templateId); + /** + * The date and time when the element was created. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt + * + * @return Returns the XMLGregorianCalendar for the property createdAt. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") + XMLGregorianCalendar getCreatedAt(); + + /** + * The date and time when the element was created. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt + * + * @param createdAt desired value for the property createdAt. + */ + void setCreatedAt(XMLGregorianCalendar createdAt); + + /** + * Version of the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version + * + * @return Returns the String for the property version. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") + String getVersion(); + + /** + * Version of the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version + * + * @param version desired value for the property version. + */ + void setVersion(String version); + + /** + * Revision of the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision + * + * @return Returns the String for the property revision. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") + String getRevision(); + + /** + * Revision of the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision + * + * @param revision desired value for the property revision. + */ + void setRevision(String revision); + + /** + * The subject ID of the subject responsible for making the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator + * + * @return Returns the Reference for the property creator. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") + Reference getCreator(); + + /** + * The subject ID of the subject responsible for making the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator + * + * @param creator desired value for the property creator. + */ + void setCreator(Reference creator); + + /** + * Identifier of the template that guided the creation of the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId + * + * @return Returns the String for the property templateId. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") + String getTemplateId(); + + /** + * Identifier of the template that guided the creation of the element. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId + * + * @param templateId desired value for the property templateId. + */ + void setTemplateId(String templateId); + + /** + * The date and time when the element was last updated. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt + * + * @return Returns the XMLGregorianCalendar for the property updatedAt. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") + XMLGregorianCalendar getUpdatedAt(); + + /** + * The date and time when the element was last updated. + * + * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt + * + * @param updatedAt desired value for the property updatedAt. + */ + void setUpdatedAt(XMLGregorianCalendar updatedAt); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index 47c48c079..d12cf09d6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,38 +14,41 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAnnotatedRelationshipElement; +import java.util.List; + + /** * An annotated relationship element is a relationship element that can be annotated with additional * data elements. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) +}) public interface AnnotatedRelationshipElement extends RelationshipElement { - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - * - *

More information under - * https://admin-shell.io/aas/3/1/AnnotatedRelationshipElement/annotations - * - * @return Returns the List of DataElements for the property annotations. - */ - @IRI("https://admin-shell.io/aas/3/1/AnnotatedRelationshipElement/annotations") - List getAnnotations(); - - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - * - *

More information under - * https://admin-shell.io/aas/3/1/AnnotatedRelationshipElement/annotations - * - * @param annotations desired value for the property annotations. - */ - void setAnnotations(List annotations); + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations + * + * @return Returns the List of DataElements for the property annotations. + */ + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") + List getAnnotations(); + + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations + * + * @param annotations desired value for the property annotations. + */ + void setAnnotations(List annotations); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index 6cda2e6fa..aa18cc1e1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,71 +14,76 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShell; -/** An asset administration shell. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class)}) +import java.util.List; + + +/** + * An asset administration shell. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) +}) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { - /** - * The reference to the AAS the AAS was derived from. - * - *

More information under https://admin-shell.io/aas/3/1/AssetAdministrationShell/derivedFrom - * - * @return Returns the Reference for the property derivedFrom. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/derivedFrom") - Reference getDerivedFrom(); + /** + * The reference to the AAS the AAS was derived from. + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom + * + * @return Returns the Reference for the property derivedFrom. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") + Reference getDerivedFrom(); + + /** + * The reference to the AAS the AAS was derived from. + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom + * + * @param derivedFrom desired value for the property derivedFrom. + */ + void setDerivedFrom(Reference derivedFrom); - /** - * The reference to the AAS the AAS was derived from. - * - *

More information under https://admin-shell.io/aas/3/1/AssetAdministrationShell/derivedFrom - * - * @param derivedFrom desired value for the property derivedFrom. - */ - void setDerivedFrom(Reference derivedFrom); + /** + * Meta-information about the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation + * + * @return Returns the AssetInformation for the property assetInformation. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") + AssetInformation getAssetInformation(); - /** - * Meta-information about the asset the AAS is representing. - * - *

More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShell/assetInformation - * - * @return Returns the AssetInformation for the property assetInformation. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/assetInformation") - AssetInformation getAssetInformation(); + /** + * Meta-information about the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation + * + * @param assetInformation desired value for the property assetInformation. + */ + void setAssetInformation(AssetInformation assetInformation); - /** - * Meta-information about the asset the AAS is representing. - * - *

More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShell/assetInformation - * - * @param assetInformation desired value for the property assetInformation. - */ - void setAssetInformation(AssetInformation assetInformation); + /** + * References to submodels of the AAS. + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels + * + * @return Returns the List of References for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") + List getSubmodels(); - /** - * References to submodels of the AAS. - * - *

More information under https://admin-shell.io/aas/3/1/AssetAdministrationShell/submodels - * - * @return Returns the List of References for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/submodels") - List getSubmodels(); + /** + * References to submodels of the AAS. + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); - /** - * References to submodels of the AAS. - * - *

More information under https://admin-shell.io/aas/3/1/AssetAdministrationShell/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java deleted file mode 100644 index 78cd5133d..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellDescriptor; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class)}) -public interface AssetAdministrationShellDescriptor extends Descriptor { - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetKind - * - * @return Returns the AssetKind for the property assetKind. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetKind") - AssetKind getAssetKind(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetKind - * - * @param assetKind desired value for the property assetKind. - */ - void setAssetKind(AssetKind assetKind); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetType - * - * @return Returns the String for the property assetType. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetType") - String getAssetType(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetType - * - * @param assetType desired value for the property assetType. - */ - void setAssetType(String assetType); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/endpoints - * - * @return Returns the List of Endpoints for the property endpoints. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/endpoints") - List getEndpoints(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/globalAssetId") - String getGlobalAssetId(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/idShort") - String getIdShort(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * More information under https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/id") - String getId(); - - /** - * More information under https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/id - * - * @param id desired value for the property id. - */ - void setId(String id); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/specificAssetIds") - List getSpecificAssetIds(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @return Returns the List of SubmodelDescriptors for the property submodelDescriptors. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/submodelDescriptors") - List getSubmodelDescriptors(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @param submodelDescriptors desired value for the property submodelDescriptors. - */ - void setSubmodelDescriptors(List submodelDescriptors); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 6f6fd34a3..29d3a9122 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,114 +14,119 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetInformation; +import java.util.List; + + /** * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetInformation.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetInformation.class) +}) public interface AssetInformation { - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/assetKind - * - * @return Returns the AssetKind for the property assetKind. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/assetKind") - AssetKind getAssetKind(); - - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/assetKind - * - * @param assetKind desired value for the property assetKind. - */ - void setAssetKind(AssetKind assetKind); - - /** - * Global identifier of the asset the AAS is representing. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/globalAssetId") - String getGlobalAssetId(); - - /** - * Global identifier of the asset the AAS is representing. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/specificAssetIds") - List getSpecificAssetIds(); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the - * asset under consideration as identified by 'globalAssetId'. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/assetType - * - * @return Returns the String for the property assetType. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/assetType") - String getAssetType(); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the - * asset under consideration as identified by 'globalAssetId'. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/assetType - * - * @param assetType desired value for the property assetType. - */ - void setAssetType(String assetType); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/defaultThumbnail - * - * @return Returns the Resource for the property defaultThumbnail. - */ - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/defaultThumbnail") - Resource getDefaultThumbnail(); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/1/AssetInformation/defaultThumbnail - * - * @param defaultThumbnail desired value for the property defaultThumbnail. - */ - void setDefaultThumbnail(Resource defaultThumbnail); + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind + * + * @return Returns the AssetKind for the property assetKind. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") + AssetKind getAssetKind(); + + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind + * + * @param assetKind desired value for the property assetKind. + */ + void setAssetKind(AssetKind assetKind); + + /** + * Global identifier of the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") + String getGlobalAssetId(); + + /** + * Global identifier of the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") + List getSpecificAssetIds(); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset + * under consideration as identified by 'globalAssetId'. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType + * + * @return Returns the String for the property assetType. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") + String getAssetType(); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset + * under consideration as identified by 'globalAssetId'. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType + * + * @param assetType desired value for the property assetType. + */ + void setAssetType(String assetType); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail + * + * @return Returns the Resource for the property defaultThumbnail. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") + Resource getDefaultThumbnail(); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail + * + * @param defaultThumbnail desired value for the property defaultThumbnail. + */ + void setDefaultThumbnail(Resource defaultThumbnail); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 4c24c0843..86c537ad7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,25 +14,44 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an asset is a type asset or an instance asset. */ + +/** + * Enumeration for denoting whether an asset is a type asset or an instance asset. + */ @IRI("aas:AssetKind") public enum AssetKind { - /** Instance asset */ - @IRI("https://admin-shell.io/aas/3/1/AssetKind/Instance") - INSTANCE, + /** + * Batch + */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Batch") + BATCH, + + /** + * Instance asset + */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Instance") + INSTANCE, + + /** + * Neither a type asset nor an instance asset nor a role asset + */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/NotApplicable") + NOT_APPLICABLE, - /** Neither a type asset nor an instance asset nor a role asset */ - @IRI("https://admin-shell.io/aas/3/1/AssetKind/NotApplicable") - NOT_APPLICABLE, + /** + * Role asset + */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Role") + ROLE, - /** Role asset */ - @IRI("https://admin-shell.io/aas/3/1/AssetKind/Role") - ROLE, + /** + * Type asset + */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") + TYPE; - /** Type asset */ - @IRI("https://admin-shell.io/aas/3/1/AssetKind/Type") - TYPE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java deleted file mode 100644 index 780a3ecf3..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBaseOperationResult; - -/** */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBaseOperationResult.class), - @KnownSubtypes.Type(value = OperationResult.class) -}) -public interface BaseOperationResult extends Result { - - /** - * More information under https://admin-shell.io/aas/3/1/BaseOperationResult/executionState - * - * @return Returns the ExecutionState for the property executionState. - */ - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/executionState") - ExecutionState getExecutionState(); - - /** - * More information under https://admin-shell.io/aas/3/1/BaseOperationResult/executionState - * - * @param executionState desired value for the property executionState. - */ - void setExecutionState(ExecutionState executionState); - - /** - * More information under https://admin-shell.io/aas/3/1/BaseOperationResult/success - * - * @return Returns the boolean for the property success. - */ - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/success") - boolean getSuccess(); - - /** - * More information under https://admin-shell.io/aas/3/1/BaseOperationResult/success - * - * @param success desired value for the property success. - */ - void setSuccess(boolean success); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 42a77a00e..046393f92 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,175 +14,180 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBasicEventElement; -/** A basic event element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBasicEventElement.class)}) + +/** + * A basic event element. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultBasicEventElement.class) +}) public interface BasicEventElement extends EventElement { - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/observed - * - * @return Returns the Reference for the property observed. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/observed") - Reference getObserved(); - - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/observed - * - * @param observed desired value for the property observed. - */ - void setObserved(Reference observed); - - /** - * Direction of event. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/direction - * - * @return Returns the Direction for the property direction. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/direction") - Direction getDirection(); - - /** - * Direction of event. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/direction - * - * @param direction desired value for the property direction. - */ - void setDirection(Direction direction); - - /** - * State of event. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/state - * - * @return Returns the StateOfEvent for the property state. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/state") - StateOfEvent getState(); - - /** - * State of event. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/state - * - * @param state desired value for the property state. - */ - void setState(StateOfEvent state); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/messageTopic - * - * @return Returns the String for the property messageTopic. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/messageTopic") - String getMessageTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/messageTopic - * - * @param messageTopic desired value for the property messageTopic. - */ - void setMessageTopic(String messageTopic); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/messageBroker - * - * @return Returns the Reference for the property messageBroker. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/messageBroker") - Reference getMessageBroker(); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/messageBroker - * - * @param messageBroker desired value for the property messageBroker. - */ - void setMessageBroker(Reference messageBroker); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output - * direction). - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/lastUpdate - * - * @return Returns the String for the property lastUpdate. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/lastUpdate") - String getLastUpdate(); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output - * direction). - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/lastUpdate - * - * @param lastUpdate desired value for the property lastUpdate. - */ - void setLastUpdate(String lastUpdate); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the - * respective Referable can handle input events. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/minInterval - * - * @return Returns the String for the property minInterval. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/minInterval") - String getMinInterval(); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the - * respective Referable can handle input events. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/minInterval - * - * @param minInterval desired value for the property minInterval. - */ - void setMinInterval(String minInterval); - - /** - * For input direction: not applicable. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/maxInterval - * - * @return Returns the String for the property maxInterval. - */ - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/maxInterval") - String getMaxInterval(); - - /** - * For input direction: not applicable. - * - *

More information under https://admin-shell.io/aas/3/1/BasicEventElement/maxInterval - * - * @param maxInterval desired value for the property maxInterval. - */ - void setMaxInterval(String maxInterval); + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed + * + * @return Returns the Reference for the property observed. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") + Reference getObserved(); + + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed + * + * @param observed desired value for the property observed. + */ + void setObserved(Reference observed); + + /** + * Direction of event. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction + * + * @return Returns the Direction for the property direction. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") + Direction getDirection(); + + /** + * Direction of event. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction + * + * @param direction desired value for the property direction. + */ + void setDirection(Direction direction); + + /** + * State of event. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/state + * + * @return Returns the StateOfEvent for the property state. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") + StateOfEvent getState(); + + /** + * State of event. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/state + * + * @param state desired value for the property state. + */ + void setState(StateOfEvent state); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic + * + * @return Returns the String for the property messageTopic. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") + String getMessageTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic + * + * @param messageTopic desired value for the property messageTopic. + */ + void setMessageTopic(String messageTopic); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker + * + * @return Returns the Reference for the property messageBroker. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") + Reference getMessageBroker(); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker + * + * @param messageBroker desired value for the property messageBroker. + */ + void setMessageBroker(Reference messageBroker); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate + * + * @return Returns the String for the property lastUpdate. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") + String getLastUpdate(); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate + * + * @param lastUpdate desired value for the property lastUpdate. + */ + void setLastUpdate(String lastUpdate); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the respective + * Referable can handle input events. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval + * + * @return Returns the String for the property minInterval. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") + String getMinInterval(); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the respective + * Referable can handle input events. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval + * + * @param minInterval desired value for the property minInterval. + */ + void setMinInterval(String minInterval); + + /** + * For input direction: not applicable. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval + * + * @return Returns the String for the property maxInterval. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") + String getMaxInterval(); + + /** + * For input direction: not applicable. + * + * More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval + * + * @param maxInterval desired value for the property maxInterval. + */ + void setMaxInterval(String maxInterval); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index 4dd85abf3..b3b5e8513 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +14,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBlob; + /** * A 'Blob' is a data element that represents a file that is contained with its source code in the * value attribute. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBlob.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultBlob.class) +}) public interface Blob extends DataElement { - /** - * The value of the 'Blob' instance of a blob data element. - * - *

More information under https://admin-shell.io/aas/3/1/Blob/value - * - * @return Returns the byte[] for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/Blob/value") - byte[] getValue(); + /** + * The value of the 'Blob' instance of a blob data element. + * + * More information under https://admin-shell.io/aas/3/2/Blob/value + * + * @return Returns the byte[] for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Blob/value") + byte[] getValue(); + + /** + * The value of the 'Blob' instance of a blob data element. + * + * More information under https://admin-shell.io/aas/3/2/Blob/value + * + * @param value desired value for the property value. + */ + void setValue(byte[] value); - /** - * The value of the 'Blob' instance of a blob data element. - * - *

More information under https://admin-shell.io/aas/3/1/Blob/value - * - * @param value desired value for the property value. - */ - void setValue(byte[] value); + /** + * Content type of the content of the 'Blob'. + * + * More information under https://admin-shell.io/aas/3/2/Blob/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") + String getContentType(); - /** - * Content type of the content of the 'Blob'. - * - *

More information under https://admin-shell.io/aas/3/1/Blob/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/1/Blob/contentType") - String getContentType(); + /** + * Content type of the content of the 'Blob'. + * + * More information under https://admin-shell.io/aas/3/2/Blob/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); - /** - * Content type of the content of the 'Blob'. - * - *

More information under https://admin-shell.io/aas/3/1/Blob/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index ad53bf3c2..26cb02ec6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,12 +14,18 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCapability; + /** * A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultCapability.class)}) -public interface Capability extends SubmodelElement {} +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultCapability.class) +}) +public interface Capability extends SubmodelElement { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index f81df8901..ed1f095f5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,34 +14,39 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultConceptDescription; +import java.util.List; + + /** * The semantics of a property or other elements that may have a semantic description is defined by * a concept description. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultConceptDescription.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultConceptDescription.class) +}) public interface ConceptDescription extends HasDataSpecification, Identifiable { - /** - * Reference to an external definition the concept is compatible to or was derived from. - * - *

More information under https://admin-shell.io/aas/3/1/ConceptDescription/isCaseOf - * - * @return Returns the List of References for the property isCaseOfs. - */ - @IRI("https://admin-shell.io/aas/3/1/ConceptDescription/isCaseOf") - List getIsCaseOf(); - - /** - * Reference to an external definition the concept is compatible to or was derived from. - * - *

More information under https://admin-shell.io/aas/3/1/ConceptDescription/isCaseOf - * - * @param isCaseOf desired value for the property isCaseOfs. - */ - void setIsCaseOf(List isCaseOf); + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf + * + * @return Returns the List of References for the property isCaseOfs. + */ + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") + List getIsCaseOfs(); + + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf + * + * @param isCaseOfs desired value for the property isCaseOfs. + */ + void setIsCaseOfs(List isCaseOfs); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java deleted file mode 100644 index 6cfb21b9d..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2023 SAP SE or an SAP affiliate company. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.eclipse.digitaltwin.aas4j.v3.model; - -/** - * This interface is needed to test the serialization/deserialization of a custom data specification - * content. See: https://github.com/eclipse-aas4j/aas4j/issues/196 - */ -public interface CustomDataSpecification extends DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 8dda5b503..221967ea2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +14,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; + /** * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) -public interface DataElement extends SubmodelElement {} +public interface DataElement extends SubmodelElement { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index bcbc67bbc..1374d590c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,15 +14,18 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; + /** * Data specification content is part of a data specification template and defines which additional * attributes shall be added to the element instance that references the data specification template * and meta information about the template itself. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class), - @KnownSubtypes.Type(value = CustomDataSpecification.class) + @KnownSubtypes.Type(value = DataSpecificationIec61360.class) }) -public interface DataSpecificationContent {} +public interface DataSpecificationContent { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index cc3c097c1..abef0cd7a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,248 +14,250 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDataSpecificationIec61360; +import java.util.List; + + /** - * Content of data specification template for concept description for properties, values and value + * Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) +}) public interface DataSpecificationIec61360 extends DataSpecificationContent { - /** - * Preferred name - * - *

More information under - * https://admin-shell.io/aas/3/1/DataSpecificationIec61360/preferredName - * - * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property - * preferredNames. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/preferredName") - List getPreferredName(); + /** + * Preferred name + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName + * + * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredNames. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") + List getPreferredNames(); + + /** + * Preferred name + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName + * + * @param preferredNames desired value for the property preferredNames. + */ + void setPreferredNames(List preferredNames); - /** - * Preferred name - * - *

More information under - * https://admin-shell.io/aas/3/1/DataSpecificationIec61360/preferredName - * - * @param preferredName desired value for the property preferredNames. - */ - void setPreferredName(List preferredName); + /** + * Short name + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName + * + * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") + List getShortNames(); - /** - * Short name - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/shortName - * - * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/shortName") - List getShortName(); + /** + * Short name + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName + * + * @param shortNames desired value for the property shortNames. + */ + void setShortNames(List shortNames); - /** - * Short name - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/shortName - * - * @param shortName desired value for the property shortName. - */ - void setShortName(List shortName); + /** + * Unit + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit + * + * @return Returns the String for the property unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") + String getUnit(); - /** - * Unit - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unit - * - * @return Returns the String for the property unit. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unit") - String getUnit(); + /** + * Unit + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit + * + * @param unit desired value for the property unit. + */ + void setUnit(String unit); - /** - * Unit - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unit - * - * @param unit desired value for the property unit. - */ - void setUnit(String unit); + /** + * Unique unit id + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId + * + * @return Returns the Reference for the property unitId. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") + Reference getUnitId(); - /** - * Unique unit id - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unitId - * - * @return Returns the Reference for the property unitId. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unitId") - Reference getUnitId(); + /** + * Unique unit id + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId + * + * @param unitId desired value for the property unitId. + */ + void setUnitId(Reference unitId); - /** - * Unique unit id - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unitId - * - * @param unitId desired value for the property unitId. - */ - void setUnitId(Reference unitId); + /** + * Source of definition + * + * More information under + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition + * + * @return Returns the String for the property sourceOfDefinition. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") + String getSourceOfDefinition(); - /** - * Source of definition - * - *

More information under - * https://admin-shell.io/aas/3/1/DataSpecificationIec61360/sourceOfDefinition - * - * @return Returns the String for the property sourceOfDefinition. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/sourceOfDefinition") - String getSourceOfDefinition(); + /** + * Source of definition + * + * More information under + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition + * + * @param sourceOfDefinition desired value for the property sourceOfDefinition. + */ + void setSourceOfDefinition(String sourceOfDefinition); - /** - * Source of definition - * - *

More information under - * https://admin-shell.io/aas/3/1/DataSpecificationIec61360/sourceOfDefinition - * - * @param sourceOfDefinition desired value for the property sourceOfDefinition. - */ - void setSourceOfDefinition(String sourceOfDefinition); + /** + * Symbol + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol + * + * @return Returns the String for the property symbol. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") + String getSymbol(); - /** - * Symbol - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/symbol - * - * @return Returns the String for the property symbol. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/symbol") - String getSymbol(); + /** + * Symbol + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol + * + * @param symbol desired value for the property symbol. + */ + void setSymbol(String symbol); - /** - * Symbol - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/symbol - * - * @param symbol desired value for the property symbol. - */ - void setSymbol(String symbol); + /** + * Data Type + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType + * + * @return Returns the DataTypeIec61360 for the property dataType. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") + DataTypeIec61360 getDataType(); - /** - * Data Type - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/dataType - * - * @return Returns the DataTypeIec61360 for the property dataType. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/dataType") - DataTypeIec61360 getDataType(); + /** + * Data Type + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType + * + * @param dataType desired value for the property dataType. + */ + void setDataType(DataTypeIec61360 dataType); - /** - * Data Type - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/dataType - * - * @param dataType desired value for the property dataType. - */ - void setDataType(DataTypeIec61360 dataType); + /** + * Definition in different languages + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition + * + * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") + List getDefinitions(); - /** - * Definition in different languages - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/definition - * - * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/definition") - List getDefinition(); + /** + * Definition in different languages + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition + * + * @param definitions desired value for the property definitions. + */ + void setDefinitions(List definitions); - /** - * Definition in different languages - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/definition - * - * @param definitions desired value for the property definitions. - */ - void setDefinition(List definitions); + /** + * Value Format + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat + * + * @return Returns the String for the property valueFormat. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") + String getValueFormat(); - /** - * Value Format - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueFormat - * - * @return Returns the String for the property valueFormat. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueFormat") - String getValueFormat(); + /** + * Value Format + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat + * + * @param valueFormat desired value for the property valueFormat. + */ + void setValueFormat(String valueFormat); - /** - * Value Format - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueFormat - * - * @param valueFormat desired value for the property valueFormat. - */ - void setValueFormat(String valueFormat); + /** + * List of allowed values + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList + * + * @return Returns the ValueList for the property valueList. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") + ValueList getValueList(); - /** - * List of allowed values - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueList - * - * @return Returns the ValueList for the property valueList. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueList") - ValueList getValueList(); + /** + * List of allowed values + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList + * + * @param valueList desired value for the property valueList. + */ + void setValueList(ValueList valueList); - /** - * List of allowed values - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueList - * - * @param valueList desired value for the property valueList. - */ - void setValueList(ValueList valueList); + /** + * Value + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") + String getValue(); - /** - * Value - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/value") - String getValue(); + /** + * Value + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Value - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Set of levels. + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType + * + * @return Returns the LevelType for the property levelType. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") + LevelType getLevelType(); - /** - * Set of levels. - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/levelType - * - * @return Returns the LevelType for the property levelType. - */ - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/levelType") - LevelType getLevelType(); + /** + * Set of levels. + * + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType + * + * @param levelType desired value for the property levelType. + */ + void setLevelType(LevelType levelType); - /** - * Set of levels. - * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/levelType - * - * @param levelType desired value for the property levelType. - */ - void setLevelType(LevelType levelType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index 4ec555dfc..d00a6d249 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,129 +14,164 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration listing all XSD anySimpleTypes */ + +/** + * Enumeration listing all XSD anySimpleTypes + */ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/AnyUri") - ANY_URI, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Base64Binary") - BASE64BINARY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Boolean") - BOOLEAN, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Byte") - BYTE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Date") - DATE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/DateTime") - DATE_TIME, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Decimal") - DECIMAL, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Double") - DOUBLE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Duration") - DURATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Float") - FLOAT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GDay") - GDAY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GMonth") - GMONTH, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GMonthDay") - GMONTH_DAY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GYear") - GYEAR, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GYearMonth") - GYEAR_MONTH, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/HexBinary") - HEX_BINARY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Int") - INT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Integer") - INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Long") - LONG, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/NegativeInteger") - NEGATIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/NonNegativeInteger") - NON_NEGATIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/NonPositiveInteger") - NON_POSITIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/PositiveInteger") - POSITIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Short") - SHORT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/String") - STRING, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Time") - TIME, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedByte") - UNSIGNED_BYTE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedInt") - UNSIGNED_INT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedLong") - UNSIGNED_LONG, + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") + ANY_URI, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") + BASE64BINARY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") + BOOLEAN, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") + BYTE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") + DATE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") + DATE_TIME, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") + DECIMAL, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") + DOUBLE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") + DURATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") + FLOAT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") + GDAY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") + GMONTH, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") + GMONTH_DAY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") + GYEAR, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") + GYEAR_MONTH, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") + HEX_BINARY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") + INT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") + INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") + LONG, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") + NEGATIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") + NON_NEGATIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") + NON_POSITIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") + POSITIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") + SHORT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") + STRING, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") + TIME, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") + UNSIGNED_BYTE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") + UNSIGNED_INT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") + UNSIGNED_LONG, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") + UNSIGNED_SHORT; - /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedShort") - UNSIGNED_SHORT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 841dc80d6..38a716b58 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,113 +14,135 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** */ + +/** +*/ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { - /** values containing the content of a file. Values may be binaries. */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Blob") - BLOB, - - /** values representing truth of logic or Boolean algebra (TRUE, FALSE) */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Boolean") - BOOLEAN, - - /** - * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from - * IEC 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Date") - DATE, - - /** - * values containing an address to a file. The values are of type URI and can represent an - * absolute or relative path. - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/File") - FILE, - - /** - * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C - * Recommendation 28:2014) - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Html") - HTML, - - /** values containing values of type INTEGER but are no currencies or measures */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/IntegerCount") - INTEGER_COUNT, - - /** values containing values of type INTEGER that are currencies */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/IntegerCurrency") - INTEGER_CURRENCY, - - /** - * values containing values that are measure of type INTEGER. In addition such a value comes with - * a physical unit. - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/IntegerMeasure") - INTEGER_MEASURE, - - /** values conforming to ISO/IEC 11179 series global identifier sequences */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Irdi") - IRDI, - - /** values containing values of type STRING conformant to Rfc 3987 */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Iri") - IRI, - - /** values containing values of type rational */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Rational") - RATIONAL, - - /** - * values containing values of type rational. In addition such a value comes with a physical unit. - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/RationalMeasure") - RATIONAL_MEASURE, - - /** - * values containing numbers that can be written as a terminating or non-terminating decimal; a - * rational or irrational number but are no currencies or measures - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/RealCount") - REAL_COUNT, - - /** values containing values of type REAL that are currencies */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/RealCurrency") - REAL_CURRENCY, - - /** - * values containing values that are measures of type REAL. In addition such a value comes with a - * physical unit. - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/RealMeasure") - REAL_MEASURE, - - /** values consisting of sequence of characters but cannot be translated into other languages */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/String") - STRING, - - /** - * values containing string but shall be represented as different string in different languages - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/StringTranslatable") - STRING_TRANSLATABLE, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Time") - TIME, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeIec61360/Timestamp") - TIMESTAMP; + /** + * values containing the content of a file. Values may be binaries. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Blob") + BLOB, + + /** + * values representing truth of logic or Boolean algebra (TRUE, FALSE) + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Boolean") + BOOLEAN, + + /** + * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from IEC + * 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Date") + DATE, + + /** + * values containing an address to a file. The values are of type URI and can represent an absolute + * or relative path. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/File") + FILE, + + /** + * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C + * Recommendation 28:2014) + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Html") + HTML, + + /** + * values containing values of type INTEGER but are no currencies or measures + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCount") + INTEGER_COUNT, + + /** + * values containing values of type INTEGER that are currencies + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCurrency") + INTEGER_CURRENCY, + + /** + * values containing values that are measure of type INTEGER. In addition such a value comes with a + * physical unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerMeasure") + INTEGER_MEASURE, + + /** + * values conforming to ISO/IEC 11179 series global identifier sequences + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Irdi") + IRDI, + + /** + * values containing values of type STRING conformant to Rfc 3987 + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Iri") + IRI, + + /** + * values containing values of type rational + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Rational") + RATIONAL, + + /** + * values containing values of type rational. In addition such a value comes with a physical unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RationalMeasure") + RATIONAL_MEASURE, + + /** + * values containing numbers that can be written as a terminating or non-terminating decimal; a + * rational or irrational number but are no currencies or measures + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCount") + REAL_COUNT, + + /** + * values containing values of type REAL that are currencies + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCurrency") + REAL_CURRENCY, + + /** + * values containing values that are measures of type REAL. In addition such a value comes with a + * physical unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealMeasure") + REAL_MEASURE, + + /** + * values consisting of sequence of characters but cannot be translated into other languages + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/String") + STRING, + + /** + * values containing string but shall be represented as different string in different languages + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/StringTranslatable") + STRING_TRANSLATABLE, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Time") + TIME, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") + TIMESTAMP; + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java deleted file mode 100644 index d78d3c8e2..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDescriptor; - -/** */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDescriptor.class), - @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), - @KnownSubtypes.Type(value = SubmodelDescriptor.class) -}) -public interface Descriptor { - - /** - * More information under https://admin-shell.io/aas/3/1/Descriptor/description - * - * @return Returns the List of LangStringTextTypes for the property description. - */ - @IRI("https://admin-shell.io/aas/3/1/Descriptor/description") - List getDescription(); - - /** - * More information under https://admin-shell.io/aas/3/1/Descriptor/description - * - * @param description desired value for the property description. - */ - void setDescription(List description); - - /** - * More information under https://admin-shell.io/aas/3/1/Descriptor/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/1/Descriptor/displayName") - List getDisplayName(); - - /** - * More information under https://admin-shell.io/aas/3/1/Descriptor/displayName - * - * @param displayName desired value for the property displayName. - */ - void setDisplayName(List displayName); - - /** - * More information under https://admin-shell.io/aas/3/1/Descriptor/extensions - * - * @return Returns the List of Extensions for the property extensions. - */ - @IRI("https://admin-shell.io/aas/3/1/Descriptor/extensions") - List getExtensions(); - - /** - * More information under https://admin-shell.io/aas/3/1/Descriptor/extensions - * - * @param extensions desired value for the property extensions. - */ - void setExtensions(List extensions); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index f2b8676fb..c503e5374 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +14,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Direction */ + +/** + * Direction + */ @IRI("aas:Direction") public enum Direction { - /** Input direction. */ - @IRI("https://admin-shell.io/aas/3/1/Direction/Input") - INPUT, + /** + * Input direction. + */ + @IRI("https://admin-shell.io/aas/3/2/Direction/Input") + INPUT, + + /** + * Output direction + */ + @IRI("https://admin-shell.io/aas/3/2/Direction/Output") + OUTPUT; - /** Output direction */ - @IRI("https://admin-shell.io/aas/3/1/Direction/Output") - OUTPUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 830181427..9679c9206 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,53 +14,58 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEmbeddedDataSpecification; -/** Embed the content of a data specification. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class)}) + +/** + * Embed the content of a data specification. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) +}) public interface EmbeddedDataSpecification { - /** - * Reference to the data specification - * - *

More information under - * https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecification - * - * @return Returns the Reference for the property dataSpecification. - */ - @IRI("https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecification") - Reference getDataSpecification(); + /** + * Reference to the data specification + * + * More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification + * + * @return Returns the Reference for the property dataSpecification. + */ + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") + Reference getDataSpecification(); + + /** + * Reference to the data specification + * + * More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification + * + * @param dataSpecification desired value for the property dataSpecification. + */ + void setDataSpecification(Reference dataSpecification); - /** - * Reference to the data specification - * - *

More information under - * https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecification - * - * @param dataSpecification desired value for the property dataSpecification. - */ - void setDataSpecification(Reference dataSpecification); + /** + * Actual content of the data specification + * + * More information under + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent + * + * @return Returns the DataSpecificationContent for the property dataSpecificationContent. + */ + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") + DataSpecificationContent getDataSpecificationContent(); - /** - * Actual content of the data specification - * - *

More information under - * https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecificationContent - * - * @return Returns the DataSpecificationContent for the property dataSpecificationContent. - */ - @IRI("https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecificationContent") - DataSpecificationContent getDataSpecificationContent(); + /** + * Actual content of the data specification + * + * More information under + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent + * + * @param dataSpecificationContent desired value for the property dataSpecificationContent. + */ + void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); - /** - * Actual content of the data specification - * - *

More information under - * https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecificationContent - * - * @param dataSpecificationContent desired value for the property dataSpecificationContent. - */ - void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java deleted file mode 100644 index 35465dedc..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEndpoint; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEndpoint.class)}) -public interface Endpoint { - - /** - * More information under https://admin-shell.io/aas/3/1/Endpoint/_interface - * - * @return Returns the String for the property _interface. - */ - @IRI("https://admin-shell.io/aas/3/1/Endpoint/_interface") - String get_interface(); - - /** - * More information under https://admin-shell.io/aas/3/1/Endpoint/_interface - * - * @param _interface desired value for the property _interface. - */ - void set_interface(String _interface); - - /** - * More information under https://admin-shell.io/aas/3/1/Endpoint/protocolInformation - * - * @return Returns the ProtocolInformation for the property protocolInformation. - */ - @IRI("https://admin-shell.io/aas/3/1/Endpoint/protocolInformation") - ProtocolInformation getProtocolInformation(); - - /** - * More information under https://admin-shell.io/aas/3/1/Endpoint/protocolInformation - * - * @param protocolInformation desired value for the property protocolInformation. - */ - void setProtocolInformation(ProtocolInformation protocolInformation); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index d4163d33e..53fe74cda 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,92 +14,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEntity; -/** An entity is a submodel element that is used to model entities. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEntity.class)}) +import java.util.List; + + +/** + * An entity is a submodel element that is used to model entities. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEntity.class) +}) public interface Entity extends SubmodelElement { - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/statements - * - * @return Returns the List of SubmodelElements for the property statements. - */ - @IRI("https://admin-shell.io/aas/3/1/Entity/statements") - List getStatements(); + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + * More information under https://admin-shell.io/aas/3/2/Entity/statements + * + * @return Returns the List of SubmodelElements for the property statements. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") + List getStatements(); + + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + * More information under https://admin-shell.io/aas/3/2/Entity/statements + * + * @param statements desired value for the property statements. + */ + void setStatements(List statements); - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/statements - * - * @param statements desired value for the property statements. - */ - void setStatements(List statements); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + * More information under https://admin-shell.io/aas/3/2/Entity/entityType + * + * @return Returns the EntityType for the property entityType. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") + EntityType getEntityType(); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/entityType - * - * @return Returns the EntityType for the property entityType. - */ - @IRI("https://admin-shell.io/aas/3/1/Entity/entityType") - EntityType getEntityType(); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + * More information under https://admin-shell.io/aas/3/2/Entity/entityType + * + * @param entityType desired value for the property entityType. + */ + void setEntityType(EntityType entityType); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/entityType - * - * @param entityType desired value for the property entityType. - */ - void setEntityType(EntityType entityType); + /** + * Global identifier of the asset the entity is representing. + * + * More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") + String getGlobalAssetId(); - /** - * Global identifier of the asset the entity is representing. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/1/Entity/globalAssetId") - String getGlobalAssetId(); + /** + * Global identifier of the asset the entity is representing. + * + * More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); - /** - * Global identifier of the asset the entity is representing. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset represented + * by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") + List getSpecificAssetIds(); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset - * represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/1/Entity/specificAssetIds") - List getSpecificAssetIds(); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset represented + * by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset - * represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/1/Entity/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 933e5edfc..c71059284 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,23 +14,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. */ + +/** + * Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. + */ @IRI("aas:EntityType") public enum EntityType { - /** - * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/1/EntityType/CoManagedEntity") - CO_MANAGED_ENTITY, - - /** - * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/1/EntityType/SelfManagedEntity") - SELF_MANAGED_ENTITY; + /** + * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/2/EntityType/CoManagedEntity") + CO_MANAGED_ENTITY, + + /** + * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") + SELF_MANAGED_ENTITY; + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index bb2f9a298..a25ef9d59 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,70 +14,76 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEnvironment; -/** Container for the sets of different identifiables. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEnvironment.class)}) +import java.util.List; + + +/** + * Container for the sets of different identifiables. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEnvironment.class) +}) public interface Environment { - /** - * Asset administration shell - * - *

More information under https://admin-shell.io/aas/3/1/Environment/assetAdministrationShells - * - * @return Returns the List of AssetAdministrationShells for the property - * assetAdministrationShells. - */ - @IRI("https://admin-shell.io/aas/3/1/Environment/assetAdministrationShells") - List getAssetAdministrationShells(); + /** + * Asset administration shell + * + * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells + * + * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") + List getAssetAdministrationShells(); + + /** + * Asset administration shell + * + * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells + * + * @param assetAdministrationShells desired value for the property assetAdministrationShells. + */ + void setAssetAdministrationShells(List assetAdministrationShells); - /** - * Asset administration shell - * - *

More information under https://admin-shell.io/aas/3/1/Environment/assetAdministrationShells - * - * @param assetAdministrationShells desired value for the property assetAdministrationShells. - */ - void setAssetAdministrationShells(List assetAdministrationShells); + /** + * Submodel + * + * More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") + List getSubmodels(); - /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/1/Environment/submodels - * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/1/Environment/submodels") - List getSubmodels(); + /** + * Submodel + * + * More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); - /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/1/Environment/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * Concept description + * + * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions + * + * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") + List getConceptDescriptions(); - /** - * Concept description - * - *

More information under https://admin-shell.io/aas/3/1/Environment/conceptDescriptions - * - * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. - */ - @IRI("https://admin-shell.io/aas/3/1/Environment/conceptDescriptions") - List getConceptDescriptions(); + /** + * Concept description + * + * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions + * + * @param conceptDescriptions desired value for the property conceptDescriptions. + */ + void setConceptDescriptions(List conceptDescriptions); - /** - * Concept description - * - *

More information under https://admin-shell.io/aas/3/1/Environment/conceptDescriptions - * - * @param conceptDescriptions desired value for the property conceptDescriptions. - */ - void setConceptDescriptions(List conceptDescriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index 4d7379ee9..836f10339 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,8 +14,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An event element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = BasicEventElement.class)}) -public interface EventElement extends SubmodelElement {} + +/** + * An event element. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = BasicEventElement.class) +}) +public interface EventElement extends SubmodelElement { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index 7c59cecc2..88288a792 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,167 +14,174 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEventPayload; -/** Defines the necessary information of an event instance sent out or received. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEventPayload.class)}) + +/** + * Defines the necessary information of an event instance sent out or received. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEventPayload.class) +}) public interface EventPayload { - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/source - * - * @return Returns the Reference for the property source. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/source") - Reference getSource(); - - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/source - * - * @param source desired value for the property source. - */ - void setSource(Reference source); - - /** - * 'semanticId' of the source event element, if available - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/sourceSemanticId - * - * @return Returns the Reference for the property sourceSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/sourceSemanticId") - Reference getSourceSemanticId(); - - /** - * 'semanticId' of the source event element, if available - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/sourceSemanticId - * - * @param sourceSemanticId desired value for the property sourceSemanticId. - */ - void setSourceSemanticId(Reference sourceSemanticId); - - /** - * Reference to the referable, which defines the scope of the event. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/observableReference - * - * @return Returns the Reference for the property observableReference. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/observableReference") - Reference getObservableReference(); - - /** - * Reference to the referable, which defines the scope of the event. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/observableReference - * - * @param observableReference desired value for the property observableReference. - */ - void setObservableReference(Reference observableReference); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/observableSemanticId - * - * @return Returns the Reference for the property observableSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/observableSemanticId") - Reference getObservableSemanticId(); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/observableSemanticId - * - * @param observableSemanticId desired value for the property observableSemanticId. - */ - void setObservableSemanticId(Reference observableSemanticId); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/topic - * - * @return Returns the String for the property topic. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/topic") - String getTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/topic - * - * @param topic desired value for the property topic. - */ - void setTopic(String topic); - - /** - * Subject, who/which initiated the creation. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/subjectId - * - * @return Returns the Reference for the property subjectId. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/subjectId") - Reference getSubjectId(); - - /** - * Subject, who/which initiated the creation. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/subjectId - * - * @param subjectId desired value for the property subjectId. - */ - void setSubjectId(Reference subjectId); - - /** - * Timestamp in UTC, when this event was triggered. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/timeStamp - * - * @return Returns the String for the property timeStamp. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/timeStamp") - String getTimeStamp(); - - /** - * Timestamp in UTC, when this event was triggered. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/timeStamp - * - * @param timeStamp desired value for the property timeStamp. - */ - void setTimeStamp(String timeStamp); - - /** - * Event specific payload. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/payload - * - * @return Returns the byte[] for the property payload. - */ - @IRI("https://admin-shell.io/aas/3/1/EventPayload/payload") - byte[] getPayload(); - - /** - * Event specific payload. - * - *

More information under https://admin-shell.io/aas/3/1/EventPayload/payload - * - * @param payload desired value for the property payload. - */ - void setPayload(byte[] payload); + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/source + * + * @return Returns the Reference for the property source. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") + Reference getSource(); + + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/source + * + * @param source desired value for the property source. + */ + void setSource(Reference source); + + /** + * 'semanticId' of the source event element, if available + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId + * + * @return Returns the Reference for the property sourceSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") + Reference getSourceSemanticId(); + + /** + * 'semanticId' of the source event element, if available + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId + * + * @param sourceSemanticId desired value for the property sourceSemanticId. + */ + void setSourceSemanticId(Reference sourceSemanticId); + + /** + * Reference to the referable, which defines the scope of the event. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference + * + * @return Returns the Reference for the property observableReference. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") + Reference getObservableReference(); + + /** + * Reference to the referable, which defines the scope of the event. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference + * + * @param observableReference desired value for the property observableReference. + */ + void setObservableReference(Reference observableReference); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId + * + * @return Returns the Reference for the property observableSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") + Reference getObservableSemanticId(); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId + * + * @param observableSemanticId desired value for the property observableSemanticId. + */ + void setObservableSemanticId(Reference observableSemanticId); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/topic + * + * @return Returns the String for the property topic. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") + String getTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/topic + * + * @param topic desired value for the property topic. + */ + void setTopic(String topic); + + /** + * Subject, who/which initiated the creation. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId + * + * @return Returns the Reference for the property subjectId. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") + Reference getSubjectId(); + + /** + * Subject, who/which initiated the creation. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId + * + * @param subjectId desired value for the property subjectId. + */ + void setSubjectId(Reference subjectId); + + /** + * Timestamp in UTC, when this event was triggered. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp + * + * @return Returns the String for the property timeStamp. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") + String getTimeStamp(); + + /** + * Timestamp in UTC, when this event was triggered. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp + * + * @param timeStamp desired value for the property timeStamp. + */ + void setTimeStamp(String timeStamp); + + /** + * Event specific payload. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/payload + * + * @return Returns the byte[] for the property payload. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") + byte[] getPayload(); + + /** + * Event specific payload. + * + * More information under https://admin-shell.io/aas/3/2/EventPayload/payload + * + * @param payload desired value for the property payload. + */ + void setPayload(byte[] payload); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java deleted file mode 100644 index b871833eb..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** */ -@IRI("aas:ExecutionState") -public enum ExecutionState { - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Canceled") - CANCELED, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Completed") - COMPLETED, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Failed") - FAILED, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Initiated") - INITIATED, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Running") - RUNNING, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Timeout") - TIMEOUT; -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index e73e41f6a..e79caa0bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,88 +14,95 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultExtension; -/** Single extension of an element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultExtension.class)}) +import java.util.List; + + +/** + * Single extension of an element. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultExtension.class) +}) public interface Extension extends HasSemantics { - /** - * Name of the extension. - * - *

More information under https://admin-shell.io/aas/3/1/Extension/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/1/Extension/name") - String getName(); + /** + * Name of the extension. + * + * More information under https://admin-shell.io/aas/3/2/Extension/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/name") + String getName(); + + /** + * Name of the extension. + * + * More information under https://admin-shell.io/aas/3/2/Extension/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * Name of the extension. - * - *

More information under https://admin-shell.io/aas/3/1/Extension/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * Type of the value of the extension. + * + * More information under https://admin-shell.io/aas/3/2/Extension/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") + DataTypeDefXsd getValueType(); - /** - * Type of the value of the extension. - * - *

More information under https://admin-shell.io/aas/3/1/Extension/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/1/Extension/valueType") - DataTypeDefXsd getValueType(); + /** + * Type of the value of the extension. + * + * More information under https://admin-shell.io/aas/3/2/Extension/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Type of the value of the extension. - * - *

More information under https://admin-shell.io/aas/3/1/Extension/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Value of the extension + * + * More information under https://admin-shell.io/aas/3/2/Extension/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/value") + String getValue(); - /** - * Value of the extension - * - *

More information under https://admin-shell.io/aas/3/1/Extension/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/Extension/value") - String getValue(); + /** + * Value of the extension + * + * More information under https://admin-shell.io/aas/3/2/Extension/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Value of the extension - * - *

More information under https://admin-shell.io/aas/3/1/Extension/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Reference to an element the extension refers to. + * + * More information under https://admin-shell.io/aas/3/2/Extension/refersTo + * + * @return Returns the List of References for the property refersTos. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") + List getRefersTos(); - /** - * Reference to an element the extension refers to. - * - *

More information under https://admin-shell.io/aas/3/1/Extension/refersTo - * - * @return Returns the List of References for the property refersTos. - */ - @IRI("https://admin-shell.io/aas/3/1/Extension/refersTo") - List getRefersTo(); + /** + * Reference to an element the extension refers to. + * + * More information under https://admin-shell.io/aas/3/2/Extension/refersTo + * + * @param refersTos desired value for the property refersTos. + */ + void setRefersTos(List refersTos); - /** - * Reference to an element the extension refers to. - * - *

More information under https://admin-shell.io/aas/3/1/Extension/refersTo - * - * @param refersTo desired value for the property refersTos. - */ - void setRefersTo(List refersTo); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index 732d7e2c5..6f602f82d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,49 +14,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultFile; -/** A File is a data element that represents an address to a file (a locator). */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultFile.class)}) + +/** + * A File is a data element that represents an address to a file (a locator). + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultFile.class) +}) public interface File extends DataElement { - /** - * Path and name of the referenced file (with file extension). - * - *

More information under https://admin-shell.io/aas/3/1/File/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/File/value") - String getValue(); - - /** - * Path and name of the referenced file (with file extension). - * - *

More information under https://admin-shell.io/aas/3/1/File/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/1/File/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/1/File/contentType") - String getContentType(); - - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/1/File/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Path and name of the referenced file (with file extension). + * + * More information under https://admin-shell.io/aas/3/2/File/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/File/value") + String getValue(); + + /** + * Path and name of the referenced file (with file extension). + * + * More information under https://admin-shell.io/aas/3/2/File/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/2/File/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/2/File/contentType") + String getContentType(); + + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/2/File/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 7a5a7bad0..8a688f255 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,39 +14,44 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** Element that can be extended by using data specification templates. */ +import java.util.List; + + +/** + * Element that can be extended by using data specification templates. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasDataSpecification { - /** - * Embedded data specification. - * - *

More information under - * https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications - * - * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. - */ - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - List getEmbeddedDataSpecifications(); - - /** - * Embedded data specification. - * - *

More information under - * https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. - */ - void setEmbeddedDataSpecifications(List embeddedDataSpecifications); + /** + * Embedded data specification. + * + * More information under + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications + * + * @return Returns the List of EmbeddedDataSpecifications for the property + * embeddedDataSpecifications. + */ + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + List getEmbeddedDataSpecifications(); + + /** + * Embedded data specification. + * + * More information under + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. + */ + void setEmbeddedDataSpecifications(List embeddedDataSpecifications); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index f54fde6cf..99c33883c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,30 +14,37 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** Element that can be extended by proprietary extensions. */ -@KnownSubtypes({@KnownSubtypes.Type(value = Referable.class)}) +import java.util.List; + + +/** + * Element that can be extended by proprietary extensions. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = Referable.class) +}) public interface HasExtensions { - /** - * An extension of the element. - * - *

More information under https://admin-shell.io/aas/3/1/HasExtensions/extensions - * - * @return Returns the List of Extensions for the property extensions. - */ - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - List getExtensions(); - - /** - * An extension of the element. - * - *

More information under https://admin-shell.io/aas/3/1/HasExtensions/extensions - * - * @param extensions desired value for the property extensions. - */ - void setExtensions(List extensions); + /** + * An extension of the element. + * + * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions + * + * @return Returns the List of Extensions for the property extensions. + */ + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + List getExtensions(); + + /** + * An extension of the element. + * + * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions + * + * @param extensions desired value for the property extensions. + */ + void setExtensions(List extensions); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index caf012af1..309b7a787 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +14,36 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An element with a kind is an element that can either represent a template or an instance. */ -@KnownSubtypes({@KnownSubtypes.Type(value = Submodel.class)}) + +/** + * An element with a kind is an element that can either represent a template or an instance. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = Submodel.class) +}) public interface HasKind { - /** - * Kind of the element: either template or instance. - * - *

More information under https://admin-shell.io/aas/3/1/HasKind/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/1/HasKind/kind") - ModellingKind getKind(); - - /** - * Kind of the element: either template or instance. - * - *

More information under https://admin-shell.io/aas/3/1/HasKind/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); + /** + * Kind of the element: either template or instance. + * + * More information under https://admin-shell.io/aas/3/2/HasKind/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") + ModellingKind getKind(); + + /** + * Kind of the element: either template or instance. + * + * More information under https://admin-shell.io/aas/3/2/HasKind/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index 8be93f6c9..5b2d1e6b2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,59 +14,64 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** Element that can have a semantic definition plus some supplemental semantic definitions. */ +import java.util.List; + + +/** + * Element that can have a semantic definition plus some supplemental semantic definitions. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element - * or also main semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/1/HasSemantics/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - Reference getSemanticId(); + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element or + * also main semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + Reference getSemanticId(); + + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element or + * also main semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element - * or also main semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/1/HasSemantics/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds + * + * @return Returns the List of References for the property supplementalSemanticIds. + */ + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + List getSupplementalSemanticIds(); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds - * - * @return Returns the List of References for the property supplementalSemanticIds. - */ - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - List getSupplementalSemanticIds(); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds + * + * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. + */ + void setSupplementalSemanticIds(List supplementalSemanticIds); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds - * - * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. - */ - void setSupplementalSemanticIds(List supplementalSemanticIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index fdc27f3f0..3cb0a1b17 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +14,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An element that has a globally unique identifier. */ + +/** + * An element that has a globally unique identifier. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { - /** - * Administrative information of an identifiable element. - * - *

More information under https://admin-shell.io/aas/3/1/Identifiable/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") - AdministrativeInformation getAdministration(); + /** + * Administrative information of an identifiable element. + * + * More information under https://admin-shell.io/aas/3/2/Identifiable/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + AdministrativeInformation getAdministration(); + + /** + * Administrative information of an identifiable element. + * + * More information under https://admin-shell.io/aas/3/2/Identifiable/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); - /** - * Administrative information of an identifiable element. - * - *

More information under https://admin-shell.io/aas/3/1/Identifiable/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); + /** + * The globally unique identification of the element. + * + * More information under https://admin-shell.io/aas/3/2/Identifiable/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + String getId(); - /** - * The globally unique identification of the element. - * - *

More information under https://admin-shell.io/aas/3/1/Identifiable/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") - String getId(); + /** + * The globally unique identification of the element. + * + * More information under https://admin-shell.io/aas/3/2/Identifiable/id + * + * @param id desired value for the property id. + */ + void setId(String id); - /** - * The globally unique identification of the element. - * - *

More information under https://admin-shell.io/aas/3/1/Identifiable/id - * - * @param id desired value for the property id. - */ - void setId(String id); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index 88c50eda2..23c9bd8f9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,49 +14,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultKey; -/** A key is a reference to an element by its ID. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultKey.class)}) + +/** + * A key is a reference to an element by its ID. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultKey.class) +}) public interface Key { - /** - * Denotes which kind of entity is referenced. - * - *

More information under https://admin-shell.io/aas/3/1/Key/type - * - * @return Returns the KeyTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/1/Key/type") - KeyTypes getType(); - - /** - * Denotes which kind of entity is referenced. - * - *

More information under https://admin-shell.io/aas/3/1/Key/type - * - * @param type desired value for the property type. - */ - void setType(KeyTypes type); - - /** - * The key value, for example an IRDI or an URI - * - *

More information under https://admin-shell.io/aas/3/1/Key/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/Key/value") - String getValue(); - - /** - * The key value, for example an IRDI or an URI - * - *

More information under https://admin-shell.io/aas/3/1/Key/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Denotes which kind of entity is referenced. + * + * More information under https://admin-shell.io/aas/3/2/Key/type + * + * @return Returns the KeyTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/Key/type") + KeyTypes getType(); + + /** + * Denotes which kind of entity is referenced. + * + * More information under https://admin-shell.io/aas/3/2/Key/type + * + * @param type desired value for the property type. + */ + void setType(KeyTypes type); + + /** + * The key value, for example an IRDI or an URI + * + * More information under https://admin-shell.io/aas/3/2/Key/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Key/value") + String getValue(); + + /** + * The key value, for example an IRDI or an URI + * + * More information under https://admin-shell.io/aas/3/2/Key/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index fc1a84600..f79da4e33 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,105 +14,145 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration of different key value types within a key. */ + +/** + * Enumeration of different key value types within a key. + */ @IRI("aas:KeyTypes") public enum KeyTypes { - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Blob") - BLOB, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Capability") - CAPABILITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** Data element. */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/DataElement") - DATA_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Entity") - ENTITY, - - /** Event. */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/EventElement") - EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/File") - FILE, - - /** Bookmark or a similar local identifier of a subordinate part of a primary resource */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/FragmentReference") - FRAGMENT_REFERENCE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/GlobalReference") - GLOBAL_REFERENCE, - - /** Identifiable. */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Identifiable") - IDENTIFIABLE, - - /** Property with a value that can be provided in multiple languages */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Operation") - OPERATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Property") - PROPERTY, - - /** Range with min and max */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Range") - RANGE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Referable") - REFERABLE, - - /** Reference */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/ReferenceElement") - REFERENCE_ELEMENT, - - /** Relationship */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Submodel") - SUBMODEL, - - /** Submodel Element */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/SubmodelElement") - SUBMODEL_ELEMENT, - - /** Struct of Submodel Elements */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") + BLOB, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") + CAPABILITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** + * Data element. + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") + DATA_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") + ENTITY, + + /** + * Event. + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") + EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") + FILE, + + /** + * Bookmark or a similar local identifier of a subordinate part of a primary resource + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") + FRAGMENT_REFERENCE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") + GLOBAL_REFERENCE, + + /** + * Identifiable. + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Identifiable") + IDENTIFIABLE, + + /** + * Property with a value that can be provided in multiple languages + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") + OPERATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") + PROPERTY, + + /** + * Range with min and max + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") + RANGE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") + REFERABLE, + + /** + * Reference + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ReferenceElement") + REFERENCE_ELEMENT, + + /** + * Relationship + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") + SUBMODEL, + + /** + * Submodel Element + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElement") + SUBMODEL_ELEMENT, + + /** + * Struct of Submodel Elements + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + + /** + * List of Submodel Elements + */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; - /** List of Submodel Elements */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java new file mode 100644 index 000000000..79f89aeab --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + +import java.io.Serializable; +import java.util.Objects; + + +@IRI("rdf:langString") +public class LangString implements Serializable { + + private String language = null; + private String value = null; + + public LangString() { + super(); + } + + public LangString(String valueAndLanguage) { + if (valueAndLanguage.contains("@")) { + String[] splitString = valueAndLanguage.split("@"); + this.value = splitString[0]; + this.language = splitString[1]; + } else { + this.value = valueAndLanguage; + } + } + + public LangString(String value, String language) { + this.value = value; + this.language = language; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + LangString other = (LangString) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.value, other.value); + } + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.value); + } + + @Override + public String toString() { + String result = this.value; + if (this.language != null && !this.language.isEmpty()) { + return "\"" + result + "\"@" + this.language; + } + return result; + } + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index 5a88a50cd..a2153c56c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringDefinitionTypeIec61360; -/** String with length 1023 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class)}) -public interface LangStringDefinitionTypeIec61360 extends AbstractLangString {} + +/** + * String with length 1023 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) +}) +public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 8b8246f31..510fa9ff7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringNameType; -/** String with length 128 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringNameType.class)}) -public interface LangStringNameType extends AbstractLangString {} + +/** + * String with length 128 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringNameType.class) +}) +public interface LangStringNameType extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 08093b1db..970690271 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringPreferredNameTypeIec61360; -/** String with length 255 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class)}) -public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString {} + +/** + * String with length 255 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) +}) +public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index 41a8a3dd6..dfa79c706 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringShortNameTypeIec61360; -/** String with length 18 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class)}) -public interface LangStringShortNameTypeIec61360 extends AbstractLangString {} + +/** + * String with length 18 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) +}) +public interface LangStringShortNameTypeIec61360 extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index 22129354b..dc960b950 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringTextType; -/** String with length 1023 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringTextType.class)}) -public interface LangStringTextType extends AbstractLangString {} + +/** + * String with length 1023 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringTextType.class) +}) +public interface LangStringTextType extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index f9c43eb26..d2403dace 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,90 +14,95 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLevelType; + /** * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and * MAX. True means that the value is available, false means the value is not available. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLevelType.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLevelType.class) +}) public interface LevelType { - /** - * Minimum of the value - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/min - * - * @return Returns the boolean for the property min. - */ - @IRI("https://admin-shell.io/aas/3/1/LevelType/min") - boolean getMin(); + /** + * Minimum of the value + * + * More information under https://admin-shell.io/aas/3/2/LevelType/min + * + * @return Returns the boolean for the property min. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") + boolean getMin(); + + /** + * Minimum of the value + * + * More information under https://admin-shell.io/aas/3/2/LevelType/min + * + * @param min desired value for the property min. + */ + void setMin(boolean min); - /** - * Minimum of the value - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/min - * - * @param min desired value for the property min. - */ - void setMin(boolean min); + /** + * Nominal value (value as designated) + * + * More information under https://admin-shell.io/aas/3/2/LevelType/nom + * + * @return Returns the boolean for the property nom. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") + boolean getNom(); - /** - * Nominal value (value as designated) - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/nom - * - * @return Returns the boolean for the property nom. - */ - @IRI("https://admin-shell.io/aas/3/1/LevelType/nom") - boolean getNom(); + /** + * Nominal value (value as designated) + * + * More information under https://admin-shell.io/aas/3/2/LevelType/nom + * + * @param nom desired value for the property nom. + */ + void setNom(boolean nom); - /** - * Nominal value (value as designated) - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/nom - * - * @param nom desired value for the property nom. - */ - void setNom(boolean nom); + /** + * Value as typically present + * + * More information under https://admin-shell.io/aas/3/2/LevelType/typ + * + * @return Returns the boolean for the property typ. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") + boolean getTyp(); - /** - * Value as typically present - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/typ - * - * @return Returns the boolean for the property typ. - */ - @IRI("https://admin-shell.io/aas/3/1/LevelType/typ") - boolean getTyp(); + /** + * Value as typically present + * + * More information under https://admin-shell.io/aas/3/2/LevelType/typ + * + * @param typ desired value for the property typ. + */ + void setTyp(boolean typ); - /** - * Value as typically present - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/typ - * - * @param typ desired value for the property typ. - */ - void setTyp(boolean typ); + /** + * Maximum of the value + * + * More information under https://admin-shell.io/aas/3/2/LevelType/max + * + * @return Returns the boolean for the property max. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") + boolean getMax(); - /** - * Maximum of the value - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/max - * - * @return Returns the boolean for the property max. - */ - @IRI("https://admin-shell.io/aas/3/1/LevelType/max") - boolean getMax(); + /** + * Maximum of the value + * + * More information under https://admin-shell.io/aas/3/2/LevelType/max + * + * @param max desired value for the property max. + */ + void setMax(boolean max); - /** - * Maximum of the value - * - *

More information under https://admin-shell.io/aas/3/1/LevelType/max - * - * @param max desired value for the property max. - */ - void setMax(boolean max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java deleted file mode 100644 index ab677098b..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMessage; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMessage.class)}) -public interface Message { - - /** - * More information under https://admin-shell.io/aas/3/1/Message/code - * - * @return Returns the String for the property code. - */ - @IRI("https://admin-shell.io/aas/3/1/Message/code") - String getCode(); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/code - * - * @param code desired value for the property code. - */ - void setCode(String code); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/correlationId - * - * @return Returns the String for the property correlationId. - */ - @IRI("https://admin-shell.io/aas/3/1/Message/correlationId") - String getCorrelationId(); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/correlationId - * - * @param correlationId desired value for the property correlationId. - */ - void setCorrelationId(String correlationId); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/messageType - * - * @return Returns the MessageType for the property messageType. - */ - @IRI("https://admin-shell.io/aas/3/1/Message/messageType") - MessageType getMessageType(); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/messageType - * - * @param messageType desired value for the property messageType. - */ - void setMessageType(MessageType messageType); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/1/Message/text") - String getText(); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/text - * - * @param text desired value for the property text. - */ - void setText(String text); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/timestamp - * - * @return Returns the String for the property timestamp. - */ - @IRI("https://admin-shell.io/aas/3/1/Message/timestamp") - String getTimestamp(); - - /** - * More information under https://admin-shell.io/aas/3/1/Message/timestamp - * - * @param timestamp desired value for the property timestamp. - */ - void setTimestamp(String timestamp); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java deleted file mode 100644 index 555c8790f..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** */ -@IRI("aas:MessageType") -public enum MessageType { - - /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Error") - ERROR, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Exception") - EXCEPTION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Info") - INFO, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Undefined") - UNDEFINED, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Warning") - WARNING; -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java deleted file mode 100644 index c13eb0038..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** */ -@IRI("aas:ModelType") -public enum ModelType { - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Blob") - BLOB, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Capability") - CAPABILITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Entity") - ENTITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/File") - FILE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Operation") - OPERATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Property") - PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Qualifier") - QUALIFIER, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Range") - RANGE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Reference") - REFERENCE, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/ReferenceElement") - REFERENCE_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Submodel") - SUBMODEL, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 571303af1..e4ef3ea8e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,23 +14,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an element is a template or an instance. */ + +/** + * Enumeration for denoting whether an element is a template or an instance. + */ @IRI("aas:ModellingKind") public enum ModellingKind { - /** - * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a - * corresponding element template. - */ - @IRI("https://admin-shell.io/aas/3/1/ModellingKind/Instance") - INSTANCE, - - /** - * Specification of the common features of a structured element in sufficient detail that such a - * instance can be instantiated using it - */ - @IRI("https://admin-shell.io/aas/3/1/ModellingKind/Template") - TEMPLATE; + /** + * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a + * corresponding element template. + */ + @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Instance") + INSTANCE, + + /** + * Specification of the common features of a structured element in sufficient detail that such a + * instance can be instantiated using it + */ + @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") + TEMPLATE; + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 327b003f2..3dbe1a813 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,50 +14,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMultiLanguageProperty; -/** A property is a data element that has a multi-language value. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class)}) +import java.util.List; + + +/** + * A property is a data element that has a multi-language value. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) +}) public interface MultiLanguageProperty extends DataElement { - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/1/MultiLanguageProperty/value - * - * @return Returns the List of LangStringTextTypes for the property values. - */ - @IRI("https://admin-shell.io/aas/3/1/MultiLanguageProperty/value") - List getValue(); + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value + * + * @return Returns the List of LangStringTextTypes for the property values. + */ + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") + List getValues(); + + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value + * + * @param values desired value for the property values. + */ + void setValues(List values); - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/1/MultiLanguageProperty/value - * - * @param value desired value for the property values. - */ - void setValue(List value); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") + Reference getValueId(); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/1/MultiLanguageProperty/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/1/MultiLanguageProperty/valueId") - Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/1/MultiLanguageProperty/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index 1806faba2..a016d1254 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,69 +14,76 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperation; -/** An operation is a submodel element with input and output variables. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperation.class)}) +import java.util.List; + + +/** + * An operation is a submodel element with input and output variables. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperation.class) +}) public interface Operation extends SubmodelElement { - /** - * Input parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/1/Operation/inputVariables - * - * @return Returns the List of OperationVariables for the property inputVariables. - */ - @IRI("https://admin-shell.io/aas/3/1/Operation/inputVariables") - List getInputVariables(); + /** + * Input parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables + * + * @return Returns the List of OperationVariables for the property inputVariables. + */ + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") + List getInputVariables(); + + /** + * Input parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables + * + * @param inputVariables desired value for the property inputVariables. + */ + void setInputVariables(List inputVariables); - /** - * Input parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/1/Operation/inputVariables - * - * @param inputVariables desired value for the property inputVariables. - */ - void setInputVariables(List inputVariables); + /** + * Output parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables + * + * @return Returns the List of OperationVariables for the property outputVariables. + */ + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") + List getOutputVariables(); - /** - * Output parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/1/Operation/outputVariables - * - * @return Returns the List of OperationVariables for the property outputVariables. - */ - @IRI("https://admin-shell.io/aas/3/1/Operation/outputVariables") - List getOutputVariables(); + /** + * Output parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables + * + * @param outputVariables desired value for the property outputVariables. + */ + void setOutputVariables(List outputVariables); - /** - * Output parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/1/Operation/outputVariables - * - * @param outputVariables desired value for the property outputVariables. - */ - void setOutputVariables(List outputVariables); + /** + * Parameter that is input and output of the operation. + * + * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables + * + * @return Returns the List of OperationVariables for the property inoutputVariables. + */ + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") + List getInoutputVariables(); - /** - * Parameter that is input and output of the operation. - * - *

More information under https://admin-shell.io/aas/3/1/Operation/inoutputVariables - * - * @return Returns the List of OperationVariables for the property inoutputVariables. - */ - @IRI("https://admin-shell.io/aas/3/1/Operation/inoutputVariables") - List getInoutputVariables(); + /** + * Parameter that is input and output of the operation. + * + * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables + * + * @param inoutputVariables desired value for the property inoutputVariables. + */ + void setInoutputVariables(List inoutputVariables); - /** - * Parameter that is input and output of the operation. - * - *

More information under https://admin-shell.io/aas/3/1/Operation/inoutputVariables - * - * @param inoutputVariables desired value for the property inoutputVariables. - */ - void setInoutputVariables(List inoutputVariables); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java deleted file mode 100644 index 7932560ed..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationHandle; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationHandle.class)}) -public interface OperationHandle { - - /** - * More information under https://admin-shell.io/aas/3/1/OperationHandle/handleId - * - * @return Returns the String for the property handleId. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationHandle/handleId") - String getHandleId(); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationHandle/handleId - * - * @param handleId desired value for the property handleId. - */ - void setHandleId(String handleId); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java deleted file mode 100644 index ef3dd4343..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import javax.xml.datatype.Duration; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) -public interface OperationRequest { - - /** - * More information under https://admin-shell.io/aas/3/1/OperationRequest/inoutputArguments - * - * @return Returns the List of OperationVariables for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationRequest/inoutputArguments") - List getInoutputArguments(); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationRequest/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(List inoutputArguments); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationRequest/inputArguments - * - * @return Returns the List of OperationVariables for the property inputArguments. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationRequest/inputArguments") - List getInputArguments(); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationRequest/inputArguments - * - * @param inputArguments desired value for the property inputArguments. - */ - void setInputArguments(List inputArguments); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationRequest/clientTimeoutDuration - * - * @return Returns the String for the property clientTimeoutDuration. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationRequest/clientTimeoutDuration") - Duration getClientTimeoutDuration(); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationRequest/clientTimeoutDuration - * - * @param clientTimeoutDuration desired value for the property clientTimeoutDuration. - */ - void setClientTimeoutDuration(Duration clientTimeoutDuration); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java deleted file mode 100644 index 83831360b..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationResult; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationResult.class)}) -public interface OperationResult extends BaseOperationResult { - - /** - * More information under https://admin-shell.io/aas/3/1/OperationResult/inoutputArguments - * - * @return Returns the List of OperationVariables for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationResult/inoutputArguments") - List getInoutputArguments(); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationResult/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(List inoutputArguments); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationResult/outputArguments - * - * @return Returns the List of OperationVariables for the property outputArguments. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationResult/outputArguments") - List getOutputArguments(); - - /** - * More information under https://admin-shell.io/aas/3/1/OperationResult/outputArguments - * - * @param outputArguments desired value for the property outputArguments. - */ - void setOutputArguments(List outputArguments); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index 5b1b2b0e3..62598a1d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,33 +14,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationVariable; + /** * The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationVariable.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationVariable.class) +}) public interface OperationVariable { - /** - * Describes an argument or result of an operation via a submodel element - * - *

More information under https://admin-shell.io/aas/3/1/OperationVariable/value - * - * @return Returns the SubmodelElement for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/OperationVariable/value") - SubmodelElement getValue(); - - /** - * Describes an argument or result of an operation via a submodel element - * - *

More information under https://admin-shell.io/aas/3/1/OperationVariable/value - * - * @param value desired value for the property value. - */ - void setValue(SubmodelElement value); + /** + * Describes an argument or result of an operation via a submodel element + * + * More information under https://admin-shell.io/aas/3/2/OperationVariable/value + * + * @return Returns the SubmodelElement for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") + SubmodelElement getValue(); + + /** + * Describes an argument or result of an operation via a submodel element + * + * More information under https://admin-shell.io/aas/3/2/OperationVariable/value + * + * @param value desired value for the property value. + */ + void setValue(SubmodelElement value); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java deleted file mode 100644 index 6a7798231..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultPackageDescription; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultPackageDescription.class)}) -public interface PackageDescription { - - /** - * More information under https://admin-shell.io/aas/3/1/PackageDescription/aasIds - * - * @return Returns the List of Strings for the property aasIds. - */ - @IRI("https://admin-shell.io/aas/3/1/PackageDescription/aasIds") - List getAasIds(); - - /** - * More information under https://admin-shell.io/aas/3/1/PackageDescription/aasIds - * - * @param aasIds desired value for the property aasIds. - */ - void setAasIds(List aasIds); - - /** - * More information under https://admin-shell.io/aas/3/1/PackageDescription/packageId - * - * @return Returns the String for the property packageId. - */ - @IRI("https://admin-shell.io/aas/3/1/PackageDescription/packageId") - String getPackageId(); - - /** - * More information under https://admin-shell.io/aas/3/1/PackageDescription/packageId - * - * @param packageId desired value for the property packageId. - */ - void setPackageId(String packageId); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index 3e4252829..7edeb7ee3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,68 +14,75 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProperty; -/** A property is a data element that has a single value. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProperty.class)}) + +/** + * A property is a data element that has a single value. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultProperty.class) +}) public interface Property extends DataElement { - /** - * Data type of the value - * - *

More information under https://admin-shell.io/aas/3/1/Property/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/1/Property/valueType") - DataTypeDefXsd getValueType(); + /** + * Data type of the value + * + * More information under https://admin-shell.io/aas/3/2/Property/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the value + * + * More information under https://admin-shell.io/aas/3/2/Property/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Data type of the value - * - *

More information under https://admin-shell.io/aas/3/1/Property/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/2/Property/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Property/value") + String getValue(); - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/1/Property/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/Property/value") - String getValue(); + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/2/Property/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/1/Property/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/2/Property/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") + Reference getValueId(); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/1/Property/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/1/Property/valueId") - Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/2/Property/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/1/Property/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java deleted file mode 100644 index 70e4783af..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProtocolInformation; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProtocolInformation.class)}) -public interface ProtocolInformation { - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/href - * - * @return Returns the String for the property href. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/href") - String getHref(); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/href - * - * @param href desired value for the property href. - */ - void setHref(String href); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocol - * - * @return Returns the String for the property endpointProtocol. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocol") - String getEndpointProtocol(); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocol - * - * @param endpointProtocol desired value for the property endpointProtocol. - */ - void setEndpointProtocol(String endpointProtocol); - - /** - * More information under - * https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocolVersion - * - * @return Returns the List of Strings for the property endpointProtocolVersions. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocolVersion") - List getEndpointProtocolVersion(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocolVersion - * - * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. - */ - void setEndpointProtocolVersion(List endpointProtocolVersion); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocol - * - * @return Returns the String for the property subprotocol. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocol") - String getSubprotocol(); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocol - * - * @param subprotocol desired value for the property subprotocol. - */ - void setSubprotocol(String subprotocol); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBody - * - * @return Returns the String for the property subprotocolBody. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBody") - String getSubprotocolBody(); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBody - * - * @param subprotocolBody desired value for the property subprotocolBody. - */ - void setSubprotocolBody(String subprotocolBody); - - /** - * More information under - * https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBodyEncoding - * - * @return Returns the String for the property subprotocolBodyEncoding. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBodyEncoding") - String getSubprotocolBodyEncoding(); - - /** - * More information under - * https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. - */ - void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/securityAttributes - * - * @return Returns the List of SecurityAttributes for the property securityAttributes. - */ - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/securityAttributes") - List getSecurityAttributes(); - - /** - * More information under https://admin-shell.io/aas/3/1/ProtocolInformation/securityAttributes - * - * @param securityAttributes desired value for the property securityAttributes. - */ - void setSecurityAttributes(List securityAttributes); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 80a99435d..fd7b587c1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,33 +14,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** The value of a qualifiable element may be further qualified by one or more qualifiers. */ +import java.util.List; + + +/** + * The value of a qualifiable element may be further qualified by one or more qualifiers. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Qualifiable { - /** - * Additional qualification of a qualifiable element. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifiable/qualifiers - * - * @return Returns the List of Qualifiers for the property qualifiers. - */ - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - List getQualifiers(); - - /** - * Additional qualification of a qualifiable element. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifiable/qualifiers - * - * @param qualifiers desired value for the property qualifiers. - */ - void setQualifiers(List qualifiers); + /** + * Additional qualification of a qualifiable element. + * + * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers + * + * @return Returns the List of Qualifiers for the property qualifiers. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + List getQualifiers(); + + /** + * Additional qualification of a qualifiable element. + * + * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers + * + * @param qualifiers desired value for the property qualifiers. + */ + void setQualifiers(List qualifiers); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index fe321164d..c610e8325 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,109 +14,114 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultQualifier; + /** * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultQualifier.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultQualifier.class) +}) public interface Qualifier extends HasSemantics { - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/kind - * - * @return Returns the QualifierKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/1/Qualifier/kind") - QualifierKind getKind(); - - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/kind - * - * @param kind desired value for the property kind. - */ - void setKind(QualifierKind kind); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/type - * - * @return Returns the String for the property type. - */ - @IRI("https://admin-shell.io/aas/3/1/Qualifier/type") - String getType(); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/type - * - * @param type desired value for the property type. - */ - void setType(String type); - - /** - * Data type of the qualifier value. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/1/Qualifier/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the qualifier value. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); - - /** - * The qualifier value is the value of the qualifier. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/Qualifier/value") - String getValue(); - - /** - * The qualifier value is the value of the qualifier. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/1/Qualifier/valueId") - Reference getValueId(); - - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/1/Qualifier/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/kind + * + * @return Returns the QualifierKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") + QualifierKind getKind(); + + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/kind + * + * @param kind desired value for the property kind. + */ + void setKind(QualifierKind kind); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/type + * + * @return Returns the String for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") + String getType(); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/type + * + * @param type desired value for the property type. + */ + void setType(String type); + + /** + * Data type of the qualifier value. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the qualifier value. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); + + /** + * The qualifier value is the value of the qualifier. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") + String getValue(); + + /** + * The qualifier value is the value of the qualifier. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") + Reference getValueId(); + + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/2/Qualifier/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index 464a261ff..ee6f770eb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,21 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for kinds of qualifiers. */ + +/** + * Enumeration for kinds of qualifiers. + */ @IRI("aas:QualifierKind") public enum QualifierKind { - /** qualifies the semantic definition the element is referring to ('semanticId') */ - @IRI("https://admin-shell.io/aas/3/1/QualifierKind/ConceptQualifier") - CONCEPT_QUALIFIER, + /** + * qualifies the semantic definition the element is referring to ('semanticId') + */ + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ConceptQualifier") + CONCEPT_QUALIFIER, + + /** + * qualifies the elements within a specific submodel on concept level. + */ + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/TemplateQualifier") + TEMPLATE_QUALIFIER, - /** qualifies the elements within a specific submodel on concept level. */ - @IRI("https://admin-shell.io/aas/3/1/QualifierKind/TemplateQualifier") - TEMPLATE_QUALIFIER, + /** + * qualifies the value of the element and can change during run-time. + */ + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") + VALUE_QUALIFIER; - /** qualifies the value of the element and can change during run-time. */ - @IRI("https://admin-shell.io/aas/3/1/QualifierKind/ValueQualifier") - VALUE_QUALIFIER; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 7fc9f8965..468834ab9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,68 +14,75 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRange; -/** A range data element is a data element that defines a range with min and max. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultRange.class)}) + +/** + * A range data element is a data element that defines a range with min and max. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultRange.class) +}) public interface Range extends DataElement { - /** - * Data type of the min und max - * - *

More information under https://admin-shell.io/aas/3/1/Range/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/1/Range/valueType") - DataTypeDefXsd getValueType(); + /** + * Data type of the min und max + * + * More information under https://admin-shell.io/aas/3/2/Range/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the min und max + * + * More information under https://admin-shell.io/aas/3/2/Range/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Data type of the min und max - * - *

More information under https://admin-shell.io/aas/3/1/Range/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * The minimum value of the range. + * + * More information under https://admin-shell.io/aas/3/2/Range/min + * + * @return Returns the String for the property min. + */ + @IRI("https://admin-shell.io/aas/3/2/Range/min") + String getMin(); - /** - * The minimum value of the range. - * - *

More information under https://admin-shell.io/aas/3/1/Range/min - * - * @return Returns the String for the property min. - */ - @IRI("https://admin-shell.io/aas/3/1/Range/min") - String getMin(); + /** + * The minimum value of the range. + * + * More information under https://admin-shell.io/aas/3/2/Range/min + * + * @param min desired value for the property min. + */ + void setMin(String min); - /** - * The minimum value of the range. - * - *

More information under https://admin-shell.io/aas/3/1/Range/min - * - * @param min desired value for the property min. - */ - void setMin(String min); + /** + * The maximum value of the range. + * + * More information under https://admin-shell.io/aas/3/2/Range/max + * + * @return Returns the String for the property max. + */ + @IRI("https://admin-shell.io/aas/3/2/Range/max") + String getMax(); - /** - * The maximum value of the range. - * - *

More information under https://admin-shell.io/aas/3/1/Range/max - * - * @return Returns the String for the property max. - */ - @IRI("https://admin-shell.io/aas/3/1/Range/max") - String getMax(); + /** + * The maximum value of the range. + * + * More information under https://admin-shell.io/aas/3/2/Range/max + * + * @param max desired value for the property max. + */ + void setMax(String max); - /** - * The maximum value of the range. - * - *

More information under https://admin-shell.io/aas/3/1/Range/max - * - * @param max desired value for the property max. - */ - void setMax(String max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index a9b09265d..425d998b7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,94 +14,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An element that is referable by its 'idShort'. */ +import java.util.List; + + +/** + * An element that is referable by its 'idShort'. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Identifiable.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/category - * - * @return Returns the String for the property category. - */ - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - String getCategory(); + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + * More information under https://admin-shell.io/aas/3/2/Referable/category + * + * @return Returns the String for the property category. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + String getCategory(); + + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + * More information under https://admin-shell.io/aas/3/2/Referable/category + * + * @param category desired value for the property category. + */ + void setCategory(String category); - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/category - * - * @param category desired value for the property category. - */ - void setCategory(String category); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable this + * ID is an identifying string of the element within its name space. + * + * More information under https://admin-shell.io/aas/3/2/Referable/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + String getIdShort(); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable - * this ID is an identifying string of the element within its name space. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - String getIdShort(); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable this + * ID is an identifying string of the element within its name space. + * + * More information under https://admin-shell.io/aas/3/2/Referable/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable - * this ID is an identifying string of the element within its name space. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); + /** + * Display name. Can be provided in several languages. + * + * More information under https://admin-shell.io/aas/3/2/Referable/displayName + * + * @return Returns the List of LangStringNameTypes for the property displayNames. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + List getDisplayNames(); - /** - * Display name. Can be provided in several languages. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - List getDisplayName(); + /** + * Display name. Can be provided in several languages. + * + * More information under https://admin-shell.io/aas/3/2/Referable/displayName + * + * @param displayNames desired value for the property displayNames. + */ + void setDisplayNames(List displayNames); - /** - * Display name. Can be provided in several languages. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/displayName - * - * @param displayName desired value for the property displayName. - */ - void setDisplayName(List displayName); + /** + * Description or comments on the element. + * + * More information under https://admin-shell.io/aas/3/2/Referable/description + * + * @return Returns the List of LangStringTextTypes for the property descriptions. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + List getDescriptions(); - /** - * Description or comments on the element. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/description - * - * @return Returns the List of LangStringTextTypes for the property description. - */ - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - List getDescription(); + /** + * Description or comments on the element. + * + * More information under https://admin-shell.io/aas/3/2/Referable/description + * + * @param descriptions desired value for the property descriptions. + */ + void setDescriptions(List descriptions); - /** - * Description or comments on the element. - * - *

More information under https://admin-shell.io/aas/3/1/Referable/description - * - * @param description desired value for the property description. - */ - void setDescription(List description); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index 209112c03..b2c67ab8f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,69 +14,76 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReference; -/** Reference to either a model element of the same or another AAS or to an external entity. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReference.class)}) +import java.util.List; + + +/** + * Reference to either a model element of the same or another AAS or to an external entity. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultReference.class) +}) public interface Reference { - /** - * Type of the reference. - * - *

More information under https://admin-shell.io/aas/3/1/Reference/type - * - * @return Returns the ReferenceTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/1/Reference/type") - ReferenceTypes getType(); + /** + * Type of the reference. + * + * More information under https://admin-shell.io/aas/3/2/Reference/type + * + * @return Returns the ReferenceTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/Reference/type") + ReferenceTypes getType(); + + /** + * Type of the reference. + * + * More information under https://admin-shell.io/aas/3/2/Reference/type + * + * @param type desired value for the property type. + */ + void setType(ReferenceTypes type); - /** - * Type of the reference. - * - *

More information under https://admin-shell.io/aas/3/1/Reference/type - * - * @param type desired value for the property type. - */ - void setType(ReferenceTypes type); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + * More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId + * + * @return Returns the Reference for the property referredSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") + Reference getReferredSemanticId(); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * - *

More information under https://admin-shell.io/aas/3/1/Reference/referredSemanticId - * - * @return Returns the Reference for the property referredSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/1/Reference/referredSemanticId") - Reference getReferredSemanticId(); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + * More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId + * + * @param referredSemanticId desired value for the property referredSemanticId. + */ + void setReferredSemanticId(Reference referredSemanticId); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * - *

More information under https://admin-shell.io/aas/3/1/Reference/referredSemanticId - * - * @param referredSemanticId desired value for the property referredSemanticId. - */ - void setReferredSemanticId(Reference referredSemanticId); + /** + * Unique references in their name space. + * + * More information under https://admin-shell.io/aas/3/2/Reference/keys + * + * @return Returns the List of Keys for the property keys. + */ + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") + List getKeys(); - /** - * Unique references in their name space. - * - *

More information under https://admin-shell.io/aas/3/1/Reference/keys - * - * @return Returns the List of Keys for the property keys. - */ - @IRI("https://admin-shell.io/aas/3/1/Reference/keys") - List getKeys(); + /** + * Unique references in their name space. + * + * More information under https://admin-shell.io/aas/3/2/Reference/keys + * + * @param keys desired value for the property keys. + */ + void setKeys(List keys); - /** - * Unique references in their name space. - * - *

More information under https://admin-shell.io/aas/3/1/Reference/keys - * - * @param keys desired value for the property keys. - */ - void setKeys(List keys); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index 6c3177733..f32ff60c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,35 +14,40 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReferenceElement; + /** * A reference element is a data element that defines a logical reference to another element within * the same or another AAS or a reference to an external object or entity. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReferenceElement.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultReferenceElement.class) +}) public interface ReferenceElement extends DataElement { - /** - * Global reference to an external object or entity or a logical reference to another element - * within the same or another AAS (i.e. a model reference to a Referable). - * - *

More information under https://admin-shell.io/aas/3/1/ReferenceElement/value - * - * @return Returns the Reference for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/ReferenceElement/value") - Reference getValue(); - - /** - * Global reference to an external object or entity or a logical reference to another element - * within the same or another AAS (i.e. a model reference to a Referable). - * - *

More information under https://admin-shell.io/aas/3/1/ReferenceElement/value - * - * @param value desired value for the property value. - */ - void setValue(Reference value); + /** + * Global reference to an external object or entity or a logical reference to another element within + * the same or another AAS (i.e. a model reference to a Referable). + * + * More information under https://admin-shell.io/aas/3/2/ReferenceElement/value + * + * @return Returns the Reference for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") + Reference getValue(); + + /** + * Global reference to an external object or entity or a logical reference to another element within + * the same or another AAS (i.e. a model reference to a Referable). + * + * More information under https://admin-shell.io/aas/3/2/ReferenceElement/value + * + * @param value desired value for the property value. + */ + void setValue(Reference value); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index 8789944e0..7da3db39d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +14,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Reference types */ + +/** + * Reference types + */ @IRI("aas:ReferenceTypes") public enum ReferenceTypes { - /** External reference. */ - @IRI("https://admin-shell.io/aas/3/1/ReferenceTypes/ExternalReference") - EXTERNAL_REFERENCE, + /** + * External reference. + */ + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ExternalReference") + EXTERNAL_REFERENCE, + + /** + * Model reference. + */ + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") + MODEL_REFERENCE; - /** Model reference. */ - @IRI("https://admin-shell.io/aas/3/1/ReferenceTypes/ModelReference") - MODEL_REFERENCE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 9d40fc944..aacff2f20 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,55 +14,58 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRelationshipElement; + /** * A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { - /** - * Reference to the first element in the relationship taking the role of the subject. - * - *

More information under https://admin-shell.io/aas/3/1/RelationshipElement/first - * - * @return Returns the Reference for the property first. - */ - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/first") - Reference getFirst(); + /** + * Reference to the first element in the relationship taking the role of the subject. + * + * More information under https://admin-shell.io/aas/3/2/RelationshipElement/first + * + * @return Returns the Reference for the property first. + */ + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") + Reference getFirst(); + + /** + * Reference to the first element in the relationship taking the role of the subject. + * + * More information under https://admin-shell.io/aas/3/2/RelationshipElement/first + * + * @param first desired value for the property first. + */ + void setFirst(Reference first); - /** - * Reference to the first element in the relationship taking the role of the subject. - * - *

More information under https://admin-shell.io/aas/3/1/RelationshipElement/first - * - * @param first desired value for the property first. - */ - void setFirst(Reference first); + /** + * Reference to the second element in the relationship taking the role of the object. + * + * More information under https://admin-shell.io/aas/3/2/RelationshipElement/second + * + * @return Returns the Reference for the property second. + */ + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") + Reference getSecond(); - /** - * Reference to the second element in the relationship taking the role of the object. - * - *

More information under https://admin-shell.io/aas/3/1/RelationshipElement/second - * - * @return Returns the Reference for the property second. - */ - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/second") - Reference getSecond(); + /** + * Reference to the second element in the relationship taking the role of the object. + * + * More information under https://admin-shell.io/aas/3/2/RelationshipElement/second + * + * @param second desired value for the property second. + */ + void setSecond(Reference second); - /** - * Reference to the second element in the relationship taking the role of the object. - * - *

More information under https://admin-shell.io/aas/3/1/RelationshipElement/second - * - * @param second desired value for the property second. - */ - void setSecond(Reference second); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index ff0a2046f..2135cf3b8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +14,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResource; + /** * Resource represents an address to a file (a locator). The value is an URI that can represent an * absolute or relative path */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResource.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultResource.class) +}) public interface Resource { - /** - * Path and name of the resource (with file extension). - * - *

More information under https://admin-shell.io/aas/3/1/Resource/path - * - * @return Returns the String for the property path. - */ - @IRI("https://admin-shell.io/aas/3/1/Resource/path") - String getPath(); + /** + * Path and name of the resource (with file extension). + * + * More information under https://admin-shell.io/aas/3/2/Resource/path + * + * @return Returns the String for the property path. + */ + @IRI("https://admin-shell.io/aas/3/2/Resource/path") + String getPath(); + + /** + * Path and name of the resource (with file extension). + * + * More information under https://admin-shell.io/aas/3/2/Resource/path + * + * @param path desired value for the property path. + */ + void setPath(String path); - /** - * Path and name of the resource (with file extension). - * - *

More information under https://admin-shell.io/aas/3/1/Resource/path - * - * @param path desired value for the property path. - */ - void setPath(String path); + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/2/Resource/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") + String getContentType(); - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/1/Resource/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/1/Resource/contentType") - String getContentType(); + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/2/Resource/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/1/Resource/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java deleted file mode 100644 index 5ff30623d..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResult; - -/** */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResult.class), - @KnownSubtypes.Type(value = BaseOperationResult.class) -}) -public interface Result { - - /** - * More information under https://admin-shell.io/aas/3/1/Result/messages - * - * @return Returns the List of Messages for the property messages. - */ - @IRI("https://admin-shell.io/aas/3/1/Result/messages") - List getMessages(); - - /** - * More information under https://admin-shell.io/aas/3/1/Result/messages - * - * @param messages desired value for the property messages. - */ - void setMessages(List messages); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java deleted file mode 100644 index d860b3f18..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityAttributeObject; - -/** Represents security attributes in the Asset Administration Shell. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class)}) -public interface SecurityAttributeObject { - - /** - * The type of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/type - * - * @return Returns the SecurityTypeEnum for the property type. - */ - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/type") - SecurityTypeEnum getType(); - - /** - * The type of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/type - * - * @param type desired value for the property type. - */ - void setType(SecurityTypeEnum type); - - /** - * The key of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/key - * - * @return Returns the String for the property key. - */ - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/key") - String getKey(); - - /** - * The key of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/key - * - * @param key desired value for the property key. - */ - void setKey(String key); - - /** - * The value of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/value") - String getValue(); - - /** - * The value of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/value - * - * @param value desired value for the property value. - */ - void setValue(String value); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java deleted file mode 100644 index ea990f4e6..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** Enumeration for Security Type. */ -@IRI("aas:SecurityTypeEnum") -public enum SecurityTypeEnum { - - /** Indicates that this security type enum value means no security is applied. */ - @IRI("https://admin-shell.io/aas/3/1/SecurityTypeEnum/None") - NONE, - - /** Indicates that this security type enum value refers to RFC TLSA-based security. */ - @IRI("https://admin-shell.io/aas/3/1/SecurityTypeEnum/Rfc_Tlsa") - RFC_TLSA, - - /** Indicates that this security type enum value refers to W3C DID-based security. */ - @IRI("https://admin-shell.io/aas/3/1/SecurityTypeEnum/W3c_Did") - W3C_DID; -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index a9fdcb023..5e48eaa94 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,68 +14,75 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSpecificAssetId; -/** A specific asset ID describes a generic supplementary identifying attribute of the asset. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSpecificAssetId.class)}) + +/** + * A specific asset ID describes a generic supplementary identifying attribute of the asset. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) +}) public interface SpecificAssetId extends HasSemantics { - /** - * Name of the identifier - * - *

More information under https://admin-shell.io/aas/3/1/SpecificAssetId/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/name") - String getName(); + /** + * Name of the identifier + * + * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") + String getName(); + + /** + * Name of the identifier + * + * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * Name of the identifier - * - *

More information under https://admin-shell.io/aas/3/1/SpecificAssetId/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * The value of the specific asset identifier with the corresponding name. + * + * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") + String getValue(); - /** - * The value of the specific asset identifier with the corresponding name. - * - *

More information under https://admin-shell.io/aas/3/1/SpecificAssetId/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/value") - String getValue(); + /** + * The value of the specific asset identifier with the corresponding name. + * + * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The value of the specific asset identifier with the corresponding name. - * - *

More information under https://admin-shell.io/aas/3/1/SpecificAssetId/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The (external) subject the key belongs to or has meaning to. + * + * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId + * + * @return Returns the Reference for the property externalSubjectId. + */ + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") + Reference getExternalSubjectId(); - /** - * The (external) subject the key belongs to or has meaning to. - * - *

More information under https://admin-shell.io/aas/3/1/SpecificAssetId/externalSubjectId - * - * @return Returns the Reference for the property externalSubjectId. - */ - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/externalSubjectId") - Reference getExternalSubjectId(); + /** + * The (external) subject the key belongs to or has meaning to. + * + * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId + * + * @param externalSubjectId desired value for the property externalSubjectId. + */ + void setExternalSubjectId(Reference externalSubjectId); - /** - * The (external) subject the key belongs to or has meaning to. - * - *

More information under https://admin-shell.io/aas/3/1/SpecificAssetId/externalSubjectId - * - * @param externalSubjectId desired value for the property externalSubjectId. - */ - void setExternalSubjectId(Reference externalSubjectId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index 97fb234ff..d61904151 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +14,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** State of an event */ + +/** + * State of an event + */ @IRI("aas:StateOfEvent") public enum StateOfEvent { - /** Event is off. */ - @IRI("https://admin-shell.io/aas/3/1/StateOfEvent/Off") - OFF, + /** + * Event is off. + */ + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/Off") + OFF, + + /** + * Event is on + */ + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") + ON; - /** Event is on */ - @IRI("https://admin-shell.io/aas/3/1/StateOfEvent/On") - ON; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index f3072be49..8282b06d7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +14,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodel; -/** A submodel defines a specific aspect of the asset represented by the AAS. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodel.class)}) -public interface Submodel - extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { - - /** - * A submodel consists of zero or more submodel elements. - * - *

More information under https://admin-shell.io/aas/3/1/Submodel/submodelElements - * - * @return Returns the List of SubmodelElements for the property submodelElements. - */ - @IRI("https://admin-shell.io/aas/3/1/Submodel/submodelElements") - List getSubmodelElements(); - - /** - * A submodel consists of zero or more submodel elements. - * - *

More information under https://admin-shell.io/aas/3/1/Submodel/submodelElements - * - * @param submodelElements desired value for the property submodelElements. - */ - void setSubmodelElements(List submodelElements); +import java.util.List; + + +/** + * A submodel defines a specific aspect of the asset represented by the AAS. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodel.class) +}) +public interface Submodel extends HasDataSpecification, HasKind, HasSemantics, Identifiable, Qualifiable { + + /** + * A submodel consists of zero or more submodel elements. + * + * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements + * + * @return Returns the List of SubmodelElements for the property submodelElements. + */ + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") + List getSubmodelElements(); + + /** + * A submodel consists of zero or more submodel elements. + * + * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements + * + * @param submodelElements desired value for the property submodelElements. + */ + void setSubmodelElements(List submodelElements); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java deleted file mode 100644 index b52801421..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; - -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class)}) -public interface SubmodelDescriptor extends Descriptor { - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/endpoints - * - * @return Returns the List of Endpoints for the property endpoints. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/endpoints") - List getEndpoints(); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/idShort") - String getIdShort(); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/id") - String getId(); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/id - * - * @param id desired value for the property id. - */ - void setId(String id); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/semanticId") - Reference getSemanticId(); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId - * - * @return Returns the List of References for the property supplementalSemanticIds. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId") - List getSupplementalSemanticIds(); - - /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId - * - * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. - */ - void setSupplementalSemanticIds(List supplementalSemanticIds); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index 8c3a38ca2..f5af4ee19 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +14,23 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** A submodel element is an element suitable for the description and differentiation of assets. */ + +/** + * A submodel element is an element suitable for the description and differentiation of assets. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) -public interface SubmodelElement - extends Referable, HasDataSpecification, HasSemantics, Qualifiable {} +public interface SubmodelElement extends HasDataSpecification, HasSemantics, Qualifiable, Referable { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index 0b7d09863..5aba5712f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,34 +14,39 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementCollection; +import java.util.List; + + /** * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) +}) public interface SubmodelElementCollection extends SubmodelElement { - /** - * Submodel element contained in the collection. - * - *

More information under https://admin-shell.io/aas/3/1/SubmodelElementCollection/value - * - * @return Returns the List of SubmodelElements for the property values. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementCollection/value") - List getValue(); - - /** - * Submodel element contained in the collection. - * - *

More information under https://admin-shell.io/aas/3/1/SubmodelElementCollection/value - * - * @param value desired value for the property values. - */ - void setValue(List value); + /** + * Submodel element contained in the collection. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value + * + * @return Returns the List of SubmodelElements for the property values. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") + List getValues(); + + /** + * Submodel element contained in the collection. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value + * + * @param values desired value for the property values. + */ + void setValues(List values); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index 248e02247..764029e7c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,115 +14,116 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementList; -/** A submodel element list is an ordered list of submodel elements. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementList.class)}) +import java.util.List; + + +/** + * A submodel element list is an ordered list of submodel elements. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) +}) public interface SubmodelElementList extends SubmodelElement { - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - * - *

More information under https://admin-shell.io/aas/3/1/SubmodelElementList/orderRelevant - * - * @return Returns the boolean for the property orderRelevant. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/orderRelevant") - boolean getOrderRelevant(); - - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - * - *

More information under https://admin-shell.io/aas/3/1/SubmodelElementList/orderRelevant - * - * @param orderRelevant desired value for the property orderRelevant. - */ - void setOrderRelevant(boolean orderRelevant); - - /** - * Semantic ID the submodel elements contained in the list match to. - * - *

More information under - * https://admin-shell.io/aas/3/1/SubmodelElementList/semanticIdListElement - * - * @return Returns the Reference for the property semanticIdListElement. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/semanticIdListElement") - Reference getSemanticIdListElement(); - - /** - * Semantic ID the submodel elements contained in the list match to. - * - *

More information under - * https://admin-shell.io/aas/3/1/SubmodelElementList/semanticIdListElement - * - * @param semanticIdListElement desired value for the property semanticIdListElement. - */ - void setSemanticIdListElement(Reference semanticIdListElement); - - /** - * The submodel element type of the submodel elements contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/1/SubmodelElementList/typeValueListElement - * - * @return Returns the AasSubmodelElements for the property typeValueListElement. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/typeValueListElement") - AasSubmodelElements getTypeValueListElement(); - - /** - * The submodel element type of the submodel elements contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/1/SubmodelElementList/typeValueListElement - * - * @param typeValueListElement desired value for the property typeValueListElement. - */ - void setTypeValueListElement(AasSubmodelElements typeValueListElement); - - /** - * The value type of the submodel element contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/1/SubmodelElementList/valueTypeListElement - * - * @return Returns the DataTypeDefXsd for the property valueTypeListElement. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/valueTypeListElement") - DataTypeDefXsd getValueTypeListElement(); - - /** - * The value type of the submodel element contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/1/SubmodelElementList/valueTypeListElement - * - * @param valueTypeListElement desired value for the property valueTypeListElement. - */ - void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); - - /** - * Submodel element contained in the list. - * - *

More information under https://admin-shell.io/aas/3/1/SubmodelElementList/value - * - * @return Returns the List of SubmodelElements for the property values. - */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/value") - List getValue(); - - /** - * Submodel element contained in the list. - * - *

More information under https://admin-shell.io/aas/3/1/SubmodelElementList/value - * - * @param value desired value for the property values. - */ - void setValue(List value); + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant + * + * @return Returns the boolean for the property orderRelevant. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") + boolean getOrderRelevant(); + + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant + * + * @param orderRelevant desired value for the property orderRelevant. + */ + void setOrderRelevant(boolean orderRelevant); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement + * + * @return Returns the Reference for the property semanticIdListElement. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") + Reference getSemanticIdListElement(); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement + * + * @param semanticIdListElement desired value for the property semanticIdListElement. + */ + void setSemanticIdListElement(Reference semanticIdListElement); + + /** + * The submodel element type of the submodel elements contained in the list. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement + * + * @return Returns the AasSubmodelElements for the property typeValueListElement. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") + AasSubmodelElements getTypeValueListElement(); + + /** + * The submodel element type of the submodel elements contained in the list. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement + * + * @param typeValueListElement desired value for the property typeValueListElement. + */ + void setTypeValueListElement(AasSubmodelElements typeValueListElement); + + /** + * The value type of the submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement + * + * @return Returns the DataTypeDefXsd for the property valueTypeListElement. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") + DataTypeDefXsd getValueTypeListElement(); + + /** + * The value type of the submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement + * + * @param valueTypeListElement desired value for the property valueTypeListElement. + */ + void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); + + /** + * Submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value + * + * @return Returns the List of SubmodelElements for the property values. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") + List getValues(); + + /** + * Submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value + * + * @param values desired value for the property values. + */ + void setValues(List values); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 4525daa33..8dc92a8fe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +14,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueList; -/** A set of value reference pairs. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueList.class)}) +import java.util.List; + + +/** + * A set of value reference pairs. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultValueList.class) +}) public interface ValueList { - /** - * A pair of a value together with its global unique id. - * - *

More information under https://admin-shell.io/aas/3/1/ValueList/valueReferencePairs - * - * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. - */ - @IRI("https://admin-shell.io/aas/3/1/ValueList/valueReferencePairs") - List getValueReferencePairs(); - - /** - * A pair of a value together with its global unique id. - * - *

More information under https://admin-shell.io/aas/3/1/ValueList/valueReferencePairs - * - * @param valueReferencePairs desired value for the property valueReferencePairs. - */ - void setValueReferencePairs(List valueReferencePairs); + /** + * A pair of a value together with its global unique id. + * + * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs + * + * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. + */ + @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") + List getValueReferencePairs(); + + /** + * A pair of a value together with its global unique id. + * + * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs + * + * @param valueReferencePairs desired value for the property valueReferencePairs. + */ + void setValueReferencePairs(List valueReferencePairs); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index 41707768c..e0c1f47ea 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +14,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueReferencePair; + /** * A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueReferencePair.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultValueReferencePair.class) +}) public interface ValueReferencePair { - /** - * The value of the referenced concept definition of the value in 'valueId'. - * - *

More information under https://admin-shell.io/aas/3/1/ValueReferencePair/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/1/ValueReferencePair/value") - String getValue(); + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") + String getValue(); + + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The value of the referenced concept definition of the value in 'valueId'. - * - *

More information under https://admin-shell.io/aas/3/1/ValueReferencePair/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Global unique id of the value. + * + * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") + Reference getValueId(); - /** - * Global unique id of the value. - * - *

More information under https://admin-shell.io/aas/3/1/ValueReferencePair/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/1/ValueReferencePair/valueId") - Reference getValueId(); + /** + * Global unique id of the value. + * + * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); - /** - * Global unique id of the value. - * - *

More information under https://admin-shell.io/aas/3/1/ValueReferencePair/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 70765247f..a16de81f0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,12 +20,12 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface IRI { - /** - * This annotation stores the IRI under which a certain element of a model is defined. Expected - * behaviour when de-referencing the value of this annotation is a definition and further - * information about this element. - * - * @return IRI defining an element - */ - public String[] value() default {}; + /** + * This annotation stores the IRI under which a certain element of a model is defined. Expected + * behaviour when de-referencing the value of this annotation is a definition and further + * information about this element. + * + * @return IRI defining an element + */ + public String[] value() default {}; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index 0577042f0..b9c48be22 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,18 +20,19 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface KnownSubtypes { - /** - * This element stores the known sub-types, e.g. implementing classes of an interface, or - * extending classes of a class. Note that this list can never be expected to be complete, as - * custom implementations will not be included. - * - * @return List of known implementing subtypes - */ - public KnownSubtypes.Type[] value(); + /** + * This element stores the known sub-types, e.g. implementing classes of an interface, or extending + * classes of a class. Note that this list can never be expected to be complete, as custom + * implementations will not be included. + * + * @return List of known implementing subtypes + */ + public KnownSubtypes.Type[] value(); - public @interface Type { - Class value(); + public @interface Type { + Class value(); + + String name() default ""; + } - String name() default ""; - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index d368a5653..283f216a7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,20 +16,21 @@ public abstract class AbstractBuilder implements Builder { - private final T buildingInstance; + private final T buildingInstance; - protected AbstractBuilder() { - buildingInstance = newBuildingInstance(); - } + protected AbstractBuilder() { + buildingInstance = newBuildingInstance(); + } - protected abstract T newBuildingInstance(); + protected abstract T newBuildingInstance(); - protected T getBuildingInstance() { - return buildingInstance; - } + protected T getBuildingInstance() { + return buildingInstance; + } + + @Override + public T build() { + return buildingInstance; + } - @Override - public T build() { - return buildingInstance; - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index 3f8097bb5..e3e061f89 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,78 +14,102 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class AdministrativeInformationBuilder< - T extends AdministrativeInformation, B extends AdministrativeInformationBuilder> +import javax.xml.datatype.XMLGregorianCalendar; +import java.util.List; + + +public abstract class AdministrativeInformationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for version - * - * @param version desired value to be set - * @return Builder object with new value for version - */ - public B version(String version) { - getBuildingInstance().setVersion(version); - return getSelf(); - } + /** + * This function allows setting a value for createdAt + * + * @param createdAt desired value to be set + * @return Builder object with new value for createdAt + */ + public B createdAt(XMLGregorianCalendar createdAt) { + getBuildingInstance().setCreatedAt(createdAt); + return getSelf(); + } + + /** + * This function allows setting a value for version + * + * @param version desired value to be set + * @return Builder object with new value for version + */ + public B version(String version) { + getBuildingInstance().setVersion(version); + return getSelf(); + } + + /** + * This function allows setting a value for revision + * + * @param revision desired value to be set + * @return Builder object with new value for revision + */ + public B revision(String revision) { + getBuildingInstance().setRevision(revision); + return getSelf(); + } - /** - * This function allows setting a value for revision - * - * @param revision desired value to be set - * @return Builder object with new value for revision - */ - public B revision(String revision) { - getBuildingInstance().setRevision(revision); - return getSelf(); - } + /** + * This function allows setting a value for creator + * + * @param creator desired value to be set + * @return Builder object with new value for creator + */ + public B creator(Reference creator) { + getBuildingInstance().setCreator(creator); + return getSelf(); + } - /** - * This function allows setting a value for creator - * - * @param creator desired value to be set - * @return Builder object with new value for creator - */ - public B creator(Reference creator) { - getBuildingInstance().setCreator(creator); - return getSelf(); - } + /** + * This function allows setting a value for templateId + * + * @param templateId desired value to be set + * @return Builder object with new value for templateId + */ + public B templateId(String templateId) { + getBuildingInstance().setTemplateId(templateId); + return getSelf(); + } - /** - * This function allows setting a value for templateId - * - * @param templateId desired value to be set - * @return Builder object with new value for templateId - */ - public B templateId(String templateId) { - getBuildingInstance().setTemplateId(templateId); - return getSelf(); - } + /** + * This function allows setting a value for updatedAt + * + * @param updatedAt desired value to be set + * @return Builder object with new value for updatedAt + */ + public B updatedAt(XMLGregorianCalendar updatedAt) { + getBuildingInstance().setUpdatedAt(updatedAt); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index 565f8366b..e472b1844 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -25,216 +23,218 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class AnnotatedRelationshipElementBuilder< - T extends AnnotatedRelationshipElement, B extends AnnotatedRelationshipElementBuilder> +import java.util.List; + + +public abstract class AnnotatedRelationshipElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for annotations - * - * @param annotations desired value to be set - * @return Builder object with new value for annotations - */ - public B annotations(List annotations) { - getBuildingInstance().setAnnotations(annotations); - return getSelf(); - } - - /** - * This function allows adding a value to the List annotations - * - * @param annotations desired value to be added - * @return Builder object with new value for annotations - */ - public B annotations(DataElement annotations) { - getBuildingInstance().getAnnotations().add(annotations); - return getSelf(); - } - - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for annotations + * + * @param annotations desired value to be set + * @return Builder object with new value for annotations + */ + public B annotations(List annotations) { + getBuildingInstance().setAnnotations(annotations); + return getSelf(); + } + + /** + * This function allows adding a value to the List annotations + * + * @param annotations desired value to be added + * @return Builder object with new value for annotations + */ + public B annotations(DataElement annotations) { + getBuildingInstance().getAnnotations().add(annotations); + return getSelf(); + } + + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index 15518b74c..300deb1d9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -25,183 +23,185 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class AssetAdministrationShellBuilder< - T extends AssetAdministrationShell, B extends AssetAdministrationShellBuilder> +import java.util.List; + + +public abstract class AssetAdministrationShellBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for derivedFrom - * - * @param derivedFrom desired value to be set - * @return Builder object with new value for derivedFrom - */ - public B derivedFrom(Reference derivedFrom) { - getBuildingInstance().setDerivedFrom(derivedFrom); - return getSelf(); - } - - /** - * This function allows setting a value for assetInformation - * - * @param assetInformation desired value to be set - * @return Builder object with new value for assetInformation - */ - public B assetInformation(AssetInformation assetInformation) { - getBuildingInstance().setAssetInformation(assetInformation); - return getSelf(); - } - - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Reference submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for derivedFrom + * + * @param derivedFrom desired value to be set + * @return Builder object with new value for derivedFrom + */ + public B derivedFrom(Reference derivedFrom) { + getBuildingInstance().setDerivedFrom(derivedFrom); + return getSelf(); + } + + /** + * This function allows setting a value for assetInformation + * + * @param assetInformation desired value to be set + * @return Builder object with new value for assetInformation + */ + public B assetInformation(AssetInformation assetInformation) { + getBuildingInstance().setAssetInformation(assetInformation); + return getSelf(); + } + + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Reference submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java deleted file mode 100644 index b128fc10a..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; - -public abstract class AssetAdministrationShellDescriptorBuilder< - T extends AssetAdministrationShellDescriptor, - B extends AssetAdministrationShellDescriptorBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } - - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } - - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } - - /** - * This function allows setting a value for submodelDescriptors - * - * @param submodelDescriptors desired value to be set - * @return Builder object with new value for submodelDescriptors - */ - public B submodelDescriptors(List submodelDescriptors) { - getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelDescriptors - * - * @param submodelDescriptors desired value to be added - * @return Builder object with new value for submodelDescriptors - */ - public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { - getBuildingInstance().getSubmodelDescriptors().add(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 1e818958c..3b5d3e421 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,79 +14,80 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -public abstract class AssetInformationBuilder< - T extends AssetInformation, B extends AssetInformationBuilder> +import java.util.List; + + +public abstract class AssetInformationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } + /** + * This function allows setting a value for assetKind + * + * @param assetKind desired value to be set + * @return Builder object with new value for assetKind + */ + public B assetKind(AssetKind assetKind) { + getBuildingInstance().setAssetKind(assetKind); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } + /** + * This function allows setting a value for assetType + * + * @param assetType desired value to be set + * @return Builder object with new value for assetType + */ + public B assetType(String assetType) { + getBuildingInstance().setAssetType(assetType); + return getSelf(); + } - /** - * This function allows setting a value for defaultThumbnail - * - * @param defaultThumbnail desired value to be set - * @return Builder object with new value for defaultThumbnail - */ - public B defaultThumbnail(Resource defaultThumbnail) { - getBuildingInstance().setDefaultThumbnail(defaultThumbnail); - return getSelf(); - } + /** + * This function allows setting a value for defaultThumbnail + * + * @param defaultThumbnail desired value to be set + * @return Builder object with new value for defaultThumbnail + */ + public B defaultThumbnail(Resource defaultThumbnail) { + getBuildingInstance().setDefaultThumbnail(defaultThumbnail); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java deleted file mode 100644 index a75a181c5..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; -import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; - -public abstract class BaseOperationResultBuilder< - T extends BaseOperationResult, B extends BaseOperationResultBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for executionState - * - * @param executionState desired value to be set - * @return Builder object with new value for executionState - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().setExecutionState(executionState); - return getSelf(); - } - - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } - - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } - - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index 90320991a..138692f6a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,260 +24,262 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.StateOfEvent; -public abstract class BasicEventElementBuilder< - T extends BasicEventElement, B extends BasicEventElementBuilder> +import java.util.List; + + +public abstract class BasicEventElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for observed - * - * @param observed desired value to be set - * @return Builder object with new value for observed - */ - public B observed(Reference observed) { - getBuildingInstance().setObserved(observed); - return getSelf(); - } + /** + * This function allows setting a value for observed + * + * @param observed desired value to be set + * @return Builder object with new value for observed + */ + public B observed(Reference observed) { + getBuildingInstance().setObserved(observed); + return getSelf(); + } - /** - * This function allows setting a value for direction - * - * @param direction desired value to be set - * @return Builder object with new value for direction - */ - public B direction(Direction direction) { - getBuildingInstance().setDirection(direction); - return getSelf(); - } + /** + * This function allows setting a value for direction + * + * @param direction desired value to be set + * @return Builder object with new value for direction + */ + public B direction(Direction direction) { + getBuildingInstance().setDirection(direction); + return getSelf(); + } - /** - * This function allows setting a value for state - * - * @param state desired value to be set - * @return Builder object with new value for state - */ - public B state(StateOfEvent state) { - getBuildingInstance().setState(state); - return getSelf(); - } + /** + * This function allows setting a value for state + * + * @param state desired value to be set + * @return Builder object with new value for state + */ + public B state(StateOfEvent state) { + getBuildingInstance().setState(state); + return getSelf(); + } - /** - * This function allows setting a value for messageTopic - * - * @param messageTopic desired value to be set - * @return Builder object with new value for messageTopic - */ - public B messageTopic(String messageTopic) { - getBuildingInstance().setMessageTopic(messageTopic); - return getSelf(); - } + /** + * This function allows setting a value for messageTopic + * + * @param messageTopic desired value to be set + * @return Builder object with new value for messageTopic + */ + public B messageTopic(String messageTopic) { + getBuildingInstance().setMessageTopic(messageTopic); + return getSelf(); + } - /** - * This function allows setting a value for messageBroker - * - * @param messageBroker desired value to be set - * @return Builder object with new value for messageBroker - */ - public B messageBroker(Reference messageBroker) { - getBuildingInstance().setMessageBroker(messageBroker); - return getSelf(); - } + /** + * This function allows setting a value for messageBroker + * + * @param messageBroker desired value to be set + * @return Builder object with new value for messageBroker + */ + public B messageBroker(Reference messageBroker) { + getBuildingInstance().setMessageBroker(messageBroker); + return getSelf(); + } - /** - * This function allows setting a value for lastUpdate - * - * @param lastUpdate desired value to be set - * @return Builder object with new value for lastUpdate - */ - public B lastUpdate(String lastUpdate) { - getBuildingInstance().setLastUpdate(lastUpdate); - return getSelf(); - } + /** + * This function allows setting a value for lastUpdate + * + * @param lastUpdate desired value to be set + * @return Builder object with new value for lastUpdate + */ + public B lastUpdate(String lastUpdate) { + getBuildingInstance().setLastUpdate(lastUpdate); + return getSelf(); + } - /** - * This function allows setting a value for minInterval - * - * @param minInterval desired value to be set - * @return Builder object with new value for minInterval - */ - public B minInterval(String minInterval) { - getBuildingInstance().setMinInterval(minInterval); - return getSelf(); - } + /** + * This function allows setting a value for minInterval + * + * @param minInterval desired value to be set + * @return Builder object with new value for minInterval + */ + public B minInterval(String minInterval) { + getBuildingInstance().setMinInterval(minInterval); + return getSelf(); + } - /** - * This function allows setting a value for maxInterval - * - * @param maxInterval desired value to be set - * @return Builder object with new value for maxInterval - */ - public B maxInterval(String maxInterval) { - getBuildingInstance().setMaxInterval(maxInterval); - return getSelf(); - } + /** + * This function allows setting a value for maxInterval + * + * @param maxInterval desired value to be set + * @return Builder object with new value for maxInterval + */ + public B maxInterval(String maxInterval) { + getBuildingInstance().setMaxInterval(maxInterval); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index a8165833b..41376e105 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,193 +22,195 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class BlobBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(byte[] value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +import java.util.List; + + +public abstract class BlobBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(byte[] value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index 7af63344d..7e27dad1f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,5 +16,6 @@ public interface Builder { - public T build(); + public T build(); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index a7fa6d0c9..ab4339352 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,171 +22,173 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class CapabilityBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +import java.util.List; + + +public abstract class CapabilityBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 436328e5c..6067660bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -24,161 +22,163 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class ConceptDescriptionBuilder< - T extends ConceptDescription, B extends ConceptDescriptionBuilder> +import java.util.List; + + +public abstract class ConceptDescriptionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for isCaseOfs - * - * @param isCaseOfs desired value to be set - * @return Builder object with new value for isCaseOfs - */ - public B isCaseOf(List isCaseOfs) { - getBuildingInstance().setIsCaseOf(isCaseOfs); - return getSelf(); - } - - /** - * This function allows adding a value to the List isCaseOfs - * - * @param isCaseOf desired value to be added - * @return Builder object with new value for isCaseOfs - */ - public B isCaseOf(Reference isCaseOf) { - getBuildingInstance().getIsCaseOf().add(isCaseOf); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for isCaseOfs + * + * @param isCaseOfs desired value to be set + * @return Builder object with new value for isCaseOfs + */ + public B isCaseOfs(List isCaseOfs) { + getBuildingInstance().setIsCaseOfs(isCaseOfs); + return getSelf(); + } + + /** + * This function allows adding a value to the List isCaseOfs + * + * @param isCaseOf desired value to be added + * @return Builder object with new value for isCaseOfs + */ + public B isCaseOf(Reference isCaseOf) { + getBuildingInstance().getIsCaseOfs().add(isCaseOf); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 97f8789cf..7503a7f1e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -25,172 +23,175 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; -public abstract class DataSpecificationIec61360Builder< - T extends DataSpecificationIec61360, B extends DataSpecificationIec61360Builder> +import java.util.List; + + +public abstract class DataSpecificationIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for preferredNames - * - * @param preferredName desired value to be set - * @return Builder object with new value for preferredName - */ - public B preferredName(List preferredName) { - getBuildingInstance().setPreferredName(preferredName); - return getSelf(); - } - - /** - * This function allows adding a value to the List preferredNames - * - * @param preferredName desired value to be added - * @return Builder object with new value for preferredNames - */ - public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { - getBuildingInstance().getPreferredName().add(preferredName); - return getSelf(); - } - - /** - * This function allows setting a value for shortNames - * - * @param shortName desired value to be set - * @return Builder object with new value for shortNames - */ - public B shortName(List shortName) { - getBuildingInstance().setShortName(shortName); - return getSelf(); - } - - /** - * This function allows adding a value to the List shortNames - * - * @param shortName desired value to be added - * @return Builder object with new value for shortNames - */ - public B shortName(LangStringShortNameTypeIec61360 shortName) { - getBuildingInstance().getShortName().add(shortName); - return getSelf(); - } - - /** - * This function allows setting a value for unit - * - * @param unit desired value to be set - * @return Builder object with new value for unit - */ - public B unit(String unit) { - getBuildingInstance().setUnit(unit); - return getSelf(); - } - - /** - * This function allows setting a value for unitId - * - * @param unitId desired value to be set - * @return Builder object with new value for unitId - */ - public B unitId(Reference unitId) { - getBuildingInstance().setUnitId(unitId); - return getSelf(); - } - - /** - * This function allows setting a value for sourceOfDefinition - * - * @param sourceOfDefinition desired value to be set - * @return Builder object with new value for sourceOfDefinition - */ - public B sourceOfDefinition(String sourceOfDefinition) { - getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); - return getSelf(); - } - - /** - * This function allows setting a value for symbol - * - * @param symbol desired value to be set - * @return Builder object with new value for symbol - */ - public B symbol(String symbol) { - getBuildingInstance().setSymbol(symbol); - return getSelf(); - } - - /** - * This function allows setting a value for dataType - * - * @param dataType desired value to be set - * @return Builder object with new value for dataType - */ - public B dataType(DataTypeIec61360 dataType) { - getBuildingInstance().setDataType(dataType); - return getSelf(); - } - - /** - * This function allows setting a value for definitions - * - * @param definition desired value to be set - * @return Builder object with new value for definition - */ - public B definition(List definition) { - getBuildingInstance().setDefinition(definition); - return getSelf(); - } - - /** - * This function allows adding a value to the List definitions - * - * @param definition desired value to be added - * @return Builder object with new value for definitions - */ - public B definition(LangStringDefinitionTypeIec61360 definition) { - getBuildingInstance().getDefinition().add(definition); - return getSelf(); - } - - /** - * This function allows setting a value for valueFormat - * - * @param valueFormat desired value to be set - * @return Builder object with new value for valueFormat - */ - public B valueFormat(String valueFormat) { - getBuildingInstance().setValueFormat(valueFormat); - return getSelf(); - } - - /** - * This function allows setting a value for valueList - * - * @param valueList desired value to be set - * @return Builder object with new value for valueList - */ - public B valueList(ValueList valueList) { - getBuildingInstance().setValueList(valueList); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for levelType - * - * @param levelType desired value to be set - * @return Builder object with new value for levelType - */ - public B levelType(LevelType levelType) { - getBuildingInstance().setLevelType(levelType); - return getSelf(); - } + /** + * This function allows setting a value for preferredNames + * + * @param preferredNames desired value to be set + * @return Builder object with new value for preferredNames + */ + public B preferredNames(List preferredNames) { + getBuildingInstance().setPreferredNames(preferredNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List preferredNames + * + * @param preferredName desired value to be added + * @return Builder object with new value for preferredNames + */ + public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { + getBuildingInstance().getPreferredNames().add(preferredName); + return getSelf(); + } + + /** + * This function allows setting a value for shortNames + * + * @param shortNames desired value to be set + * @return Builder object with new value for shortNames + */ + public B shortNames(List shortNames) { + getBuildingInstance().setShortNames(shortNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List shortNames + * + * @param shortName desired value to be added + * @return Builder object with new value for shortNames + */ + public B shortName(LangStringShortNameTypeIec61360 shortName) { + getBuildingInstance().getShortNames().add(shortName); + return getSelf(); + } + + /** + * This function allows setting a value for unit + * + * @param unit desired value to be set + * @return Builder object with new value for unit + */ + public B unit(String unit) { + getBuildingInstance().setUnit(unit); + return getSelf(); + } + + /** + * This function allows setting a value for unitId + * + * @param unitId desired value to be set + * @return Builder object with new value for unitId + */ + public B unitId(Reference unitId) { + getBuildingInstance().setUnitId(unitId); + return getSelf(); + } + + /** + * This function allows setting a value for sourceOfDefinition + * + * @param sourceOfDefinition desired value to be set + * @return Builder object with new value for sourceOfDefinition + */ + public B sourceOfDefinition(String sourceOfDefinition) { + getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); + return getSelf(); + } + + /** + * This function allows setting a value for symbol + * + * @param symbol desired value to be set + * @return Builder object with new value for symbol + */ + public B symbol(String symbol) { + getBuildingInstance().setSymbol(symbol); + return getSelf(); + } + + /** + * This function allows setting a value for dataType + * + * @param dataType desired value to be set + * @return Builder object with new value for dataType + */ + public B dataType(DataTypeIec61360 dataType) { + getBuildingInstance().setDataType(dataType); + return getSelf(); + } + + /** + * This function allows setting a value for definitions + * + * @param definitions desired value to be set + * @return Builder object with new value for definitions + */ + public B definitions(List definitions) { + getBuildingInstance().setDefinitions(definitions); + return getSelf(); + } + + /** + * This function allows adding a value to the List definitions + * + * @param definition desired value to be added + * @return Builder object with new value for definitions + */ + public B definition(LangStringDefinitionTypeIec61360 definition) { + getBuildingInstance().getDefinitions().add(definition); + return getSelf(); + } + + /** + * This function allows setting a value for valueFormat + * + * @param valueFormat desired value to be set + * @return Builder object with new value for valueFormat + */ + public B valueFormat(String valueFormat) { + getBuildingInstance().setValueFormat(valueFormat); + return getSelf(); + } + + /** + * This function allows setting a value for valueList + * + * @param valueList desired value to be set + * @return Builder object with new value for valueList + */ + public B valueList(ValueList valueList) { + getBuildingInstance().setValueList(valueList); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for levelType + * + * @param levelType desired value to be set + * @return Builder object with new value for levelType + */ + public B levelType(LevelType levelType) { + getBuildingInstance().setLevelType(levelType); + return getSelf(); + } + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java deleted file mode 100644 index 4d5d9b083..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; - -public abstract class DescriptorBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index 0b11a9304..f88b3561e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,33 +14,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class EmbeddedDataSpecificationBuilder< - T extends EmbeddedDataSpecification, B extends EmbeddedDataSpecificationBuilder> + +public abstract class EmbeddedDataSpecificationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for dataSpecification - * - * @param dataSpecification desired value to be set - * @return Builder object with new value for dataSpecification - */ - public B dataSpecification(Reference dataSpecification) { - getBuildingInstance().setDataSpecification(dataSpecification); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecification + * + * @param dataSpecification desired value to be set + * @return Builder object with new value for dataSpecification + */ + public B dataSpecification(Reference dataSpecification) { + getBuildingInstance().setDataSpecification(dataSpecification); + return getSelf(); + } - /** - * This function allows setting a value for dataSpecificationContent - * - * @param dataSpecificationContent desired value to be set - * @return Builder object with new value for dataSpecificationContent - */ - public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecificationContent + * + * @param dataSpecificationContent desired value to be set + * @return Builder object with new value for dataSpecificationContent + */ + public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java deleted file mode 100644 index 1fe871e64..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; - -public abstract class EndpointBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for _interface - * - * @param _interface desired value to be set - * @return Builder object with new value for _interface - */ - public B _interface(String _interface) { - getBuildingInstance().set_interface(_interface); - return getSelf(); - } - - /** - * This function allows setting a value for protocolInformation - * - * @param protocolInformation desired value to be set - * @return Builder object with new value for protocolInformation - */ - public B protocolInformation(ProtocolInformation protocolInformation) { - getBuildingInstance().setProtocolInformation(protocolInformation); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index 7238f2692..79b8de79b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -27,237 +25,239 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -public abstract class EntityBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class EntityBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for statements - * - * @param statements desired value to be set - * @return Builder object with new value for statements - */ - public B statements(List statements) { - getBuildingInstance().setStatements(statements); - return getSelf(); - } + /** + * This function allows setting a value for statements + * + * @param statements desired value to be set + * @return Builder object with new value for statements + */ + public B statements(List statements) { + getBuildingInstance().setStatements(statements); + return getSelf(); + } - /** - * This function allows adding a value to the List statements - * - * @param statements desired value to be added - * @return Builder object with new value for statements - */ - public B statements(SubmodelElement statements) { - getBuildingInstance().getStatements().add(statements); - return getSelf(); - } + /** + * This function allows adding a value to the List statements + * + * @param statements desired value to be added + * @return Builder object with new value for statements + */ + public B statements(SubmodelElement statements) { + getBuildingInstance().getStatements().add(statements); + return getSelf(); + } - /** - * This function allows setting a value for entityType - * - * @param entityType desired value to be set - * @return Builder object with new value for entityType - */ - public B entityType(EntityType entityType) { - getBuildingInstance().setEntityType(entityType); - return getSelf(); - } + /** + * This function allows setting a value for entityType + * + * @param entityType desired value to be set + * @return Builder object with new value for entityType + */ + public B entityType(EntityType entityType) { + getBuildingInstance().setEntityType(entityType); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 387bf1c36..8bce2ad09 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,78 +14,79 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; -public abstract class EnvironmentBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class EnvironmentBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for assetAdministrationShells - * - * @param assetAdministrationShells desired value to be set - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(List assetAdministrationShells) { - getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows setting a value for assetAdministrationShells + * + * @param assetAdministrationShells desired value to be set + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(List assetAdministrationShells) { + getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows adding a value to the List assetAdministrationShells - * - * @param assetAdministrationShells desired value to be added - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows adding a value to the List assetAdministrationShells + * + * @param assetAdministrationShells desired value to be added + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Submodel submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } - /** - * This function allows setting a value for conceptDescriptions - * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); - return getSelf(); - } + /** + * This function allows setting a value for conceptDescriptions + * + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List conceptDescriptions - * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List conceptDescriptions + * + * @param conceptDescriptions desired value to be added + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(ConceptDescription conceptDescriptions) { + getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index 9946e0bed..fee992815 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,98 +14,98 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class EventPayloadBuilder< - T extends EventPayload, B extends EventPayloadBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for source - * - * @param source desired value to be set - * @return Builder object with new value for source - */ - public B source(Reference source) { - getBuildingInstance().setSource(source); - return getSelf(); - } +public abstract class EventPayloadBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for source + * + * @param source desired value to be set + * @return Builder object with new value for source + */ + public B source(Reference source) { + getBuildingInstance().setSource(source); + return getSelf(); + } - /** - * This function allows setting a value for sourceSemanticId - * - * @param sourceSemanticId desired value to be set - * @return Builder object with new value for sourceSemanticId - */ - public B sourceSemanticId(Reference sourceSemanticId) { - getBuildingInstance().setSourceSemanticId(sourceSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for sourceSemanticId + * + * @param sourceSemanticId desired value to be set + * @return Builder object with new value for sourceSemanticId + */ + public B sourceSemanticId(Reference sourceSemanticId) { + getBuildingInstance().setSourceSemanticId(sourceSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for observableReference - * - * @param observableReference desired value to be set - * @return Builder object with new value for observableReference - */ - public B observableReference(Reference observableReference) { - getBuildingInstance().setObservableReference(observableReference); - return getSelf(); - } + /** + * This function allows setting a value for observableReference + * + * @param observableReference desired value to be set + * @return Builder object with new value for observableReference + */ + public B observableReference(Reference observableReference) { + getBuildingInstance().setObservableReference(observableReference); + return getSelf(); + } - /** - * This function allows setting a value for observableSemanticId - * - * @param observableSemanticId desired value to be set - * @return Builder object with new value for observableSemanticId - */ - public B observableSemanticId(Reference observableSemanticId) { - getBuildingInstance().setObservableSemanticId(observableSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for observableSemanticId + * + * @param observableSemanticId desired value to be set + * @return Builder object with new value for observableSemanticId + */ + public B observableSemanticId(Reference observableSemanticId) { + getBuildingInstance().setObservableSemanticId(observableSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for topic - * - * @param topic desired value to be set - * @return Builder object with new value for topic - */ - public B topic(String topic) { - getBuildingInstance().setTopic(topic); - return getSelf(); - } + /** + * This function allows setting a value for topic + * + * @param topic desired value to be set + * @return Builder object with new value for topic + */ + public B topic(String topic) { + getBuildingInstance().setTopic(topic); + return getSelf(); + } - /** - * This function allows setting a value for subjectId - * - * @param subjectId desired value to be set - * @return Builder object with new value for subjectId - */ - public B subjectId(Reference subjectId) { - getBuildingInstance().setSubjectId(subjectId); - return getSelf(); - } + /** + * This function allows setting a value for subjectId + * + * @param subjectId desired value to be set + * @return Builder object with new value for subjectId + */ + public B subjectId(Reference subjectId) { + getBuildingInstance().setSubjectId(subjectId); + return getSelf(); + } - /** - * This function allows setting a value for timeStamp - * - * @param timeStamp desired value to be set - * @return Builder object with new value for timeStamp - */ - public B timeStamp(String timeStamp) { - getBuildingInstance().setTimeStamp(timeStamp); - return getSelf(); - } + /** + * This function allows setting a value for timeStamp + * + * @param timeStamp desired value to be set + * @return Builder object with new value for timeStamp + */ + public B timeStamp(String timeStamp) { + getBuildingInstance().setTimeStamp(timeStamp); + return getSelf(); + } - /** - * This function allows setting a value for payload - * - * @param payload desired value to be set - * @return Builder object with new value for payload - */ - public B payload(byte[] payload) { - getBuildingInstance().setPayload(payload); - return getSelf(); - } + /** + * This function allows setting a value for payload + * + * @param payload desired value to be set + * @return Builder object with new value for payload + */ + public B payload(byte[] payload) { + getBuildingInstance().setPayload(payload); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java index d31226815..57cf35007 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,8 +14,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -public abstract class ExtendableBuilder> - extends AbstractBuilder { +public abstract class ExtendableBuilder> extends AbstractBuilder { + + protected abstract B getSelf(); - protected abstract B getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java index bf9b6e967..823e51d70 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,99 +14,100 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class ExtensionBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class ExtensionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for refersTos - * - * @param refersTos desired value to be set - * @return Builder object with new value for refersTos - */ - public B refersTos(List refersTos) { - getBuildingInstance().setRefersTo(refersTos); - return getSelf(); - } + /** + * This function allows setting a value for refersTos + * + * @param refersTos desired value to be set + * @return Builder object with new value for refersTos + */ + public B refersTos(List refersTos) { + getBuildingInstance().setRefersTos(refersTos); + return getSelf(); + } - /** - * This function allows adding a value to the List refersTos - * - * @param refersTo desired value to be added - * @return Builder object with new value for refersTos - */ - public B refersTo(Reference refersTo) { - getBuildingInstance().getRefersTo().add(refersTo); - return getSelf(); - } + /** + * This function allows adding a value to the List refersTos + * + * @param refersTo desired value to be added + * @return Builder object with new value for refersTos + */ + public B refersTo(Reference refersTo) { + getBuildingInstance().getRefersTos().add(refersTo); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index 585dd2884..578ec3c68 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -24,193 +22,195 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class FileBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +import java.util.List; + + +public abstract class FileBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index e365d0649..f04e9a96c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; -public abstract class KeyBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(KeyTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } +public abstract class KeyBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(KeyTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index b71910d97..29b8d3f92 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; -public abstract class LangStringDefinitionTypeIec61360Builder< - T extends LangStringDefinitionTypeIec61360, - B extends LangStringDefinitionTypeIec61360Builder> + +public abstract class LangStringDefinitionTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index d3a3f13ac..8b541147d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -public abstract class LangStringNameTypeBuilder< - T extends LangStringNameType, B extends LangStringNameTypeBuilder> + +public abstract class LangStringNameTypeBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index 413f6d25d..dedd6c541 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; -public abstract class LangStringPreferredNameTypeIec61360Builder< - T extends LangStringPreferredNameTypeIec61360, - B extends LangStringPreferredNameTypeIec61360Builder> + +public abstract class LangStringPreferredNameTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 25f6840a5..697ef25fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; -public abstract class LangStringShortNameTypeIec61360Builder< - T extends LangStringShortNameTypeIec61360, - B extends LangStringShortNameTypeIec61360Builder> + +public abstract class LangStringShortNameTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index d13247a66..b84b045d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +14,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -public abstract class LangStringTextTypeBuilder< - T extends LangStringTextType, B extends LangStringTextTypeBuilder> + +public abstract class LangStringTextTypeBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index 4128334b7..53ac90860 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +14,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; -public abstract class LevelTypeBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(boolean min) { - getBuildingInstance().setMin(min); - return getSelf(); - } +public abstract class LevelTypeBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(boolean min) { + getBuildingInstance().setMin(min); + return getSelf(); + } - /** - * This function allows setting a value for nom - * - * @param nom desired value to be set - * @return Builder object with new value for nom - */ - public B nom(boolean nom) { - getBuildingInstance().setNom(nom); - return getSelf(); - } + /** + * This function allows setting a value for nom + * + * @param nom desired value to be set + * @return Builder object with new value for nom + */ + public B nom(boolean nom) { + getBuildingInstance().setNom(nom); + return getSelf(); + } - /** - * This function allows setting a value for typ - * - * @param typ desired value to be set - * @return Builder object with new value for typ - */ - public B typ(boolean typ) { - getBuildingInstance().setTyp(typ); - return getSelf(); - } + /** + * This function allows setting a value for typ + * + * @param typ desired value to be set + * @return Builder object with new value for typ + */ + public B typ(boolean typ) { + getBuildingInstance().setTyp(typ); + return getSelf(); + } - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(boolean max) { - getBuildingInstance().setMax(max); - return getSelf(); - } + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(boolean max) { + getBuildingInstance().setMax(max); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java deleted file mode 100644 index 0bf3f48bd..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; - -public abstract class MessageBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for code - * - * @param code desired value to be set - * @return Builder object with new value for code - */ - public B code(String code) { - getBuildingInstance().setCode(code); - return getSelf(); - } - - /** - * This function allows setting a value for correlationId - * - * @param correlationId desired value to be set - * @return Builder object with new value for correlationId - */ - public B correlationId(String correlationId) { - getBuildingInstance().setCorrelationId(correlationId); - return getSelf(); - } - - /** - * This function allows setting a value for messageType - * - * @param messageType desired value to be set - * @return Builder object with new value for messageType - */ - public B messageType(MessageType messageType) { - getBuildingInstance().setMessageType(messageType); - return getSelf(); - } - - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } - - /** - * This function allows setting a value for timestamp - * - * @param timestamp desired value to be set - * @return Builder object with new value for timestamp - */ - public B timestamp(String timestamp) { - getBuildingInstance().setTimestamp(timestamp); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index c81d3bf0f..c25e8eb97 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,205 +22,207 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class MultiLanguagePropertyBuilder< - T extends MultiLanguageProperty, B extends MultiLanguagePropertyBuilder> +import java.util.List; + + +public abstract class MultiLanguagePropertyBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for values - * - * @param value desired value to be set - * @return Builder object with new value for values - */ - public B value(List value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(LangStringTextType value) { - getBuildingInstance().getValue().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for values + * + * @param values desired value to be set + * @return Builder object with new value for values + */ + public B values(List values) { + getBuildingInstance().setValues(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List values + * + * @param value desired value to be added + * @return Builder object with new value for values + */ + public B value(LangStringTextType value) { + getBuildingInstance().getValues().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index 683b8d643..bac1f2b2b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,237 +23,239 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class OperationBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class OperationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for inputVariables - * - * @param inputVariables desired value to be set - * @return Builder object with new value for inputVariables - */ - public B inputVariables(List inputVariables) { - getBuildingInstance().setInputVariables(inputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inputVariables + * + * @param inputVariables desired value to be set + * @return Builder object with new value for inputVariables + */ + public B inputVariables(List inputVariables) { + getBuildingInstance().setInputVariables(inputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inputVariables - * - * @param inputVariables desired value to be added - * @return Builder object with new value for inputVariables - */ - public B inputVariables(OperationVariable inputVariables) { - getBuildingInstance().getInputVariables().add(inputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inputVariables + * + * @param inputVariables desired value to be added + * @return Builder object with new value for inputVariables + */ + public B inputVariables(OperationVariable inputVariables) { + getBuildingInstance().getInputVariables().add(inputVariables); + return getSelf(); + } - /** - * This function allows setting a value for outputVariables - * - * @param outputVariables desired value to be set - * @return Builder object with new value for outputVariables - */ - public B outputVariables(List outputVariables) { - getBuildingInstance().setOutputVariables(outputVariables); - return getSelf(); - } + /** + * This function allows setting a value for outputVariables + * + * @param outputVariables desired value to be set + * @return Builder object with new value for outputVariables + */ + public B outputVariables(List outputVariables) { + getBuildingInstance().setOutputVariables(outputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List outputVariables - * - * @param outputVariables desired value to be added - * @return Builder object with new value for outputVariables - */ - public B outputVariables(OperationVariable outputVariables) { - getBuildingInstance().getOutputVariables().add(outputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List outputVariables + * + * @param outputVariables desired value to be added + * @return Builder object with new value for outputVariables + */ + public B outputVariables(OperationVariable outputVariables) { + getBuildingInstance().getOutputVariables().add(outputVariables); + return getSelf(); + } - /** - * This function allows setting a value for inoutputVariables - * - * @param inoutputVariables desired value to be set - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(List inoutputVariables) { - getBuildingInstance().setInoutputVariables(inoutputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inoutputVariables + * + * @param inoutputVariables desired value to be set + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(List inoutputVariables) { + getBuildingInstance().setInoutputVariables(inoutputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputVariables - * - * @param inoutputVariables desired value to be added - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(OperationVariable inoutputVariables) { - getBuildingInstance().getInoutputVariables().add(inoutputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputVariables + * + * @param inoutputVariables desired value to be added + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(OperationVariable inoutputVariables) { + getBuildingInstance().getInoutputVariables().add(inoutputVariables); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java deleted file mode 100644 index 9a4e3394f..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; - -public abstract class OperationHandleBuilder< - T extends OperationHandle, B extends OperationHandleBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for handleId - * - * @param handleId desired value to be set - * @return Builder object with new value for handleId - */ - public B handleId(String handleId) { - getBuildingInstance().setHandleId(handleId); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java deleted file mode 100644 index 77cef3227..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import javax.xml.datatype.Duration; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; - -public abstract class OperationRequestBuilder< - T extends OperationRequest, B extends OperationRequestBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } - - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); - return getSelf(); - } - - /** - * This function allows setting a value for inputArguments - * - * @param inputArguments desired value to be set - * @return Builder object with new value for inputArguments - */ - public B inputArguments(List inputArguments) { - getBuildingInstance().setInputArguments(inputArguments); - return getSelf(); - } - - /** - * This function allows adding a value to the List inputArguments - * - * @param inputArguments desired value to be added - * @return Builder object with new value for inputArguments - */ - public B inputArguments(OperationVariable inputArguments) { - getBuildingInstance().getInputArguments().add(inputArguments); - return getSelf(); - } - - /** - * This function allows setting a value for clientTimeoutDuration - * - * @param clientTimeoutDuration desired value to be set - * @return Builder object with new value for clientTimeoutDuration - */ - public B clientTimeoutDuration(Duration clientTimeoutDuration) { - getBuildingInstance().setClientTimeoutDuration(clientTimeoutDuration); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java deleted file mode 100644 index 96c17802c..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; - -public abstract class OperationResultBuilder< - T extends OperationResult, B extends OperationResultBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } - - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); - return getSelf(); - } - - /** - * This function allows setting a value for outputArguments - * - * @param outputArguments desired value to be set - * @return Builder object with new value for outputArguments - */ - public B outputArguments(List outputArguments) { - getBuildingInstance().setOutputArguments(outputArguments); - return getSelf(); - } - - /** - * This function allows adding a value to the List outputArguments - * - * @param outputArguments desired value to be added - * @return Builder object with new value for outputArguments - */ - public B outputArguments(OperationVariable outputArguments) { - getBuildingInstance().getOutputArguments().add(outputArguments); - return getSelf(); - } - - /** - * This function allows setting a value for executionState - * - * @param executionState desired value to be set - * @return Builder object with new value for executionState - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().setExecutionState(executionState); - return getSelf(); - } - - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } - - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } - - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index 11cb9bd58..790ee3960 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,21 +14,22 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -public abstract class OperationVariableBuilder< - T extends OperationVariable, B extends OperationVariableBuilder> + +public abstract class OperationVariableBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(SubmodelElement value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java deleted file mode 100644 index 931fbc3c3..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; - -public abstract class PackageDescriptionBuilder< - T extends PackageDescription, B extends PackageDescriptionBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for aasIds - * - * @param aasIds desired value to be set - * @return Builder object with new value for aasIds - */ - public B aasIds(List aasIds) { - getBuildingInstance().setAasIds(aasIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List aasIds - * - * @param aasIds desired value to be added - * @return Builder object with new value for aasIds - */ - public B aasIds(String aasIds) { - getBuildingInstance().getAasIds().add(aasIds); - return getSelf(); - } - - /** - * This function allows setting a value for packageId - * - * @param packageId desired value to be set - * @return Builder object with new value for packageId - */ - public B packageId(String packageId) { - getBuildingInstance().setPackageId(packageId); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index f7a582aae..7065ccb8e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,204 +23,206 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class PropertyBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +import java.util.List; + + +public abstract class PropertyBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java deleted file mode 100644 index e3a99cfd5..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; - -public abstract class ProtocolInformationBuilder< - T extends ProtocolInformation, B extends ProtocolInformationBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for href - * - * @param href desired value to be set - * @return Builder object with new value for href - */ - public B href(String href) { - getBuildingInstance().setHref(href); - return getSelf(); - } - - /** - * This function allows setting a value for endpointProtocol - * - * @param endpointProtocol desired value to be set - * @return Builder object with new value for endpointProtocol - */ - public B endpointProtocol(String endpointProtocol) { - getBuildingInstance().setEndpointProtocol(endpointProtocol); - return getSelf(); - } - - /** - * This function allows setting a value for endpointProtocolVersion - * - * @param endpointProtocolVersion desired value to be set - * @return Builder object with new value for endpointProtocolVersion - */ - public B endpointProtocolVersion(List endpointProtocolVersion) { - getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpointProtocolVersions - * - * @param endpointProtocolVersion desired value to be added - * @return Builder object with new value for endpointProtocolVersions - */ - public B endpointProtocolVersion(String endpointProtocolVersion) { - getBuildingInstance().getEndpointProtocolVersion().add(endpointProtocolVersion); - return getSelf(); - } - - /** - * This function allows setting a value for subprotocol - * - * @param subprotocol desired value to be set - * @return Builder object with new value for subprotocol - */ - public B subprotocol(String subprotocol) { - getBuildingInstance().setSubprotocol(subprotocol); - return getSelf(); - } - - /** - * This function allows setting a value for subprotocolBody - * - * @param subprotocolBody desired value to be set - * @return Builder object with new value for subprotocolBody - */ - public B subprotocolBody(String subprotocolBody) { - getBuildingInstance().setSubprotocolBody(subprotocolBody); - return getSelf(); - } - - /** - * This function allows setting a value for subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value to be set - * @return Builder object with new value for subprotocolBodyEncoding - */ - public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { - getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); - return getSelf(); - } - - /** - * This function allows setting a value for securityAttributes - * - * @param securityAttributes desired value to be set - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(List securityAttributes) { - getBuildingInstance().setSecurityAttributes(securityAttributes); - return getSelf(); - } - - /** - * This function allows adding a value to the List securityAttributes - * - * @param securityAttributes desired value to be added - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(SecurityAttributeObject securityAttributes) { - getBuildingInstance().getSecurityAttributes().add(securityAttributes); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index a48e80623..61ad5462b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,100 +14,101 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class QualifierBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class QualifierBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(QualifierKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(QualifierKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(String type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(String type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index 3913c1e36..d77b4c863 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,204 +23,206 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Range; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class RangeBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(String min) { - getBuildingInstance().setMin(min); - return getSelf(); - } - - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(String max) { - getBuildingInstance().setMax(max); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +import java.util.List; + + +public abstract class RangeBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(String min) { + getBuildingInstance().setMin(min); + return getSelf(); + } + + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(String max) { + getBuildingInstance().setMax(max); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index 311df5fd5..2ee600835 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,55 +14,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; -public abstract class ReferenceBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class ReferenceBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(ReferenceTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(ReferenceTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for referredSemanticId - * - * @param referredSemanticId desired value to be set - * @return Builder object with new value for referredSemanticId - */ - public B referredSemanticId(Reference referredSemanticId) { - getBuildingInstance().setReferredSemanticId(referredSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for referredSemanticId + * + * @param referredSemanticId desired value to be set + * @return Builder object with new value for referredSemanticId + */ + public B referredSemanticId(Reference referredSemanticId) { + getBuildingInstance().setReferredSemanticId(referredSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for keys - * - * @param keys desired value to be set - * @return Builder object with new value for keys - */ - public B keys(List keys) { - getBuildingInstance().setKeys(keys); - return getSelf(); - } + /** + * This function allows setting a value for keys + * + * @param keys desired value to be set + * @return Builder object with new value for keys + */ + public B keys(List keys) { + getBuildingInstance().setKeys(keys); + return getSelf(); + } - /** - * This function allows adding a value to the List keys - * - * @param keys desired value to be added - * @return Builder object with new value for keys - */ - public B keys(Key keys) { - getBuildingInstance().getKeys().add(keys); - return getSelf(); - } + /** + * This function allows adding a value to the List keys + * + * @param keys desired value to be added + * @return Builder object with new value for keys + */ + public B keys(Key keys) { + getBuildingInstance().getKeys().add(keys); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index dfc5421bb..43ba72e7d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,183 +22,185 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement; -public abstract class ReferenceElementBuilder< - T extends ReferenceElement, B extends ReferenceElementBuilder> +import java.util.List; + + +public abstract class ReferenceElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(Reference value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(Reference value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index f140cfc09..b4fd77f8c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,194 +22,196 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement; -public abstract class RelationshipElementBuilder< - T extends RelationshipElement, B extends RelationshipElementBuilder> +import java.util.List; + + +public abstract class RelationshipElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index 6bcabd5a3..1474e3637 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,30 +14,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Resource; -public abstract class ResourceBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for path - * - * @param path desired value to be set - * @return Builder object with new value for path - */ - public B path(String path) { - getBuildingInstance().setPath(path); - return getSelf(); - } +public abstract class ResourceBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for path + * + * @param path desired value to be set + * @return Builder object with new value for path + */ + public B path(String path) { + getBuildingInstance().setPath(path); + return getSelf(); + } - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java deleted file mode 100644 index 1f01ba015..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.Result; - -public abstract class ResultBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } - - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java deleted file mode 100644 index 2f8ddff00..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; -import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; - -public abstract class SecurityAttributeObjectBuilder< - T extends SecurityAttributeObject, B extends SecurityAttributeObjectBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(SecurityTypeEnum type) { - getBuildingInstance().setType(type); - return getSelf(); - } - - /** - * This function allows setting a value for key - * - * @param key desired value to be set - * @return Builder object with new value for key - */ - public B key(String key) { - getBuildingInstance().setKey(key); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index e11ab9eaf..94a067bb0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,77 +14,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -public abstract class SpecificAssetIdBuilder< - T extends SpecificAssetId, B extends SpecificAssetIdBuilder> +import java.util.List; + + +public abstract class SpecificAssetIdBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for externalSubjectId - * - * @param externalSubjectId desired value to be set - * @return Builder object with new value for externalSubjectId - */ - public B externalSubjectId(Reference externalSubjectId) { - getBuildingInstance().setExternalSubjectId(externalSubjectId); - return getSelf(); - } + /** + * This function allows setting a value for externalSubjectId + * + * @param externalSubjectId desired value to be set + * @return Builder object with new value for externalSubjectId + */ + public B externalSubjectId(Reference externalSubjectId) { + getBuildingInstance().setExternalSubjectId(externalSubjectId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index 2543ab2de..10c9cb24a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -27,226 +25,228 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -public abstract class SubmodelBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for submodelElements - * - * @param submodelElements desired value to be set - * @return Builder object with new value for submodelElements - */ - public B submodelElements(List submodelElements) { - getBuildingInstance().setSubmodelElements(submodelElements); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelElements - * - * @param submodelElements desired value to be added - * @return Builder object with new value for submodelElements - */ - public B submodelElements(SubmodelElement submodelElements) { - getBuildingInstance().getSubmodelElements().add(submodelElements); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +import java.util.List; + + +public abstract class SubmodelBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for submodelElements + * + * @param submodelElements desired value to be set + * @return Builder object with new value for submodelElements + */ + public B submodelElements(List submodelElements) { + getBuildingInstance().setSubmodelElements(submodelElements); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodelElements + * + * @param submodelElements desired value to be added + * @return Builder object with new value for submodelElements + */ + public B submodelElements(SubmodelElement submodelElements) { + getBuildingInstance().getSubmodelElements().add(submodelElements); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java deleted file mode 100644 index f68c424f1..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; - -public abstract class SubmodelDescriptorBuilder< - T extends SubmodelDescriptor, B extends SubmodelDescriptorBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticId desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticId(Reference supplementalSemanticId) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index 556fc1a71..6961f05d0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,194 +23,196 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection; -public abstract class SubmodelElementCollectionBuilder< - T extends SubmodelElementCollection, B extends SubmodelElementCollectionBuilder> +import java.util.List; + + +public abstract class SubmodelElementCollectionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for values - * - * @param value desired value to be set - * @return Builder object with new value for values - */ - public B value(List value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValue().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for values + * + * @param values desired value to be set + * @return Builder object with new value for values + */ + public B values(List values) { + getBuildingInstance().setValues(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List values + * + * @param value desired value to be added + * @return Builder object with new value for values + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValues().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index b66f7e17e..0af29cdc1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,7 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -27,238 +25,240 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList; -public abstract class SubmodelElementListBuilder< - T extends SubmodelElementList, B extends SubmodelElementListBuilder> +import java.util.List; + + +public abstract class SubmodelElementListBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for orderRelevant - * - * @param orderRelevant desired value to be set - * @return Builder object with new value for orderRelevant - */ - public B orderRelevant(boolean orderRelevant) { - getBuildingInstance().setOrderRelevant(orderRelevant); - return getSelf(); - } + /** + * This function allows setting a value for orderRelevant + * + * @param orderRelevant desired value to be set + * @return Builder object with new value for orderRelevant + */ + public B orderRelevant(boolean orderRelevant) { + getBuildingInstance().setOrderRelevant(orderRelevant); + return getSelf(); + } - /** - * This function allows setting a value for semanticIdListElement - * - * @param semanticIdListElement desired value to be set - * @return Builder object with new value for semanticIdListElement - */ - public B semanticIdListElement(Reference semanticIdListElement) { - getBuildingInstance().setSemanticIdListElement(semanticIdListElement); - return getSelf(); - } + /** + * This function allows setting a value for semanticIdListElement + * + * @param semanticIdListElement desired value to be set + * @return Builder object with new value for semanticIdListElement + */ + public B semanticIdListElement(Reference semanticIdListElement) { + getBuildingInstance().setSemanticIdListElement(semanticIdListElement); + return getSelf(); + } - /** - * This function allows setting a value for typeValueListElement - * - * @param typeValueListElement desired value to be set - * @return Builder object with new value for typeValueListElement - */ - public B typeValueListElement(AasSubmodelElements typeValueListElement) { - getBuildingInstance().setTypeValueListElement(typeValueListElement); - return getSelf(); - } + /** + * This function allows setting a value for typeValueListElement + * + * @param typeValueListElement desired value to be set + * @return Builder object with new value for typeValueListElement + */ + public B typeValueListElement(AasSubmodelElements typeValueListElement) { + getBuildingInstance().setTypeValueListElement(typeValueListElement); + return getSelf(); + } - /** - * This function allows setting a value for valueTypeListElement - * - * @param valueTypeListElement desired value to be set - * @return Builder object with new value for valueTypeListElement - */ - public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { - getBuildingInstance().setValueTypeListElement(valueTypeListElement); - return getSelf(); - } + /** + * This function allows setting a value for valueTypeListElement + * + * @param valueTypeListElement desired value to be set + * @return Builder object with new value for valueTypeListElement + */ + public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { + getBuildingInstance().setValueTypeListElement(valueTypeListElement); + return getSelf(); + } - /** - * This function allows setting a value for values - * - * @param value desired value to be set - * @return Builder object with new value for values - */ - public B value(List value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for values + * + * @param values desired value to be set + * @return Builder object with new value for values + */ + public B values(List values) { + getBuildingInstance().setValues(values); + return getSelf(); + } - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValue().add(value); - return getSelf(); - } + /** + * This function allows adding a value to the List values + * + * @param value desired value to be added + * @return Builder object with new value for values + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValues().add(value); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(List description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index dd0ce9b9c..3cc977501 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +14,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; -public abstract class ValueListBuilder> - extends ExtendableBuilder { +import java.util.List; + + +public abstract class ValueListBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for valueReferencePairs - * - * @param valueReferencePairs desired value to be set - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(List valueReferencePairs) { - getBuildingInstance().setValueReferencePairs(valueReferencePairs); - return getSelf(); - } + /** + * This function allows setting a value for valueReferencePairs + * + * @param valueReferencePairs desired value to be set + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(List valueReferencePairs) { + getBuildingInstance().setValueReferencePairs(valueReferencePairs); + return getSelf(); + } - /** - * This function allows adding a value to the List valueReferencePairs - * - * @param valueReferencePairs desired value to be added - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(ValueReferencePair valueReferencePairs) { - getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); - return getSelf(); - } + /** + * This function allows adding a value to the List valueReferencePairs + * + * @param valueReferencePairs desired value to be added + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(ValueReferencePair valueReferencePairs) { + getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index ddd4e9a7f..2f75e4854 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +14,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; -public abstract class ValueReferencePairBuilder< - T extends ValueReferencePair, B extends ValueReferencePairBuilder> + +public abstract class ValueReferencePairBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index d8d6764ac..2c8d8bc58 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,151 +14,178 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AdministrativeInformationBuilder; +import javax.xml.datatype.XMLGregorianCalendar; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation - * - *

Administrative meta-information for an element like version information. + * + * Administrative meta-information for an element like version information. */ + @IRI("aas:AdministrativeInformation") public class DefaultAdministrativeInformation implements AdministrativeInformation { - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/creator") - protected Reference creator; - - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/revision") - protected String revision; - - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/templateId") - protected String templateId; - - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/version") - protected String version; - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - public DefaultAdministrativeInformation() {} - - @Override - public String toString() { - return "DefaultAdministrativeInformation{" - + "creator=" - + creator - + ", revision='" - + revision - + '\'' - + ", templateId='" - + templateId - + '\'' - + ", version='" - + version - + '\'' - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + '}'; - } - - @Override - public int hashCode() { - return Objects.hash( - this.version, - this.revision, - this.creator, - this.templateId, - this.embeddedDataSpecifications); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; - return Objects.equals(this.version, other.version) - && Objects.equals(this.revision, other.revision) - && Objects.equals(this.creator, other.creator) - && Objects.equals(this.templateId, other.templateId) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); - } - } - - @Override - public String getVersion() { - return version; - } - - @Override - public void setVersion(String version) { - this.version = version; - } - - @Override - public String getRevision() { - return revision; - } - - @Override - public void setRevision(String revision) { - this.revision = revision; - } - - @Override - public Reference getCreator() { - return creator; - } - - @Override - public void setCreator(Reference creator) { - this.creator = creator; - } - - @Override - public String getTemplateId() { - return templateId; - } - - @Override - public void setTemplateId(String templateId) { - this.templateId = templateId; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - /** This builder class can be used to construct a DefaultAdministrativeInformation bean. */ - public static class Builder - extends AdministrativeInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAdministrativeInformation newBuildingInstance() { - return new DefaultAdministrativeInformation(); - } - } + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") + protected XMLGregorianCalendar createdAt; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") + protected Reference creator; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") + protected String revision; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") + protected String templateId; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") + protected XMLGregorianCalendar updatedAt; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") + protected String version; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + public DefaultAdministrativeInformation() {} + + @Override + public String toString() { + return "DefaultAdministrativeInformation{" + + "createdAt='" + createdAt + "'," + + "version='" + version + "'," + + "revision='" + revision + "'," + + "creator='" + creator + "'," + + "templateId='" + templateId + "'," + + "updatedAt='" + updatedAt + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.createdAt, + this.version, + this.revision, + this.creator, + this.templateId, + this.updatedAt, + this.embeddedDataSpecifications); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; + return Objects.equals(this.createdAt, other.createdAt) && + Objects.equals(this.version, other.version) && + Objects.equals(this.revision, other.revision) && + Objects.equals(this.creator, other.creator) && + Objects.equals(this.templateId, other.templateId) && + Objects.equals(this.updatedAt, other.updatedAt) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); + } + } + + @Override + public XMLGregorianCalendar getCreatedAt() { + return createdAt; + } + + @Override + public void setCreatedAt(XMLGregorianCalendar createdAt) { + this.createdAt = createdAt; + } + + @Override + public String getVersion() { + return version; + } + + @Override + public void setVersion(String version) { + this.version = version; + } + + @Override + public String getRevision() { + return revision; + } + + @Override + public void setRevision(String revision) { + this.revision = revision; + } + + @Override + public Reference getCreator() { + return creator; + } + + @Override + public void setCreator(Reference creator) { + this.creator = creator; + } + + @Override + public String getTemplateId() { + return templateId; + } + + @Override + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + @Override + public XMLGregorianCalendar getUpdatedAt() { + return updatedAt; + } + + @Override + public void setUpdatedAt(XMLGregorianCalendar updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + /** + * This builder class can be used to construct a DefaultAdministrativeInformation bean. + */ + public static class Builder extends AdministrativeInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAdministrativeInformation newBuildingInstance() { + return new DefaultAdministrativeInformation(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index bbaf1a03c..90454c25f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -29,261 +25,252 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AnnotatedRelationshipElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement - * - *

An annotated relationship element is a relationship element that can be annotated with - * additional data elements. + * + * An annotated relationship element is a relationship element that can be annotated with additional + * data elements. */ + @IRI("aas:AnnotatedRelationshipElement") public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshipElement { - @IRI("https://admin-shell.io/aas/3/1/AnnotatedRelationshipElement/annotations") - protected List annotations = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/second") - protected Reference second; - - public DefaultAnnotatedRelationshipElement() {} - - @Override - public int hashCode() { - return Objects.hash( - this.annotations, - this.first, - this.second, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; - return Objects.equals(this.annotations, other.annotations) - && Objects.equals(this.first, other.first) - && Objects.equals(this.second, other.second) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") + protected List annotations = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") + protected Reference second; + + public DefaultAnnotatedRelationshipElement() {} + + @Override + public String toString() { + return "DefaultAnnotatedRelationshipElement{" + + "annotations='" + annotations + "'," + + "first='" + first + "'," + + "second='" + second + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.annotations, + this.first, + this.second, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; + return Objects.equals(this.annotations, other.annotations) && + Objects.equals(this.first, other.first) && + Objects.equals(this.second, other.second) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getAnnotations() { + return annotations; + } + + @Override + public void setAnnotations(List annotations) { + this.annotations = annotations; + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } - } - - @Override - public String toString() { - return "DefaultAnnotatedRelationshipElement{" - + "annotations=" - + annotations - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + ", first=" - + first - + ", second=" - + second - + '}'; - } - - @Override - public List getAnnotations() { - return annotations; - } - - @Override - public void setAnnotations(List annotations) { - this.annotations = annotations; - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. */ - public static class Builder - extends AnnotatedRelationshipElementBuilder { @Override - protected Builder getSelf() { - return this; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - protected DefaultAnnotatedRelationshipElement newBuildingInstance() { - return new DefaultAnnotatedRelationshipElement(); + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. + */ + public static class Builder extends AnnotatedRelationshipElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAnnotatedRelationshipElement newBuildingInstance() { + return new DefaultAnnotatedRelationshipElement(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index c2a12f831..b118b8802 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -29,222 +25,234 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell - * - *

An asset administration shell. + * + * An asset administration shell. */ + @IRI("aas:AssetAdministrationShell") public class DefaultAssetAdministrationShell implements AssetAdministrationShell { - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/assetInformation") - protected AssetInformation assetInformation; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/derivedFrom") - protected Reference derivedFrom; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/submodels") - protected List submodels = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultAssetAdministrationShell() {} - - @Override - public int hashCode() { - return Objects.hash( - this.derivedFrom, - this.assetInformation, - this.submodels, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; - return Objects.equals(this.derivedFrom, other.derivedFrom) - && Objects.equals(this.assetInformation, other.assetInformation) - && Objects.equals(this.submodels, other.submodels) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.administration, other.administration) - && Objects.equals(this.id, other.id) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public Reference getDerivedFrom() { - return derivedFrom; - } - - @Override - public void setDerivedFrom(Reference derivedFrom) { - this.derivedFrom = derivedFrom; - } - - @Override - public AssetInformation getAssetInformation() { - return assetInformation; - } - - @Override - public void setAssetInformation(AssetInformation assetInformation) { - this.assetInformation = assetInformation; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultAssetAdministrationShell (" - + "derivedFrom=%s," - + "assetInformation=%s," - + "submodels=%s," - + ")", - this.derivedFrom, this.assetInformation, this.submodels); - } - - /** This builder class can be used to construct a DefaultAssetAdministrationShell bean. */ - public static class Builder - extends AssetAdministrationShellBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShell newBuildingInstance() { - return new DefaultAssetAdministrationShell(); - } - } + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") + protected AssetInformation assetInformation; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") + protected Reference derivedFrom; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") + protected List submodels = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultAssetAdministrationShell() {} + + @Override + public String toString() { + return "DefaultAssetAdministrationShell{" + + "derivedFrom='" + derivedFrom + "'," + + "assetInformation='" + assetInformation + "'," + + "submodels='" + submodels + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "administration='" + administration + "'," + + "id='" + id + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.derivedFrom, + this.assetInformation, + this.submodels, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; + return Objects.equals(this.derivedFrom, other.derivedFrom) && + Objects.equals(this.assetInformation, other.assetInformation) && + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public Reference getDerivedFrom() { + return derivedFrom; + } + + @Override + public void setDerivedFrom(Reference derivedFrom) { + this.derivedFrom = derivedFrom; + } + + @Override + public AssetInformation getAssetInformation() { + return assetInformation; + } + + @Override + public void setAssetInformation(AssetInformation assetInformation) { + this.assetInformation = assetInformation; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShell bean. + */ + public static class Builder extends AssetAdministrationShellBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShell newBuildingInstance() { + return new DefaultAssetAdministrationShell(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java deleted file mode 100644 index effd2fa54..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellDescriptorBuilder; - -/** - * Default implementation of package - * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor - */ -@IRI("aas:AssetAdministrationShellDescriptor") -public class DefaultAssetAdministrationShellDescriptor - implements AssetAdministrationShellDescriptor { - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetKind") - protected AssetKind assetKind; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/assetType") - protected String assetType; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/submodelDescriptors") - protected List submodelDescriptors = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/extensions") - protected List extensions = new ArrayList<>(); - - public DefaultAssetAdministrationShellDescriptor() {} - - @Override - public int hashCode() { - return Objects.hash( - this.administration, - this.assetKind, - this.assetType, - this.endpoints, - this.globalAssetId, - this.idShort, - this.id, - this.specificAssetIds, - this.submodelDescriptors, - this.description, - this.displayName, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShellDescriptor other = - (DefaultAssetAdministrationShellDescriptor) obj; - return Objects.equals(this.administration, other.administration) - && Objects.equals(this.assetKind, other.assetKind) - && Objects.equals(this.assetType, other.assetType) - && Objects.equals(this.endpoints, other.endpoints) - && Objects.equals(this.globalAssetId, other.globalAssetId) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.id, other.id) - && Objects.equals(this.specificAssetIds, other.specificAssetIds) - && Objects.equals(this.submodelDescriptors, other.submodelDescriptors) - && Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public String toString() { - return "DefaultAssetAdministrationShellDescriptor{" - + "administration=" - + administration - + ", assetKind=" - + assetKind - + ", assetType='" - + assetType - + '\'' - + ", endpoints=" - + endpoints - + ", globalAssetId='" - + globalAssetId - + '\'' - + ", id='" - + id - + '\'' - + ", idShort='" - + idShort - + '\'' - + ", specificAssetIds=" - + specificAssetIds - + ", submodelDescriptors=" - + submodelDescriptors - + ", description=" - + description - + ", displayName=" - + displayName - + ", extensions=" - + extensions - + '}'; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getAssetType() { - return assetType; - } - - @Override - public void setAssetType(String assetType) { - this.assetType = assetType; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public List getSubmodelDescriptors() { - return submodelDescriptors; - } - - @Override - public void setSubmodelDescriptors(List submodelDescriptors) { - this.submodelDescriptors = submodelDescriptors; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. - */ - public static class Builder - extends AssetAdministrationShellDescriptorBuilder< - DefaultAssetAdministrationShellDescriptor, Builder> { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { - return new DefaultAssetAdministrationShellDescriptor(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index 84a60bbfe..b7f11c4db 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; @@ -25,139 +21,139 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetInformationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation - * - *

In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is + * + * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ + @IRI("aas:AssetInformation") public class DefaultAssetInformation implements AssetInformation { - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/assetKind") - protected AssetKind assetKind; - - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/assetType") - protected String assetType; - - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/defaultThumbnail") - protected Resource defaultThumbnail; - - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - public DefaultAssetInformation() {} - - @Override - public int hashCode() { - return Objects.hash( - this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetInformation other = (DefaultAssetInformation) obj; - return Objects.equals(this.assetKind, other.assetKind) - && Objects.equals(this.globalAssetId, other.globalAssetId) - && Objects.equals(this.specificAssetIds, other.specificAssetIds) - && Objects.equals(this.assetType, other.assetType) - && Objects.equals(this.defaultThumbnail, other.defaultThumbnail); + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") + protected AssetKind assetKind; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") + protected String assetType; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") + protected Resource defaultThumbnail; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + public DefaultAssetInformation() {} + + @Override + public String toString() { + return "DefaultAssetInformation{" + + "assetKind='" + assetKind + "'," + + "globalAssetId='" + globalAssetId + "'," + + "specificAssetIds='" + specificAssetIds + "'," + + "assetType='" + assetType + "'," + + "defaultThumbnail='" + defaultThumbnail + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.assetKind, + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetInformation other = (DefaultAssetInformation) obj; + return Objects.equals(this.assetKind, other.assetKind) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.assetType, other.assetType) && + Objects.equals(this.defaultThumbnail, other.defaultThumbnail); + } + } + + @Override + public AssetKind getAssetKind() { + return assetKind; + } + + @Override + public void setAssetKind(AssetKind assetKind) { + this.assetKind = assetKind; } - } - - @Override - public String toString() { - return "DefaultAssetInformation{" - + "assetKind=" - + assetKind - + ", assetType='" - + assetType - + '\'' - + ", defaultThumbnail=" - + defaultThumbnail - + ", globalAssetId='" - + globalAssetId - + '\'' - + ", specificAssetIds=" - + specificAssetIds - + '}'; - } - - @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getAssetType() { - return assetType; - } - - @Override - public void setAssetType(String assetType) { - this.assetType = assetType; - } - - @Override - public Resource getDefaultThumbnail() { - return defaultThumbnail; - } - - @Override - public void setDefaultThumbnail(Resource defaultThumbnail) { - this.defaultThumbnail = defaultThumbnail; - } - - /** This builder class can be used to construct a DefaultAssetInformation bean. */ - public static class Builder extends AssetInformationBuilder { @Override - protected Builder getSelf() { - return this; + public String getGlobalAssetId() { + return globalAssetId; } @Override - protected DefaultAssetInformation newBuildingInstance() { - return new DefaultAssetInformation(); + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public String getAssetType() { + return assetType; + } + + @Override + public void setAssetType(String assetType) { + this.assetType = assetType; + } + + @Override + public Resource getDefaultThumbnail() { + return defaultThumbnail; + } + + @Override + public void setDefaultThumbnail(Resource defaultThumbnail) { + this.defaultThumbnail = defaultThumbnail; + } + + /** + * This builder class can be used to construct a DefaultAssetInformation bean. + */ + public static class Builder extends AssetInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetInformation newBuildingInstance() { + return new DefaultAssetInformation(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java deleted file mode 100644 index 31184f752..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; -import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult */ -@IRI("aas:BaseOperationResult") -public class DefaultBaseOperationResult implements BaseOperationResult { - - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/executionState") - protected ExecutionState executionState; - - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/success") - protected boolean success; - - @IRI("https://admin-shell.io/aas/3/1/Result/messages") - protected List messages = new ArrayList<>(); - - public DefaultBaseOperationResult() {} - - @Override - public int hashCode() { - return Objects.hash(this.executionState, this.success, this.messages); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; - return Objects.equals(this.executionState, other.executionState) - && Objects.equals(this.success, other.success) - && Objects.equals(this.messages, other.messages); - } - } - - @Override - public String toString() { - return "DefaultBaseOperationResult{" - + "executionState=" - + executionState - + ", success=" - + success - + ", messages=" - + messages - + '}'; - } - - @Override - public ExecutionState getExecutionState() { - return executionState; - } - - @Override - public void setExecutionState(ExecutionState executionState) { - this.executionState = executionState; - } - - @Override - public boolean getSuccess() { - return success; - } - - @Override - public void setSuccess(boolean success) { - this.success = success; - } - - @Override - public List getMessages() { - return messages; - } - - @Override - public void setMessages(List messages) { - this.messages = messages; - } - - /** This builder class can be used to construct a DefaultBaseOperationResult bean. */ - public static class Builder - extends BaseOperationResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBaseOperationResult newBuildingInstance() { - return new DefaultBaseOperationResult(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index 5fd52fe76..a219b90f8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -30,347 +26,330 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BasicEventElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement - * - *

A basic event element. + * + * A basic event element. */ + @IRI("aas:BasicEventElement") public class DefaultBasicEventElement implements BasicEventElement { - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/direction") - protected Direction direction; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/lastUpdate") - protected String lastUpdate; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/maxInterval") - protected String maxInterval; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/messageBroker") - protected Reference messageBroker; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/messageTopic") - protected String messageTopic; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/minInterval") - protected String minInterval; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/observed") - protected Reference observed; - - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/state") - protected StateOfEvent state; - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultBasicEventElement() {} - - @Override - public int hashCode() { - return Objects.hash( - this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBasicEventElement other = (DefaultBasicEventElement) obj; - return Objects.equals(this.observed, other.observed) - && Objects.equals(this.direction, other.direction) - && Objects.equals(this.state, other.state) - && Objects.equals(this.messageTopic, other.messageTopic) - && Objects.equals(this.messageBroker, other.messageBroker) - && Objects.equals(this.lastUpdate, other.lastUpdate) - && Objects.equals(this.minInterval, other.minInterval) - && Objects.equals(this.maxInterval, other.maxInterval) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String toString() { - return "DefaultBasicEventElement{" - + "direction=" - + direction - + ", lastUpdate='" - + lastUpdate - + '\'' - + ", maxInterval='" - + maxInterval - + '\'' - + ", messageBroker=" - + messageBroker - + ", messageTopic='" - + messageTopic - + '\'' - + ", minInterval='" - + minInterval - + '\'' - + ", observed=" - + observed - + ", state=" - + state - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public Reference getObserved() { - return observed; - } - - @Override - public void setObserved(Reference observed) { - this.observed = observed; - } - - @Override - public Direction getDirection() { - return direction; - } - - @Override - public void setDirection(Direction direction) { - this.direction = direction; - } - - @Override - public StateOfEvent getState() { - return state; - } - - @Override - public void setState(StateOfEvent state) { - this.state = state; - } - - @Override - public String getMessageTopic() { - return messageTopic; - } - - @Override - public void setMessageTopic(String messageTopic) { - this.messageTopic = messageTopic; - } - - @Override - public Reference getMessageBroker() { - return messageBroker; - } - - @Override - public void setMessageBroker(Reference messageBroker) { - this.messageBroker = messageBroker; - } - - @Override - public String getLastUpdate() { - return lastUpdate; - } - - @Override - public void setLastUpdate(String lastUpdate) { - this.lastUpdate = lastUpdate; - } - - @Override - public String getMinInterval() { - return minInterval; - } - - @Override - public void setMinInterval(String minInterval) { - this.minInterval = minInterval; - } - - @Override - public String getMaxInterval() { - return maxInterval; - } - - @Override - public void setMaxInterval(String maxInterval) { - this.maxInterval = maxInterval; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultBasicEventElement bean. */ - public static class Builder extends BasicEventElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBasicEventElement newBuildingInstance() { - return new DefaultBasicEventElement(); - } - } + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") + protected Direction direction; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") + protected String lastUpdate; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") + protected String maxInterval; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") + protected Reference messageBroker; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") + protected String messageTopic; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") + protected String minInterval; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") + protected Reference observed; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") + protected StateOfEvent state; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultBasicEventElement() {} + + @Override + public String toString() { + return "DefaultBasicEventElement{" + + "observed='" + observed + "'," + + "direction='" + direction + "'," + + "state='" + state + "'," + + "messageTopic='" + messageTopic + "'," + + "messageBroker='" + messageBroker + "'," + + "lastUpdate='" + lastUpdate + "'," + + "minInterval='" + minInterval + "'," + + "maxInterval='" + maxInterval + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.observed, + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBasicEventElement other = (DefaultBasicEventElement) obj; + return Objects.equals(this.observed, other.observed) && + Objects.equals(this.direction, other.direction) && + Objects.equals(this.state, other.state) && + Objects.equals(this.messageTopic, other.messageTopic) && + Objects.equals(this.messageBroker, other.messageBroker) && + Objects.equals(this.lastUpdate, other.lastUpdate) && + Objects.equals(this.minInterval, other.minInterval) && + Objects.equals(this.maxInterval, other.maxInterval) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public Reference getObserved() { + return observed; + } + + @Override + public void setObserved(Reference observed) { + this.observed = observed; + } + + @Override + public Direction getDirection() { + return direction; + } + + @Override + public void setDirection(Direction direction) { + this.direction = direction; + } + + @Override + public StateOfEvent getState() { + return state; + } + + @Override + public void setState(StateOfEvent state) { + this.state = state; + } + + @Override + public String getMessageTopic() { + return messageTopic; + } + + @Override + public void setMessageTopic(String messageTopic) { + this.messageTopic = messageTopic; + } + + @Override + public Reference getMessageBroker() { + return messageBroker; + } + + @Override + public void setMessageBroker(Reference messageBroker) { + this.messageBroker = messageBroker; + } + + @Override + public String getLastUpdate() { + return lastUpdate; + } + + @Override + public void setLastUpdate(String lastUpdate) { + this.lastUpdate = lastUpdate; + } + + @Override + public String getMinInterval() { + return minInterval; + } + + @Override + public void setMinInterval(String minInterval) { + this.minInterval = minInterval; + } + + @Override + public String getMaxInterval() { + return maxInterval; + } + + @Override + public void setMaxInterval(String maxInterval) { + this.maxInterval = maxInterval; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultBasicEventElement bean. + */ + public static class Builder extends BasicEventElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBasicEventElement newBuildingInstance() { + return new DefaultBasicEventElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index 18256d5e4..39e44fd4c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,10 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,243 +24,236 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BlobBuilder; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob - * - *

A 'Blob' is a data element that represents a file that is contained with its source code in - * the value attribute. + * + * A 'Blob' is a data element that represents a file that is contained with its source code in the + * value attribute. */ + @IRI("aas:Blob") public class DefaultBlob implements Blob { - @IRI("https://admin-shell.io/aas/3/1/Blob/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/1/Blob/value") - protected byte[] value; - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultBlob() {} - - @Override - public int hashCode() { - return Objects.hash( - Arrays.hashCode(this.value), - this.contentType, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBlob other = (DefaultBlob) obj; - return Arrays.equals(this.value, other.value) - && Objects.equals(this.contentType, other.contentType) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/2/Blob/value") + protected byte[] value; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultBlob() {} + + @Override + public String toString() { + return "DefaultBlob{" + + "value='" + value + "'," + + "contentType='" + contentType + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(Arrays.hashCode(this.value), + this.contentType, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBlob other = (DefaultBlob) obj; + return Arrays.equals(this.value, other.value) && + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public byte[] getValue() { + return value; + } + + @Override + public void setValue(byte[] value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; } - } - - @Override - public String toString() { - return "DefaultBlob{" - + "contentType='" - + contentType - + '\'' - + ", value=" - + Arrays.toString(value) - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public byte[] getValue() { - return value; - } - - @Override - public void setValue(byte[] value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultBlob bean. */ - public static class Builder extends BlobBuilder { @Override - protected Builder getSelf() { - return this; + public void setCategory(String category) { + this.category = category; } @Override - protected DefaultBlob newBuildingInstance() { - return new DefaultBlob(); + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultBlob bean. + */ + public static class Builder extends BlobBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBlob newBuildingInstance() { + return new DefaultBlob(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index 4d26071dc..b30c9ba68 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -28,208 +24,203 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.CapabilityBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability - * - *

A capability is the implementation-independent description of the potential of an asset to + * + * A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ + @IRI("aas:Capability") public class DefaultCapability implements Capability { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultCapability() {} - - @Override - public int hashCode() { - return Objects.hash( - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultCapability other = (DefaultCapability) obj; - return Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String toString() { - return "DefaultCapability{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultCapability bean. */ - public static class Builder extends CapabilityBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultCapability newBuildingInstance() { - return new DefaultCapability(); - } - } + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultCapability() {} + + @Override + public String toString() { + return "DefaultCapability{" + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultCapability other = (DefaultCapability) obj; + return Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultCapability bean. + */ + public static class Builder extends CapabilityBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultCapability newBuildingInstance() { + return new DefaultCapability(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index 579e6aa65..c9f519137 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -28,210 +24,203 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ConceptDescriptionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription - * - *

The semantics of a property or other elements that may have a semantic description is defined - * by a concept description. + * + * The semantics of a property or other elements that may have a semantic description is defined by + * a concept description. */ + @IRI("aas:ConceptDescription") public class DefaultConceptDescription implements ConceptDescription { - @IRI("https://admin-shell.io/aas/3/1/ConceptDescription/isCaseOf") - protected List isCaseOf = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultConceptDescription() {} - - @Override - public int hashCode() { - return Objects.hash( - this.isCaseOf, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultConceptDescription other = (DefaultConceptDescription) obj; - return Objects.equals(this.isCaseOf, other.isCaseOf) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.administration, other.administration) - && Objects.equals(this.id, other.id) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public String toString() { - return "DefaultConceptDescription{" - + "isCaseOf=" - + isCaseOf - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", administration=" - + administration - + ", id='" - + id - + '\'' - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public List getIsCaseOf() { - return isCaseOf; - } - - @Override - public void setIsCaseOf(List isCaseOf) { - this.isCaseOf = isCaseOf; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** This builder class can be used to construct a DefaultConceptDescription bean. */ - public static class Builder - extends ConceptDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultConceptDescription newBuildingInstance() { - return new DefaultConceptDescription(); - } - } + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") + protected List isCaseOfs = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultConceptDescription() {} + + @Override + public String toString() { + return "DefaultConceptDescription{" + + "isCaseOfs='" + isCaseOfs + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "administration='" + administration + "'," + + "id='" + id + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.isCaseOfs, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultConceptDescription other = (DefaultConceptDescription) obj; + return Objects.equals(this.isCaseOfs, other.isCaseOfs) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getIsCaseOfs() { + return isCaseOfs; + } + + @Override + public void setIsCaseOfs(List isCaseOfs) { + this.isCaseOfs = isCaseOfs; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultConceptDescription bean. + */ + public static class Builder extends ConceptDescriptionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultConceptDescription newBuildingInstance() { + return new DefaultConceptDescription(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index 9b6e26194..de00ceeae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -29,263 +25,252 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DataSpecificationIec61360Builder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 - * - *

Content of data specification template for concept description for properties, values and - * value lists conformant to IEC 61360. + * + * Content of data specification template for concept descriptions for properties, values and value + * lists conformant to IEC 61360. */ + @IRI("aas:DataSpecificationIec61360") public class DefaultDataSpecificationIec61360 implements DataSpecificationIec61360 { - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/dataType") - protected DataTypeIec61360 dataType; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/definition") - protected List definition = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/levelType") - protected LevelType levelType; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/preferredName") - protected List preferredName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/shortName") - protected List shortName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/sourceOfDefinition") - protected String sourceOfDefinition; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/symbol") - protected String symbol; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unit") - protected String unit; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unitId") - protected Reference unitId; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueFormat") - protected String valueFormat; - - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueList") - protected ValueList valueList; - - public DefaultDataSpecificationIec61360() {} - - @Override - public int hashCode() { - return Objects.hash( - this.preferredName, - this.shortName, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definition, - this.valueFormat, - this.valueList, - this.value, - this.levelType); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; - return Objects.equals(this.preferredName, other.preferredName) - && Objects.equals(this.shortName, other.shortName) - && Objects.equals(this.unit, other.unit) - && Objects.equals(this.unitId, other.unitId) - && Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) - && Objects.equals(this.symbol, other.symbol) - && Objects.equals(this.dataType, other.dataType) - && Objects.equals(this.definition, other.definition) - && Objects.equals(this.valueFormat, other.valueFormat) - && Objects.equals(this.valueList, other.valueList) - && Objects.equals(this.value, other.value) - && Objects.equals(this.levelType, other.levelType); + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") + protected DataTypeIec61360 dataType; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") + protected List definitions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") + protected LevelType levelType; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") + protected List preferredNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") + protected List shortNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") + protected String sourceOfDefinition; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") + protected String symbol; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") + protected String unit; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") + protected Reference unitId; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") + protected String valueFormat; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") + protected ValueList valueList; + + public DefaultDataSpecificationIec61360() {} + + @Override + public String toString() { + return "DefaultDataSpecificationIec61360{" + + "preferredNames='" + preferredNames + "'," + + "shortNames='" + shortNames + "'," + + "unit='" + unit + "'," + + "unitId='" + unitId + "'," + + "sourceOfDefinition='" + sourceOfDefinition + "'," + + "symbol='" + symbol + "'," + + "dataType='" + dataType + "'," + + "definitions='" + definitions + "'," + + "valueFormat='" + valueFormat + "'," + + "valueList='" + valueList + "'," + + "value='" + value + "'," + + "levelType='" + levelType + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.preferredNames, + this.shortNames, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definitions, + this.valueFormat, + this.valueList, + this.value, + this.levelType); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; + return Objects.equals(this.preferredNames, other.preferredNames) && + Objects.equals(this.shortNames, other.shortNames) && + Objects.equals(this.unit, other.unit) && + Objects.equals(this.unitId, other.unitId) && + Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && + Objects.equals(this.symbol, other.symbol) && + Objects.equals(this.dataType, other.dataType) && + Objects.equals(this.definitions, other.definitions) && + Objects.equals(this.valueFormat, other.valueFormat) && + Objects.equals(this.valueList, other.valueList) && + Objects.equals(this.value, other.value) && + Objects.equals(this.levelType, other.levelType); + } + } + + @Override + public List getPreferredNames() { + return preferredNames; + } + + @Override + public void setPreferredNames(List preferredNames) { + this.preferredNames = preferredNames; + } + + @Override + public List getShortNames() { + return shortNames; + } + + @Override + public void setShortNames(List shortNames) { + this.shortNames = shortNames; + } + + @Override + public String getUnit() { + return unit; + } + + @Override + public void setUnit(String unit) { + this.unit = unit; + } + + @Override + public Reference getUnitId() { + return unitId; } - } - - @Override - public String toString() { - return "DefaultDataSpecificationIec61360{" - + "dataType=" - + dataType - + ", definition=" - + definition - + ", levelType=" - + levelType - + ", preferredName=" - + preferredName - + ", shortName=" - + shortName - + ", sourceOfDefinition='" - + sourceOfDefinition - + '\'' - + ", symbol='" - + symbol - + '\'' - + ", unit='" - + unit - + '\'' - + ", unitId=" - + unitId - + ", value='" - + value - + '\'' - + ", valueFormat='" - + valueFormat - + '\'' - + ", valueList=" - + valueList - + '}'; - } - - @Override - public List getPreferredName() { - return preferredName; - } - - @Override - public void setPreferredName(List preferredName) { - this.preferredName = preferredName; - } - - @Override - public List getShortName() { - return shortName; - } - - @Override - public void setShortName(List shortName) { - this.shortName = shortName; - } - - @Override - public String getUnit() { - return unit; - } - - @Override - public void setUnit(String unit) { - this.unit = unit; - } - - @Override - public Reference getUnitId() { - return unitId; - } - - @Override - public void setUnitId(Reference unitId) { - this.unitId = unitId; - } - - @Override - public String getSourceOfDefinition() { - return sourceOfDefinition; - } - - @Override - public void setSourceOfDefinition(String sourceOfDefinition) { - this.sourceOfDefinition = sourceOfDefinition; - } - - @Override - public String getSymbol() { - return symbol; - } - - @Override - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - @Override - public DataTypeIec61360 getDataType() { - return dataType; - } - - @Override - public void setDataType(DataTypeIec61360 dataType) { - this.dataType = dataType; - } - - @Override - public List getDefinition() { - return definition; - } - - @Override - public void setDefinition(List definition) { - this.definition = definition; - } - - @Override - public String getValueFormat() { - return valueFormat; - } - - @Override - public void setValueFormat(String valueFormat) { - this.valueFormat = valueFormat; - } - - @Override - public ValueList getValueList() { - return valueList; - } - - @Override - public void setValueList(ValueList valueList) { - this.valueList = valueList; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public LevelType getLevelType() { - return levelType; - } - - @Override - public void setLevelType(LevelType levelType) { - this.levelType = levelType; - } - - /** This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. */ - public static class Builder - extends DataSpecificationIec61360Builder { @Override - protected Builder getSelf() { - return this; + public void setUnitId(Reference unitId) { + this.unitId = unitId; } @Override - protected DefaultDataSpecificationIec61360 newBuildingInstance() { - return new DefaultDataSpecificationIec61360(); + public String getSourceOfDefinition() { + return sourceOfDefinition; + } + + @Override + public void setSourceOfDefinition(String sourceOfDefinition) { + this.sourceOfDefinition = sourceOfDefinition; + } + + @Override + public String getSymbol() { + return symbol; + } + + @Override + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + @Override + public DataTypeIec61360 getDataType() { + return dataType; + } + + @Override + public void setDataType(DataTypeIec61360 dataType) { + this.dataType = dataType; + } + + @Override + public List getDefinitions() { + return definitions; + } + + @Override + public void setDefinitions(List definitions) { + this.definitions = definitions; + } + + @Override + public String getValueFormat() { + return valueFormat; + } + + @Override + public void setValueFormat(String valueFormat) { + this.valueFormat = valueFormat; + } + + @Override + public ValueList getValueList() { + return valueList; + } + + @Override + public void setValueList(ValueList valueList) { + this.valueList = valueList; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public LevelType getLevelType() { + return levelType; + } + + @Override + public void setLevelType(LevelType levelType) { + this.levelType = levelType; + } + + /** + * This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. + */ + public static class Builder extends DataSpecificationIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultDataSpecificationIec61360 newBuildingInstance() { + return new DefaultDataSpecificationIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java deleted file mode 100644 index 1b5b74d0b..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor */ -@IRI("aas:Descriptor") -public class DefaultDescriptor implements Descriptor { - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/extensions") - protected List extensions = new ArrayList<>(); - - public DefaultDescriptor() {} - - @Override - public int hashCode() { - return Objects.hash(this.description, this.displayName, this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDescriptor other = (DefaultDescriptor) obj; - return Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public String toString() { - return "DefaultDescriptor{" - + "description=" - + description - + ", displayName=" - + displayName - + ", extensions=" - + extensions - + '}'; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** This builder class can be used to construct a DefaultDescriptor bean. */ - public static class Builder extends DescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultDescriptor newBuildingInstance() { - return new DefaultDescriptor(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index b46e0858e..277e40702 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,92 +14,95 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EmbeddedDataSpecificationBuilder; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification - * - *

Embed the content of a data specification. + * + * Embed the content of a data specification. */ + @IRI("aas:EmbeddedDataSpecification") public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecification { - @IRI("https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecification") - protected Reference dataSpecification; - - @IRI("https://admin-shell.io/aas/3/1/EmbeddedDataSpecification/dataSpecificationContent") - protected DataSpecificationContent dataSpecificationContent; - - public DefaultEmbeddedDataSpecification() {} - - @Override - public int hashCode() { - return Objects.hash(this.dataSpecification, this.dataSpecificationContent); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; - return Objects.equals(this.dataSpecification, other.dataSpecification) - && Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") + protected Reference dataSpecification; + + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") + protected DataSpecificationContent dataSpecificationContent; + + public DefaultEmbeddedDataSpecification() {} + + @Override + public String toString() { + return "DefaultEmbeddedDataSpecification{" + + "dataSpecification='" + dataSpecification + "'," + + "dataSpecificationContent='" + dataSpecificationContent + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.dataSpecification, + this.dataSpecificationContent); } - } - - @Override - public String toString() { - return "DefaultEmbeddedDataSpecification{" - + "dataSpecification=" - + dataSpecification - + ", dataSpecificationContent=" - + dataSpecificationContent - + '}'; - } - - @Override - public Reference getDataSpecification() { - return dataSpecification; - } - - @Override - public void setDataSpecification(Reference dataSpecification) { - this.dataSpecification = dataSpecification; - } - - @Override - public DataSpecificationContent getDataSpecificationContent() { - return dataSpecificationContent; - } - - @Override - public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - this.dataSpecificationContent = dataSpecificationContent; - } - - /** This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. */ - public static class Builder - extends EmbeddedDataSpecificationBuilder { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; + return Objects.equals(this.dataSpecification, other.dataSpecification) && + Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); + } } @Override - protected DefaultEmbeddedDataSpecification newBuildingInstance() { - return new DefaultEmbeddedDataSpecification(); + public Reference getDataSpecification() { + return dataSpecification; + } + + @Override + public void setDataSpecification(Reference dataSpecification) { + this.dataSpecification = dataSpecification; + } + + @Override + public DataSpecificationContent getDataSpecificationContent() { + return dataSpecificationContent; + } + + @Override + public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + this.dataSpecificationContent = dataSpecificationContent; + } + + /** + * This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. + */ + public static class Builder extends EmbeddedDataSpecificationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEmbeddedDataSpecification newBuildingInstance() { + return new DefaultEmbeddedDataSpecification(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java deleted file mode 100644 index 0caeb6ab6..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.EndpointBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint */ -@IRI("aas:Endpoint") -public class DefaultEndpoint implements Endpoint { - - @IRI("https://admin-shell.io/aas/3/1/Endpoint/_interface") - protected String _interface; - - @IRI("https://admin-shell.io/aas/3/1/Endpoint/protocolInformation") - protected ProtocolInformation protocolInformation; - - public DefaultEndpoint() {} - - @Override - public int hashCode() { - return Objects.hash(this._interface, this.protocolInformation); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEndpoint other = (DefaultEndpoint) obj; - return Objects.equals(this._interface, other._interface) - && Objects.equals(this.protocolInformation, other.protocolInformation); - } - } - - @Override - public String toString() { - return "DefaultEndpoint{" - + "_interface='" - + _interface - + '\'' - + ", protocolInformation=" - + protocolInformation - + '}'; - } - - @Override - public String get_interface() { - return _interface; - } - - @Override - public void set_interface(String _interface) { - this._interface = _interface; - } - - @Override - public ProtocolInformation getProtocolInformation() { - return protocolInformation; - } - - @Override - public void setProtocolInformation(ProtocolInformation protocolInformation) { - this.protocolInformation = protocolInformation; - } - - /** This builder class can be used to construct a DefaultEndpoint bean. */ - public static class Builder extends EndpointBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEndpoint newBuildingInstance() { - return new DefaultEndpoint(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index 1ec98280d..ba726f8ad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -31,276 +27,266 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EntityBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity - * - *

An entity is a submodel element that is used to model entities. + * + * An entity is a submodel element that is used to model entities. */ + @IRI("aas:Entity") public class DefaultEntity implements Entity { - @IRI("https://admin-shell.io/aas/3/1/Entity/entityType") - protected EntityType entityType; - - @IRI("https://admin-shell.io/aas/3/1/Entity/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/1/Entity/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Entity/statements") - protected List statements = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultEntity() {} - - @Override - public int hashCode() { - return Objects.hash( - this.statements, - this.entityType, - this.globalAssetId, - this.specificAssetIds, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEntity other = (DefaultEntity) obj; - return Objects.equals(this.statements, other.statements) - && Objects.equals(this.entityType, other.entityType) - && Objects.equals(this.globalAssetId, other.globalAssetId) - && Objects.equals(this.specificAssetIds, other.specificAssetIds) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") + protected EntityType entityType; + + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") + protected List statements = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultEntity() {} + + @Override + public String toString() { + return "DefaultEntity{" + + "statements='" + statements + "'," + + "entityType='" + entityType + "'," + + "globalAssetId='" + globalAssetId + "'," + + "specificAssetIds='" + specificAssetIds + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.statements, + this.entityType, + this.globalAssetId, + this.specificAssetIds, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEntity other = (DefaultEntity) obj; + return Objects.equals(this.statements, other.statements) && + Objects.equals(this.entityType, other.entityType) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getStatements() { + return statements; + } + + @Override + public void setStatements(List statements) { + this.statements = statements; + } + + @Override + public EntityType getEntityType() { + return entityType; + } + + @Override + public void setEntityType(EntityType entityType) { + this.entityType = entityType; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } - } - - @Override - public String toString() { - return "DefaultEntity{" - + "entityType=" - + entityType - + ", globalAssetId='" - + globalAssetId - + '\'' - + ", specificAssetIds=" - + specificAssetIds - + ", statements=" - + statements - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public List getStatements() { - return statements; - } - - @Override - public void setStatements(List statements) { - this.statements = statements; - } - - @Override - public EntityType getEntityType() { - return entityType; - } - - @Override - public void setEntityType(EntityType entityType) { - this.entityType = entityType; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultEntity bean. */ - public static class Builder extends EntityBuilder { @Override - protected Builder getSelf() { - return this; + public Reference getSemanticId() { + return semanticId; } @Override - protected DefaultEntity newBuildingInstance() { - return new DefaultEntity(); + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultEntity bean. + */ + public static class Builder extends EntityBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEntity newBuildingInstance() { + return new DefaultEntity(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index 61da2b3ab..f92c0a377 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; @@ -25,98 +21,106 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EnvironmentBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment - * - *

Container for the sets of different identifiables. + * + * Container for the sets of different identifiables. */ + @IRI("aas:Environment") public class DefaultEnvironment implements Environment { - @IRI("https://admin-shell.io/aas/3/1/Environment/assetAdministrationShells") - protected List assetAdministrationShells = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Environment/conceptDescriptions") - protected List conceptDescriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Environment/submodels") - protected List submodels = new ArrayList<>(); - - public DefaultEnvironment() {} - - @Override - public int hashCode() { - return Objects.hash(this.assetAdministrationShells, this.submodels, this.conceptDescriptions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEnvironment other = (DefaultEnvironment) obj; - return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) - && Objects.equals(this.submodels, other.submodels) - && Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") + protected List assetAdministrationShells = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") + protected List conceptDescriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") + protected List submodels = new ArrayList<>(); + + public DefaultEnvironment() {} + + @Override + public String toString() { + return "DefaultEnvironment{" + + "assetAdministrationShells='" + assetAdministrationShells + "'," + + "submodels='" + submodels + "'," + + "conceptDescriptions='" + conceptDescriptions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.assetAdministrationShells, + this.submodels, + this.conceptDescriptions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEnvironment other = (DefaultEnvironment) obj; + return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + } + } + + @Override + public List getAssetAdministrationShells() { + return assetAdministrationShells; + } + + @Override + public void setAssetAdministrationShells(List assetAdministrationShells) { + this.assetAdministrationShells = assetAdministrationShells; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; } - } - - @Override - public List getAssetAdministrationShells() { - return assetAdministrationShells; - } - - @Override - public void setAssetAdministrationShells( - List assetAdministrationShells) { - this.assetAdministrationShells = assetAdministrationShells; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getConceptDescriptions() { - return conceptDescriptions; - } - - @Override - public void setConceptDescriptions(List conceptDescriptions) { - this.conceptDescriptions = conceptDescriptions; - } - - public String toString() { - return String.format( - "DefaultEnvironment (" - + "assetAdministrationShells=%s," - + "submodels=%s," - + "conceptDescriptions=%s," - + ")", - this.assetAdministrationShells, this.submodels, this.conceptDescriptions); - } - - /** This builder class can be used to construct a DefaultEnvironment bean. */ - public static class Builder extends EnvironmentBuilder { @Override - protected Builder getSelf() { - return this; + public List getConceptDescriptions() { + return conceptDescriptions; } @Override - protected DefaultEnvironment newBuildingInstance() { - return new DefaultEnvironment(); + public void setConceptDescriptions(List conceptDescriptions) { + this.conceptDescriptions = conceptDescriptions; + } + + /** + * This builder class can be used to construct a DefaultEnvironment bean. + */ + public static class Builder extends EnvironmentBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEnvironment newBuildingInstance() { + return new DefaultEnvironment(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index 014257a87..727dea704 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,196 +14,190 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Arrays; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EventPayloadBuilder; +import java.util.Arrays; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload - * - *

Defines the necessary information of an event instance sent out or received. + * + * Defines the necessary information of an event instance sent out or received. */ + @IRI("aas:EventPayload") public class DefaultEventPayload implements EventPayload { - @IRI("https://admin-shell.io/aas/3/1/EventPayload/observableReference") - protected Reference observableReference; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/observableSemanticId") - protected Reference observableSemanticId; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/payload") - protected byte[] payload; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/source") - protected Reference source; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/sourceSemanticId") - protected Reference sourceSemanticId; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/subjectId") - protected Reference subjectId; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/timeStamp") - protected String timeStamp; - - @IRI("https://admin-shell.io/aas/3/1/EventPayload/topic") - protected String topic; - - public DefaultEventPayload() {} - - @Override - public int hashCode() { - return Objects.hash( - this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - Arrays.hashCode(this.payload)); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEventPayload other = (DefaultEventPayload) obj; - return Objects.equals(this.source, other.source) - && Objects.equals(this.sourceSemanticId, other.sourceSemanticId) - && Objects.equals(this.observableReference, other.observableReference) - && Objects.equals(this.observableSemanticId, other.observableSemanticId) - && Objects.equals(this.topic, other.topic) - && Objects.equals(this.subjectId, other.subjectId) - && Objects.equals(this.timeStamp, other.timeStamp) - && Arrays.equals(this.payload, other.payload); - } - } - - @Override - public String toString() { - return "DefaultEventPayload{" - + "observableReference=" - + observableReference - + ", observableSemanticId=" - + observableSemanticId - + ", payload=" - + Arrays.toString(payload) - + ", source=" - + source - + ", sourceSemanticId=" - + sourceSemanticId - + ", subjectId=" - + subjectId - + ", timeStamp='" - + timeStamp - + '\'' - + ", topic='" - + topic - + '\'' - + '}'; - } - - @Override - public Reference getSource() { - return source; - } - - @Override - public void setSource(Reference source) { - this.source = source; - } - - @Override - public Reference getSourceSemanticId() { - return sourceSemanticId; - } - - @Override - public void setSourceSemanticId(Reference sourceSemanticId) { - this.sourceSemanticId = sourceSemanticId; - } - - @Override - public Reference getObservableReference() { - return observableReference; - } - - @Override - public void setObservableReference(Reference observableReference) { - this.observableReference = observableReference; - } - - @Override - public Reference getObservableSemanticId() { - return observableSemanticId; - } - - @Override - public void setObservableSemanticId(Reference observableSemanticId) { - this.observableSemanticId = observableSemanticId; - } - - @Override - public String getTopic() { - return topic; - } - - @Override - public void setTopic(String topic) { - this.topic = topic; - } - - @Override - public Reference getSubjectId() { - return subjectId; - } - - @Override - public void setSubjectId(Reference subjectId) { - this.subjectId = subjectId; - } - - @Override - public String getTimeStamp() { - return timeStamp; - } - - @Override - public void setTimeStamp(String timeStamp) { - this.timeStamp = timeStamp; - } - - @Override - public byte[] getPayload() { - return payload; - } - - @Override - public void setPayload(byte[] payload) { - this.payload = payload; - } - - /** This builder class can be used to construct a DefaultEventPayload bean. */ - public static class Builder extends EventPayloadBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEventPayload newBuildingInstance() { - return new DefaultEventPayload(); - } - } + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") + protected Reference observableReference; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") + protected Reference observableSemanticId; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") + protected byte[] payload; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") + protected Reference source; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") + protected Reference sourceSemanticId; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") + protected Reference subjectId; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") + protected String timeStamp; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") + protected String topic; + + public DefaultEventPayload() {} + + @Override + public String toString() { + return "DefaultEventPayload{" + + "source='" + source + "'," + + "sourceSemanticId='" + sourceSemanticId + "'," + + "observableReference='" + observableReference + "'," + + "observableSemanticId='" + observableSemanticId + "'," + + "topic='" + topic + "'," + + "subjectId='" + subjectId + "'," + + "timeStamp='" + timeStamp + "'," + + "payload='" + payload + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.source, + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + Arrays.hashCode(this.payload)); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEventPayload other = (DefaultEventPayload) obj; + return Objects.equals(this.source, other.source) && + Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && + Objects.equals(this.observableReference, other.observableReference) && + Objects.equals(this.observableSemanticId, other.observableSemanticId) && + Objects.equals(this.topic, other.topic) && + Objects.equals(this.subjectId, other.subjectId) && + Objects.equals(this.timeStamp, other.timeStamp) && + Arrays.equals(this.payload, other.payload); + } + } + + @Override + public Reference getSource() { + return source; + } + + @Override + public void setSource(Reference source) { + this.source = source; + } + + @Override + public Reference getSourceSemanticId() { + return sourceSemanticId; + } + + @Override + public void setSourceSemanticId(Reference sourceSemanticId) { + this.sourceSemanticId = sourceSemanticId; + } + + @Override + public Reference getObservableReference() { + return observableReference; + } + + @Override + public void setObservableReference(Reference observableReference) { + this.observableReference = observableReference; + } + + @Override + public Reference getObservableSemanticId() { + return observableSemanticId; + } + + @Override + public void setObservableSemanticId(Reference observableSemanticId) { + this.observableSemanticId = observableSemanticId; + } + + @Override + public String getTopic() { + return topic; + } + + @Override + public void setTopic(String topic) { + this.topic = topic; + } + + @Override + public Reference getSubjectId() { + return subjectId; + } + + @Override + public void setSubjectId(Reference subjectId) { + this.subjectId = subjectId; + } + + @Override + public String getTimeStamp() { + return timeStamp; + } + + @Override + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + @Override + public byte[] getPayload() { + return payload; + } + + @Override + public void setPayload(byte[] payload) { + this.payload = payload; + } + + /** + * This builder class can be used to construct a DefaultEventPayload bean. + */ + public static class Builder extends EventPayloadBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEventPayload newBuildingInstance() { + return new DefaultEventPayload(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index 315676a68..f96c30ffb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,164 +14,160 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ExtensionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension - * - *

Single extension of an element. + * + * Single extension of an element. */ + @IRI("aas:Extension") public class DefaultExtension implements Extension { - @IRI("https://admin-shell.io/aas/3/1/Extension/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/1/Extension/refersTo") - protected List refersTos = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Extension/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/1/Extension/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - public DefaultExtension() {} - - @Override - public int hashCode() { - return Objects.hash( - this.name, - this.valueType, - this.value, - this.refersTos, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultExtension other = (DefaultExtension) obj; - return Objects.equals(this.name, other.name) - && Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.value, other.value) - && Objects.equals(this.refersTos, other.refersTos) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public String toString() { - return "DefaultExtension{" - + "name='" - + name - + '\'' - + ", refersTos=" - + refersTos - + ", value='" - + value - + '\'' - + ", valueType=" - + valueType - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + '}'; - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public List getRefersTo() { - return refersTos; - } - - @Override - public void setRefersTo(List refersTos) { - this.refersTos = refersTos; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** This builder class can be used to construct a DefaultExtension bean. */ - public static class Builder extends ExtensionBuilder { + @IRI("https://admin-shell.io/aas/3/2/Extension/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") + protected List refersTos = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Extension/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + public DefaultExtension() {} + + @Override + public String toString() { + return "DefaultExtension{" + + "name='" + name + "'," + + "valueType='" + valueType + "'," + + "value='" + value + "'," + + "refersTos='" + refersTos + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.name, + this.valueType, + this.value, + this.refersTos, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultExtension other = (DefaultExtension) obj; + return Objects.equals(this.name, other.name) && + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.refersTos, other.refersTos) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } @Override - protected Builder getSelf() { - return this; + public String getValue() { + return value; } @Override - protected DefaultExtension newBuildingInstance() { - return new DefaultExtension(); + public void setValue(String value) { + this.value = value; + } + + @Override + public List getRefersTos() { + return refersTos; + } + + @Override + public void setRefersTos(List refersTos) { + this.refersTos = refersTos; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + /** + * This builder class can be used to construct a DefaultExtension bean. + */ + public static class Builder extends ExtensionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultExtension newBuildingInstance() { + return new DefaultExtension(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index f82c416d0..59a0ae070 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -28,243 +24,234 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.FileBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File - * - *

A File is a data element that represents an address to a file (a locator). + * + * A File is a data element that represents an address to a file (a locator). */ + @IRI("aas:File") public class DefaultFile implements File { - @IRI("https://admin-shell.io/aas/3/1/File/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/1/File/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultFile() {} - - @Override - public int hashCode() { - return Objects.hash( - this.value, - this.contentType, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultFile other = (DefaultFile) obj; - return Objects.equals(this.value, other.value) - && Objects.equals(this.contentType, other.contentType) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/File/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/2/File/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultFile() {} + + @Override + public String toString() { + return "DefaultFile{" + + "value='" + value + "'," + + "contentType='" + contentType + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.value, + this.contentType, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultFile other = (DefaultFile) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; } - } - - @Override - public String toString() { - return "DefaultFile{" - + "contentType='" - + contentType - + '\'' - + ", value='" - + value - + '\'' - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultFile bean. */ - public static class Builder extends FileBuilder { @Override - protected Builder getSelf() { - return this; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - protected DefaultFile newBuildingInstance() { - return new DefaultFile(); + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultFile bean. + */ + public static class Builder extends FileBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultFile newBuildingInstance() { + return new DefaultFile(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index 2dd44f930..aefba4680 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,82 +14,93 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.KeyBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key - * - *

A key is a reference to an element by its ID. + * + * A key is a reference to an element by its ID. */ + @IRI("aas:Key") public class DefaultKey implements Key { - @IRI("https://admin-shell.io/aas/3/1/Key/type") - protected KeyTypes type; - - @IRI("https://admin-shell.io/aas/3/1/Key/value") - protected String value; - - public DefaultKey() {} - - @Override - public int hashCode() { - return Objects.hash(this.type, this.value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultKey other = (DefaultKey) obj; - return Objects.equals(this.type, other.type) && Objects.equals(this.value, other.value); - } - } + @IRI("https://admin-shell.io/aas/3/2/Key/type") + protected KeyTypes type; - @Override - public KeyTypes getType() { - return type; - } + @IRI("https://admin-shell.io/aas/3/2/Key/value") + protected String value; - @Override - public void setType(KeyTypes type) { - this.type = type; - } + public DefaultKey() {} - @Override - public String getValue() { - return value; - } + @Override + public String toString() { + return "DefaultKey{" + + "type='" + type + "'," + + "value='" + value + "'," + + "}"; + } - @Override - public void setValue(String value) { - this.value = value; - } + @Override + public int hashCode() { + return Objects.hash(this.type, + this.value); + } - public String toString() { - return String.format("DefaultKey (" + "type=%s," + "value=%s," + ")", this.type, this.value); - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultKey other = (DefaultKey) obj; + return Objects.equals(this.type, other.type) && + Objects.equals(this.value, other.value); + } + } - /** This builder class can be used to construct a DefaultKey bean. */ - public static class Builder extends KeyBuilder { + @Override + public KeyTypes getType() { + return type; + } + + @Override + public void setType(KeyTypes type) { + this.type = type; + } @Override - protected Builder getSelf() { - return this; + public String getValue() { + return value; } @Override - protected DefaultKey newBuildingInstance() { - return new DefaultKey(); + public void setValue(String value) { + this.value = value; + } + + /** + * This builder class can be used to construct a DefaultKey bean. + */ + public static class Builder extends KeyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultKey newBuildingInstance() { + return new DefaultKey(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index 788e3aa03..8a3e665c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,92 +14,93 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringDefinitionTypeIec61360Builder; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 - * - *

String with length 1023 maximum and minimum 1 characters and with language tags + * + * String with length 1023 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringDefinitionTypeIec61360") public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefinitionTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/text") - protected String text; - - public DefaultLangStringDefinitionTypeIec61360() {} - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringDefinitionTypeIec61360() {} + + @Override + public String toString() { + return "DefaultLangStringDefinitionTypeIec61360{" + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); } - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - @Override - public String toString() { - return "DefaultLangStringDefinitionTypeIec61360{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - - /** This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. */ - public static class Builder - extends LangStringDefinitionTypeIec61360Builder< - DefaultLangStringDefinitionTypeIec61360, Builder> { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } } @Override - protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { - return new DefaultLangStringDefinitionTypeIec61360(); + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** + * This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. + */ + public static class Builder extends LangStringDefinitionTypeIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { + return new DefaultLangStringDefinitionTypeIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index 42ee10b67..436a197ca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,90 +14,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringNameTypeBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType - * - *

String with length 128 maximum and minimum 1 characters and with language tags + * + * String with length 128 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringNameType") public class DefaultLangStringNameType implements LangStringNameType { - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/text") - protected String text; - - public DefaultLangStringNameType() {} - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringNameType other = (DefaultLangStringNameType) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringNameType() {} + + @Override + public String toString() { + return "DefaultLangStringNameType{" + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); } - } - - @Override - public String toString() { - return "DefaultLangStringNameType{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - /** This builder class can be used to construct a DefaultLangStringNameType bean. */ - public static class Builder - extends LangStringNameTypeBuilder { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringNameType other = (DefaultLangStringNameType) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } } @Override - protected DefaultLangStringNameType newBuildingInstance() { - return new DefaultLangStringNameType(); + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** + * This builder class can be used to construct a DefaultLangStringNameType bean. + */ + public static class Builder extends LangStringNameTypeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringNameType newBuildingInstance() { + return new DefaultLangStringNameType(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index 9776e41ef..b69f5dc7e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,96 +14,93 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringPreferredNameTypeIec61360Builder; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 - * - *

String with length 255 maximum and minimum 1 characters and with language tags + * + * String with length 255 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringPreferredNameTypeIec61360") -public class DefaultLangStringPreferredNameTypeIec61360 - implements LangStringPreferredNameTypeIec61360 { - - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/text") - protected String text; - - public DefaultLangStringPreferredNameTypeIec61360() {} - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringPreferredNameTypeIec61360 other = - (DefaultLangStringPreferredNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); +public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPreferredNameTypeIec61360 { + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringPreferredNameTypeIec61360() {} + + @Override + public String toString() { + return "DefaultLangStringPreferredNameTypeIec61360{" + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); } - } - - @Override - public String toString() { - return "DefaultLangStringPreferredNameTypeIec61360{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. - */ - public static class Builder - extends LangStringPreferredNameTypeIec61360Builder< - DefaultLangStringPreferredNameTypeIec61360, Builder> { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringPreferredNameTypeIec61360 other = (DefaultLangStringPreferredNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } } @Override - protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringPreferredNameTypeIec61360(); + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** + * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. + */ + public static class Builder extends LangStringPreferredNameTypeIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringPreferredNameTypeIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index 18eb63b2c..6e008584a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,92 +14,93 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringShortNameTypeIec61360Builder; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 - * - *

String with length 18 maximum and minimum 1 characters and with language tags + * + * String with length 18 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringShortNameTypeIec61360") public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNameTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/text") - protected String text; - - public DefaultLangStringShortNameTypeIec61360() {} - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringShortNameTypeIec61360() {} + + @Override + public String toString() { + return "DefaultLangStringShortNameTypeIec61360{" + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); } - } - - @Override - public String toString() { - return "DefaultLangStringShortNameTypeIec61360{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - /** This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. */ - public static class Builder - extends LangStringShortNameTypeIec61360Builder< - DefaultLangStringShortNameTypeIec61360, Builder> { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } } @Override - protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringShortNameTypeIec61360(); + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** + * This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. + */ + public static class Builder extends LangStringShortNameTypeIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringShortNameTypeIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index d3880cd6d..f873d4ee3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,90 +14,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringTextTypeBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType - * - *

String with length 1023 maximum and minimum 1 characters and with language tags + * + * String with length 1023 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringTextType") public class DefaultLangStringTextType implements LangStringTextType { - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/1/AbstractLangString/text") - protected String text; - - public DefaultLangStringTextType() {} - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringTextType other = (DefaultLangStringTextType) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringTextType() {} + + @Override + public String toString() { + return "DefaultLangStringTextType{" + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); } - } - - @Override - public String toString() { - return "DefaultLangStringTextType{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - /** This builder class can be used to construct a DefaultLangStringTextType bean. */ - public static class Builder - extends LangStringTextTypeBuilder { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringTextType other = (DefaultLangStringTextType) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } } @Override - protected DefaultLangStringTextType newBuildingInstance() { - return new DefaultLangStringTextType(); + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** + * This builder class can be used to construct a DefaultLangStringTextType bean. + */ + public static class Builder extends LangStringTextTypeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringTextType newBuildingInstance() { + return new DefaultLangStringTextType(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index 4ff262727..1f977b2a7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,121 +14,125 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LevelTypeBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType - * - *

Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP - * and MAX. True means that the value is available, false means the value is not available. + * + * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and + * MAX. True means that the value is available, false means the value is not available. */ + @IRI("aas:LevelType") public class DefaultLevelType implements LevelType { - @IRI("https://admin-shell.io/aas/3/1/LevelType/max") - protected boolean max; - - @IRI("https://admin-shell.io/aas/3/1/LevelType/min") - protected boolean min; - - @IRI("https://admin-shell.io/aas/3/1/LevelType/nom") - protected boolean nom; - - @IRI("https://admin-shell.io/aas/3/1/LevelType/typ") - protected boolean typ; - - public DefaultLevelType() {} - - @Override - public int hashCode() { - return Objects.hash(this.min, this.nom, this.typ, this.max); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLevelType other = (DefaultLevelType) obj; - return Objects.equals(this.min, other.min) - && Objects.equals(this.nom, other.nom) - && Objects.equals(this.typ, other.typ) - && Objects.equals(this.max, other.max); + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") + protected boolean max; + + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") + protected boolean min; + + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") + protected boolean nom; + + @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") + protected boolean typ; + + public DefaultLevelType() {} + + @Override + public String toString() { + return "DefaultLevelType{" + + "min='" + min + "'," + + "nom='" + nom + "'," + + "typ='" + typ + "'," + + "max='" + max + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.min, + this.nom, + this.typ, + this.max); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLevelType other = (DefaultLevelType) obj; + return Objects.equals(this.min, other.min) && + Objects.equals(this.nom, other.nom) && + Objects.equals(this.typ, other.typ) && + Objects.equals(this.max, other.max); + } + } + + @Override + public boolean getMin() { + return min; } - } - - @Override - public String toString() { - return "DefaultLevelType{" - + "max=" - + max - + ", min=" - + min - + ", nom=" - + nom - + ", typ=" - + typ - + '}'; - } - - @Override - public boolean getMin() { - return min; - } - - @Override - public void setMin(boolean min) { - this.min = min; - } - - @Override - public boolean getNom() { - return nom; - } - - @Override - public void setNom(boolean nom) { - this.nom = nom; - } - - @Override - public boolean getTyp() { - return typ; - } - - @Override - public void setTyp(boolean typ) { - this.typ = typ; - } - - @Override - public boolean getMax() { - return max; - } - - @Override - public void setMax(boolean max) { - this.max = max; - } - - /** This builder class can be used to construct a DefaultLevelType bean. */ - public static class Builder extends LevelTypeBuilder { @Override - protected Builder getSelf() { - return this; + public void setMin(boolean min) { + this.min = min; } @Override - protected DefaultLevelType newBuildingInstance() { - return new DefaultLevelType(); + public boolean getNom() { + return nom; + } + + @Override + public void setNom(boolean nom) { + this.nom = nom; + } + + @Override + public boolean getTyp() { + return typ; + } + + @Override + public void setTyp(boolean typ) { + this.typ = typ; + } + + @Override + public boolean getMax() { + return max; + } + + @Override + public void setMax(boolean max) { + this.max = max; + } + + /** + * This builder class can be used to construct a DefaultLevelType bean. + */ + public static class Builder extends LevelTypeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLevelType newBuildingInstance() { + return new DefaultLevelType(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java deleted file mode 100644 index 46354baf7..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message */ -@IRI("aas:Message") -public class DefaultMessage implements Message { - - @IRI("https://admin-shell.io/aas/3/1/Message/code") - protected String code; - - @IRI("https://admin-shell.io/aas/3/1/Message/correlationId") - protected String correlationId; - - @IRI("https://admin-shell.io/aas/3/1/Message/messageType") - protected MessageType messageType; - - @IRI("https://admin-shell.io/aas/3/1/Message/text") - protected String text; - - @IRI("https://admin-shell.io/aas/3/1/Message/timestamp") - protected String timestamp; - - public DefaultMessage() {} - - @Override - public int hashCode() { - return Objects.hash(this.code, this.correlationId, this.messageType, this.text, this.timestamp); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMessage other = (DefaultMessage) obj; - return Objects.equals(this.code, other.code) - && Objects.equals(this.correlationId, other.correlationId) - && Objects.equals(this.messageType, other.messageType) - && Objects.equals(this.text, other.text) - && Objects.equals(this.timestamp, other.timestamp); - } - } - - @Override - public String toString() { - return "DefaultMessage{" - + "code='" - + code - + '\'' - + ", correlationId='" - + correlationId - + '\'' - + ", messageType=" - + messageType - + ", text='" - + text - + '\'' - + ", timestamp='" - + timestamp - + '\'' - + '}'; - } - - @Override - public String getCode() { - return code; - } - - @Override - public void setCode(String code) { - this.code = code; - } - - @Override - public String getCorrelationId() { - return correlationId; - } - - @Override - public void setCorrelationId(String correlationId) { - this.correlationId = correlationId; - } - - @Override - public MessageType getMessageType() { - return messageType; - } - - @Override - public void setMessageType(MessageType messageType) { - this.messageType = messageType; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - @Override - public String getTimestamp() { - return timestamp; - } - - @Override - public void setTimestamp(String timestamp) { - this.timestamp = timestamp; - } - - /** This builder class can be used to construct a DefaultMessage bean. */ - public static class Builder extends MessageBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultMessage newBuildingInstance() { - return new DefaultMessage(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index ab5755c69..5d02a8ea5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,242 +24,234 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MultiLanguagePropertyBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty - * - *

A property is a data element that has a multi-language value. + * + * A property is a data element that has a multi-language value. */ + @IRI("aas:MultiLanguageProperty") public class DefaultMultiLanguageProperty implements MultiLanguageProperty { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/MultiLanguageProperty/value") - protected List value = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/MultiLanguageProperty/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultMultiLanguageProperty() {} - - @Override - public int hashCode() { - return Objects.hash( - this.value, - this.valueId, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; - return Objects.equals(this.value, other.value) - && Objects.equals(this.valueId, other.valueId) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") + protected List values = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultMultiLanguageProperty() {} + + @Override + public String toString() { + return "DefaultMultiLanguageProperty{" + + "values='" + values + "'," + + "valueId='" + valueId + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.values, + this.valueId, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; + return Objects.equals(this.values, other.values) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getValues() { + return values; + } + + @Override + public void setValues(List values) { + this.values = values; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; } - } - - @Override - public String toString() { - return "DefaultMultiLanguageProperty{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", value=" - + value - + ", valueId=" - + valueId - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public List getValue() { - return value; - } - - @Override - public void setValue(List value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultMultiLanguageProperty bean. */ - public static class Builder - extends MultiLanguagePropertyBuilder { @Override - protected Builder getSelf() { - return this; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - protected DefaultMultiLanguageProperty newBuildingInstance() { - return new DefaultMultiLanguageProperty(); + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultMultiLanguageProperty bean. + */ + public static class Builder extends MultiLanguagePropertyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultMultiLanguageProperty newBuildingInstance() { + return new DefaultMultiLanguageProperty(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index f49aba964..aa9af8070 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,258 +25,250 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation - * - *

An operation is a submodel element with input and output variables. + * + * An operation is a submodel element with input and output variables. */ + @IRI("aas:Operation") public class DefaultOperation implements Operation { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Operation/inoutputVariables") - protected List inoutputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Operation/inputVariables") - protected List inputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Operation/outputVariables") - protected List outputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultOperation() {} - - @Override - public int hashCode() { - return Objects.hash( - this.inputVariables, - this.outputVariables, - this.inoutputVariables, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperation other = (DefaultOperation) obj; - return Objects.equals(this.inputVariables, other.inputVariables) - && Objects.equals(this.outputVariables, other.outputVariables) - && Objects.equals(this.inoutputVariables, other.inoutputVariables) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") + protected List inoutputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") + protected List inputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") + protected List outputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultOperation() {} + + @Override + public String toString() { + return "DefaultOperation{" + + "inputVariables='" + inputVariables + "'," + + "outputVariables='" + outputVariables + "'," + + "inoutputVariables='" + inoutputVariables + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.inputVariables, + this.outputVariables, + this.inoutputVariables, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperation other = (DefaultOperation) obj; + return Objects.equals(this.inputVariables, other.inputVariables) && + Objects.equals(this.outputVariables, other.outputVariables) && + Objects.equals(this.inoutputVariables, other.inoutputVariables) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getInputVariables() { + return inputVariables; + } + + @Override + public void setInputVariables(List inputVariables) { + this.inputVariables = inputVariables; + } + + @Override + public List getOutputVariables() { + return outputVariables; + } + + @Override + public void setOutputVariables(List outputVariables) { + this.outputVariables = outputVariables; + } + + @Override + public List getInoutputVariables() { + return inoutputVariables; + } + + @Override + public void setInoutputVariables(List inoutputVariables) { + this.inoutputVariables = inoutputVariables; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } - } - - @Override - public String toString() { - return "DefaultOperation{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", inoutputVariables=" - + inoutputVariables - + ", inputVariables=" - + inputVariables - + ", outputVariables=" - + outputVariables - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public List getInputVariables() { - return inputVariables; - } - - @Override - public void setInputVariables(List inputVariables) { - this.inputVariables = inputVariables; - } - - @Override - public List getOutputVariables() { - return outputVariables; - } - - @Override - public void setOutputVariables(List outputVariables) { - this.outputVariables = outputVariables; - } - - @Override - public List getInoutputVariables() { - return inoutputVariables; - } - - @Override - public void setInoutputVariables(List inoutputVariables) { - this.inoutputVariables = inoutputVariables; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultOperation bean. */ - public static class Builder extends OperationBuilder { @Override - protected Builder getSelf() { - return this; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - protected DefaultOperation newBuildingInstance() { - return new DefaultOperation(); + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultOperation bean. + */ + public static class Builder extends OperationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperation newBuildingInstance() { + return new DefaultOperation(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java deleted file mode 100644 index d2f150ba7..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationHandleBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle */ -@IRI("aas:OperationHandle") -public class DefaultOperationHandle implements OperationHandle { - - @IRI("https://admin-shell.io/aas/3/1/OperationHandle/handleId") - protected String handleId; - - public DefaultOperationHandle() {} - - @Override - public int hashCode() { - return Objects.hash(this.handleId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationHandle other = (DefaultOperationHandle) obj; - return Objects.equals(this.handleId, other.handleId); - } - } - - @Override - public String toString() { - return "DefaultOperationHandle{" + "handleId='" + handleId + '\'' + '}'; - } - - @Override - public String getHandleId() { - return handleId; - } - - @Override - public void setHandleId(String handleId) { - this.handleId = handleId; - } - - /** This builder class can be used to construct a DefaultOperationHandle bean. */ - public static class Builder extends OperationHandleBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationHandle newBuildingInstance() { - return new DefaultOperationHandle(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java deleted file mode 100644 index 5d2e7735b..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import javax.xml.datatype.Duration; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest */ -@IRI("aas:OperationRequest") -public class DefaultOperationRequest implements OperationRequest { - - @IRI("https://admin-shell.io/aas/3/1/OperationRequest/clientTimeoutDuration") - protected Duration clientTimeoutDuration; - - @IRI("https://admin-shell.io/aas/3/1/OperationRequest/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/OperationRequest/inputArguments") - protected List inputArguments = new ArrayList<>(); - - public DefaultOperationRequest() {} - - @Override - public int hashCode() { - return Objects.hash(this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationRequest other = (DefaultOperationRequest) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) - && Objects.equals(this.inputArguments, other.inputArguments) - && Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); - } - } - - @Override - public List getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(List inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public List getInputArguments() { - return inputArguments; - } - - @Override - public void setInputArguments(List inputArguments) { - this.inputArguments = inputArguments; - } - - @Override - public Duration getClientTimeoutDuration() { - return clientTimeoutDuration; - } - - @Override - public void setClientTimeoutDuration(Duration clientTimeoutDuration) { - this.clientTimeoutDuration = clientTimeoutDuration; - } - - /** This builder class can be used to construct a DefaultOperationRequest bean. */ - public static class Builder extends OperationRequestBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationRequest newBuildingInstance() { - return new DefaultOperationRequest(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java deleted file mode 100644 index d506738d6..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; -import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult */ -@IRI("aas:OperationResult") -public class DefaultOperationResult implements OperationResult { - - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/executionState") - protected ExecutionState executionState; - - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/success") - protected boolean success; - - @IRI("https://admin-shell.io/aas/3/1/OperationResult/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/OperationResult/outputArguments") - protected List outputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Result/messages") - protected List messages = new ArrayList<>(); - - public DefaultOperationResult() {} - - @Override - public int hashCode() { - return Objects.hash( - this.inoutputArguments, - this.outputArguments, - this.executionState, - this.success, - this.messages); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationResult other = (DefaultOperationResult) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) - && Objects.equals(this.outputArguments, other.outputArguments) - && Objects.equals(this.executionState, other.executionState) - && Objects.equals(this.success, other.success) - && Objects.equals(this.messages, other.messages); - } - } - - @Override - public String toString() { - return "DefaultOperationResult{" - + "executionState=" - + executionState - + ", success=" - + success - + ", inoutputArguments=" - + inoutputArguments - + ", outputArguments=" - + outputArguments - + ", messages=" - + messages - + '}'; - } - - @Override - public List getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(List inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public List getOutputArguments() { - return outputArguments; - } - - @Override - public void setOutputArguments(List outputArguments) { - this.outputArguments = outputArguments; - } - - @Override - public ExecutionState getExecutionState() { - return executionState; - } - - @Override - public void setExecutionState(ExecutionState executionState) { - this.executionState = executionState; - } - - @Override - public boolean getSuccess() { - return success; - } - - @Override - public void setSuccess(boolean success) { - this.success = success; - } - - @Override - public List getMessages() { - return messages; - } - - @Override - public void setMessages(List messages) { - this.messages = messages; - } - - /** This builder class can be used to construct a DefaultOperationResult bean. */ - public static class Builder extends OperationResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationResult newBuildingInstance() { - return new DefaultOperationResult(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 56907a1bf..43505a275 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,71 +14,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationVariableBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable - * - *

The value of an operation variable is a submodel element that is used as input and/or output + * + * The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ + @IRI("aas:OperationVariable") public class DefaultOperationVariable implements OperationVariable { - @IRI("https://admin-shell.io/aas/3/1/OperationVariable/value") - protected SubmodelElement value; - - public DefaultOperationVariable() {} - - @Override - public int hashCode() { - return Objects.hash(this.value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationVariable other = (DefaultOperationVariable) obj; - return Objects.equals(this.value, other.value); - } - } + @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") + protected SubmodelElement value; - @Override - public String toString() { - return "DefaultOperationVariable{" + "value=" + value + '}'; - } + public DefaultOperationVariable() {} - @Override - public SubmodelElement getValue() { - return value; - } + @Override + public String toString() { + return "DefaultOperationVariable{" + + "value='" + value + "'," + + "}"; + } - @Override - public void setValue(SubmodelElement value) { - this.value = value; - } + @Override + public int hashCode() { + return Objects.hash(this.value); + } - /** This builder class can be used to construct a DefaultOperationVariable bean. */ - public static class Builder extends OperationVariableBuilder { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationVariable other = (DefaultOperationVariable) obj; + return Objects.equals(this.value, other.value); + } + } @Override - protected Builder getSelf() { - return this; + public SubmodelElement getValue() { + return value; } @Override - protected DefaultOperationVariable newBuildingInstance() { - return new DefaultOperationVariable(); + public void setValue(SubmodelElement value) { + this.value = value; + } + + /** + * This builder class can be used to construct a DefaultOperationVariable bean. + */ + public static class Builder extends OperationVariableBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationVariable newBuildingInstance() { + return new DefaultOperationVariable(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java deleted file mode 100644 index 99cd91439..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription */ -@IRI("aas:PackageDescription") -public class DefaultPackageDescription implements PackageDescription { - - @IRI("https://admin-shell.io/aas/3/1/PackageDescription/aasIds") - protected List aasIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/PackageDescription/packageId") - protected String packageId; - - public DefaultPackageDescription() {} - - @Override - public int hashCode() { - return Objects.hash(this.aasIds, this.packageId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultPackageDescription other = (DefaultPackageDescription) obj; - return Objects.equals(this.aasIds, other.aasIds) - && Objects.equals(this.packageId, other.packageId); - } - } - - @Override - public String toString() { - return "DefaultPackageDescription{" - + "aasIds=" - + aasIds - + ", packageId='" - + packageId - + '\'' - + '}'; - } - - @Override - public List getAasIds() { - return aasIds; - } - - @Override - public void setAasIds(List aasIds) { - this.aasIds = aasIds; - } - - @Override - public String getPackageId() { - return packageId; - } - - @Override - public void setPackageId(String packageId) { - this.packageId = packageId; - } - - /** This builder class can be used to construct a DefaultPackageDescription bean. */ - public static class Builder - extends PackageDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultPackageDescription newBuildingInstance() { - return new DefaultPackageDescription(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 3421ae9fb..1434f9aaa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,259 +25,250 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PropertyBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property - * - *

A property is a data element that has a single value. + * + * A property is a data element that has a single value. */ + @IRI("aas:Property") public class DefaultProperty implements Property { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Property/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/1/Property/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/1/Property/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultProperty() {} - - @Override - public int hashCode() { - return Objects.hash( - this.valueType, - this.value, - this.valueId, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProperty other = (DefaultProperty) obj; - return Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.value, other.value) - && Objects.equals(this.valueId, other.valueId) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Property/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultProperty() {} + + @Override + public String toString() { + return "DefaultProperty{" + + "valueType='" + valueType + "'," + + "value='" + value + "'," + + "valueId='" + valueId + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.valueType, + this.value, + this.valueId, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProperty other = (DefaultProperty) obj; + return Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } - } - - @Override - public String toString() { - return "DefaultProperty{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", value='" - + value - + '\'' - + ", valueId=" - + valueId - + ", valueType=" - + valueType - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultProperty bean. */ - public static class Builder extends PropertyBuilder { @Override - protected Builder getSelf() { - return this; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - protected DefaultProperty newBuildingInstance() { - return new DefaultProperty(); + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultProperty bean. + */ + public static class Builder extends PropertyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultProperty newBuildingInstance() { + return new DefaultProperty(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java deleted file mode 100644 index f5c4b2c20..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation */ -@IRI("aas:ProtocolInformation") -public class DefaultProtocolInformation implements ProtocolInformation { - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocol") - protected String endpointProtocol; - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/endpointProtocolVersion") - protected List endpointProtocolVersions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/href") - protected String href; - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/securityAttributes") - protected List securityAttributes = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocol") - protected String subprotocol; - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBody") - protected String subprotocolBody; - - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBodyEncoding") - protected String subprotocolBodyEncoding; - - public DefaultProtocolInformation() {} - - @Override - public int hashCode() { - return Objects.hash( - this.href, - this.endpointProtocol, - this.endpointProtocolVersions, - this.subprotocol, - this.subprotocolBody, - this.subprotocolBodyEncoding, - this.securityAttributes); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProtocolInformation other = (DefaultProtocolInformation) obj; - return Objects.equals(this.href, other.href) - && Objects.equals(this.endpointProtocol, other.endpointProtocol) - && Objects.equals(this.endpointProtocolVersions, other.endpointProtocolVersions) - && Objects.equals(this.subprotocol, other.subprotocol) - && Objects.equals(this.subprotocolBody, other.subprotocolBody) - && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) - && Objects.equals(this.securityAttributes, other.securityAttributes); - } - } - - @Override - public String getHref() { - return href; - } - - @Override - public void setHref(String href) { - this.href = href; - } - - @Override - public String getEndpointProtocol() { - return endpointProtocol; - } - - @Override - public void setEndpointProtocol(String endpointProtocol) { - this.endpointProtocol = endpointProtocol; - } - - @Override - public List getEndpointProtocolVersion() { - return endpointProtocolVersions; - } - - @Override - public void setEndpointProtocolVersion(List endpointProtocolVersion) { - this.endpointProtocolVersions = endpointProtocolVersion; - } - - @Override - public String getSubprotocol() { - return subprotocol; - } - - @Override - public void setSubprotocol(String subprotocol) { - this.subprotocol = subprotocol; - } - - @Override - public String getSubprotocolBody() { - return subprotocolBody; - } - - @Override - public void setSubprotocolBody(String subprotocolBody) { - this.subprotocolBody = subprotocolBody; - } - - @Override - public String getSubprotocolBodyEncoding() { - return subprotocolBodyEncoding; - } - - @Override - public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { - this.subprotocolBodyEncoding = subprotocolBodyEncoding; - } - - @Override - public List getSecurityAttributes() { - return securityAttributes; - } - - @Override - public void setSecurityAttributes(List securityAttributes) { - this.securityAttributes = securityAttributes; - } - - /** This builder class can be used to construct a DefaultProtocolInformation bean. */ - public static class Builder - extends ProtocolInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultProtocolInformation newBuildingInstance() { - return new DefaultProtocolInformation(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 6f9bcc4ed..407a0c099 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; @@ -25,175 +21,171 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.QualifierBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier - * - *

A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the + * + * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ + @IRI("aas:Qualifier") public class DefaultQualifier implements Qualifier { - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifier/kind") - protected QualifierKind kind; - - @IRI("https://admin-shell.io/aas/3/1/Qualifier/type") - protected String type; - - @IRI("https://admin-shell.io/aas/3/1/Qualifier/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/1/Qualifier/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/1/Qualifier/valueType") - protected DataTypeDefXsd valueType; - - public DefaultQualifier() { - this.kind = QualifierKind.CONCEPT_QUALIFIER; - } - - @Override - public int hashCode() { - return Objects.hash( - this.kind, - this.type, - this.valueType, - this.value, - this.valueId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultQualifier other = (DefaultQualifier) obj; - return Objects.equals(this.kind, other.kind) - && Objects.equals(this.type, other.type) - && Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.value, other.value) - && Objects.equals(this.valueId, other.valueId) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public String toString() { - return "DefaultQualifier{" - + "semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", kind=" - + kind - + ", type='" - + type - + '\'' - + ", value='" - + value - + '\'' - + ", valueId=" - + valueId - + ", valueType=" - + valueType - + '}'; - } - - @Override - public QualifierKind getKind() { - return kind; - } - - @Override - public void setKind(QualifierKind kind) { - this.kind = kind; - } - - @Override - public String getType() { - return type; - } - - @Override - public void setType(String type) { - this.type = type; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** This builder class can be used to construct a DefaultQualifier bean. */ - public static class Builder extends QualifierBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultQualifier newBuildingInstance() { - return new DefaultQualifier(); - } - } + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") + protected QualifierKind kind; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") + protected String type; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") + protected DataTypeDefXsd valueType; + + public DefaultQualifier() {} + + @Override + public String toString() { + return "DefaultQualifier{" + + "kind='" + kind + "'," + + "type='" + type + "'," + + "valueType='" + valueType + "'," + + "value='" + value + "'," + + "valueId='" + valueId + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.kind, + this.type, + this.valueType, + this.value, + this.valueId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultQualifier other = (DefaultQualifier) obj; + return Objects.equals(this.kind, other.kind) && + Objects.equals(this.type, other.type) && + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public QualifierKind getKind() { + return kind; + } + + @Override + public void setKind(QualifierKind kind) { + this.kind = kind; + } + + @Override + public String getType() { + return type; + } + + @Override + public void setType(String type) { + this.type = type; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + /** + * This builder class can be used to construct a DefaultQualifier bean. + */ + public static class Builder extends QualifierBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultQualifier newBuildingInstance() { + return new DefaultQualifier(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index 0715c61c5..955f4d491 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,260 +25,250 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RangeBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range - * - *

A range data element is a data element that defines a range with min and max. + * + * A range data element is a data element that defines a range with min and max. */ + @IRI("aas:Range") public class DefaultRange implements Range { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Range/max") - protected String max; - - @IRI("https://admin-shell.io/aas/3/1/Range/min") - protected String min; - - @IRI("https://admin-shell.io/aas/3/1/Range/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - public DefaultRange() {} - - @Override - public int hashCode() { - return Objects.hash( - this.valueType, - this.min, - this.max, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRange other = (DefaultRange) obj; - return Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.min, other.min) - && Objects.equals(this.max, other.max) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Range/max") + protected String max; + + @IRI("https://admin-shell.io/aas/3/2/Range/min") + protected String min; + + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultRange() {} + + @Override + public String toString() { + return "DefaultRange{" + + "valueType='" + valueType + "'," + + "min='" + min + "'," + + "max='" + max + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.valueType, + this.min, + this.max, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRange other = (DefaultRange) obj; + return Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.min, other.min) && + Objects.equals(this.max, other.max) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getMin() { + return min; + } + + @Override + public void setMin(String min) { + this.min = min; + } + + @Override + public String getMax() { + return max; + } + + @Override + public void setMax(String max) { + this.max = max; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } - } - - @Override - public String toString() { - return "DefaultRange{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", max='" - + max - + '\'' - + ", min='" - + min - + '\'' - + ", valueType=" - + valueType - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getMin() { - return min; - } - - @Override - public void setMin(String min) { - this.min = min; - } - - @Override - public String getMax() { - return max; - } - - @Override - public void setMax(String max) { - this.max = max; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultRange bean. */ - public static class Builder extends RangeBuilder { @Override - protected Builder getSelf() { - return this; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - protected DefaultRange newBuildingInstance() { - return new DefaultRange(); + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultRange bean. + */ + public static class Builder extends RangeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultRange newBuildingInstance() { + return new DefaultRange(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index a19a091e5..00da84046 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,108 +14,112 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference - * - *

Reference to either a model element of the same or another AAS or to an external entity. + * + * Reference to either a model element of the same or another AAS or to an external entity. */ + @IRI("aas:Reference") public class DefaultReference implements Reference { - @IRI("https://admin-shell.io/aas/3/1/Reference/keys") - protected List keys = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Reference/referredSemanticId") - protected Reference referredSemanticId; - - @IRI("https://admin-shell.io/aas/3/1/Reference/type") - protected ReferenceTypes type; - - public DefaultReference() {} - - @Override - public int hashCode() { - return Objects.hash(this.type, this.referredSemanticId, this.keys); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReference other = (DefaultReference) obj; - return Objects.equals(this.type, other.type) - && Objects.equals(this.referredSemanticId, other.referredSemanticId) - && Objects.equals(this.keys, other.keys); + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") + protected List keys = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") + protected Reference referredSemanticId; + + @IRI("https://admin-shell.io/aas/3/2/Reference/type") + protected ReferenceTypes type; + + public DefaultReference() {} + + @Override + public String toString() { + return "DefaultReference{" + + "type='" + type + "'," + + "referredSemanticId='" + referredSemanticId + "'," + + "keys='" + keys + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.type, + this.referredSemanticId, + this.keys); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReference other = (DefaultReference) obj; + return Objects.equals(this.type, other.type) && + Objects.equals(this.referredSemanticId, other.referredSemanticId) && + Objects.equals(this.keys, other.keys); + } + } + + @Override + public ReferenceTypes getType() { + return type; + } + + @Override + public void setType(ReferenceTypes type) { + this.type = type; + } + + @Override + public Reference getReferredSemanticId() { + return referredSemanticId; + } + + @Override + public void setReferredSemanticId(Reference referredSemanticId) { + this.referredSemanticId = referredSemanticId; } - } - - @Override - public String toString() { - return "DefaultReference{" - + "keys=" - + keys - + ", referredSemanticId=" - + referredSemanticId - + ", type=" - + type - + '}'; - } - - @Override - public ReferenceTypes getType() { - return type; - } - - @Override - public void setType(ReferenceTypes type) { - this.type = type; - } - - @Override - public Reference getReferredSemanticId() { - return referredSemanticId; - } - - @Override - public void setReferredSemanticId(Reference referredSemanticId) { - this.referredSemanticId = referredSemanticId; - } - - @Override - public List getKeys() { - return keys; - } - - @Override - public void setKeys(List keys) { - this.keys = keys; - } - - /** This builder class can be used to construct a DefaultReference bean. */ - public static class Builder extends ReferenceBuilder { @Override - protected Builder getSelf() { - return this; + public List getKeys() { + return keys; } @Override - protected DefaultReference newBuildingInstance() { - return new DefaultReference(); + public void setKeys(List keys) { + this.keys = keys; + } + + /** + * This builder class can be used to construct a DefaultReference bean. + */ + public static class Builder extends ReferenceBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultReference newBuildingInstance() { + return new DefaultReference(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index b6b01bbf3..2243da8e1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,225 +24,219 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement - * - *

A reference element is a data element that defines a logical reference to another element - * within the same or another AAS or a reference to an external object or entity. + * + * A reference element is a data element that defines a logical reference to another element within + * the same or another AAS or a reference to an external object or entity. */ + @IRI("aas:ReferenceElement") public class DefaultReferenceElement implements ReferenceElement { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/ReferenceElement/value") - protected Reference value; - - public DefaultReferenceElement() {} - - @Override - public int hashCode() { - return Objects.hash( - this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReferenceElement other = (DefaultReferenceElement) obj; - return Objects.equals(this.value, other.value) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String toString() { - return "DefaultReferenceElement{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + ", value=" - + value - + '}'; - } - - @Override - public Reference getValue() { - return value; - } - - @Override - public void setValue(Reference value) { - this.value = value; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultReferenceElement bean. */ - public static class Builder extends ReferenceElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultReferenceElement newBuildingInstance() { - return new DefaultReferenceElement(); - } - } + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") + protected Reference value; + + public DefaultReferenceElement() {} + + @Override + public String toString() { + return "DefaultReferenceElement{" + + "value='" + value + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.value, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReferenceElement other = (DefaultReferenceElement) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public Reference getValue() { + return value; + } + + @Override + public void setValue(Reference value) { + this.value = value; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultReferenceElement bean. + */ + public static class Builder extends ReferenceElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultReferenceElement newBuildingInstance() { + return new DefaultReferenceElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index f7b4f77b0..989287db6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,243 +24,235 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RelationshipElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement - * - *

A relationship element is used to define a relationship between two elements being either + * + * A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ + @IRI("aas:RelationshipElement") public class DefaultRelationshipElement implements RelationshipElement { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/second") - protected Reference second; - - public DefaultRelationshipElement() {} - - @Override - public int hashCode() { - return Objects.hash( - this.first, - this.second, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRelationshipElement other = (DefaultRelationshipElement) obj; - return Objects.equals(this.first, other.first) - && Objects.equals(this.second, other.second) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") + protected Reference second; + + public DefaultRelationshipElement() {} + + @Override + public String toString() { + return "DefaultRelationshipElement{" + + "first='" + first + "'," + + "second='" + second + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.first, + this.second, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRelationshipElement other = (DefaultRelationshipElement) obj; + return Objects.equals(this.first, other.first) && + Objects.equals(this.second, other.second) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; } - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public String toString() { - return "DefaultRelationshipElement{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + ", first=" - + first - + ", second=" - + second - + '}'; - } - - /** This builder class can be used to construct a DefaultRelationshipElement bean. */ - public static class Builder - extends RelationshipElementBuilder { @Override - protected Builder getSelf() { - return this; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - protected DefaultRelationshipElement newBuildingInstance() { - return new DefaultRelationshipElement(); + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultRelationshipElement bean. + */ + public static class Builder extends RelationshipElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultRelationshipElement newBuildingInstance() { + return new DefaultRelationshipElement(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index 302086f28..de8a50dca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,91 +14,93 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResourceBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource - * - *

Resource represents an address to a file (a locator). The value is an URI that can represent - * an absolute or relative path + * + * Resource represents an address to a file (a locator). The value is an URI that can represent an + * absolute or relative path */ + @IRI("aas:Resource") public class DefaultResource implements Resource { - @IRI("https://admin-shell.io/aas/3/1/Resource/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/1/Resource/path") - protected String path; - - public DefaultResource() {} - - @Override - public int hashCode() { - return Objects.hash(this.path, this.contentType); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResource other = (DefaultResource) obj; - return Objects.equals(this.path, other.path) - && Objects.equals(this.contentType, other.contentType); + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/2/Resource/path") + protected String path; + + public DefaultResource() {} + + @Override + public String toString() { + return "DefaultResource{" + + "path='" + path + "'," + + "contentType='" + contentType + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.path, + this.contentType); } - } - - @Override - public String getPath() { - return path; - } - - @Override - public void setPath(String path) { - this.path = path; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String toString() { - return "DefaultResource{" - + "contentType='" - + contentType - + '\'' - + ", path='" - + path - + '\'' - + '}'; - } - - /** This builder class can be used to construct a DefaultResource bean. */ - public static class Builder extends ResourceBuilder { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResource other = (DefaultResource) obj; + return Objects.equals(this.path, other.path) && + Objects.equals(this.contentType, other.contentType); + } } @Override - protected DefaultResource newBuildingInstance() { - return new DefaultResource(); + public String getPath() { + return path; + } + + @Override + public void setPath(String path) { + this.path = path; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + /** + * This builder class can be used to construct a DefaultResource bean. + */ + public static class Builder extends ResourceBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultResource newBuildingInstance() { + return new DefaultResource(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java deleted file mode 100644 index e1958dd86..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.Result; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResultBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result */ -@IRI("aas:Result") -public class DefaultResult implements Result { - - @IRI("https://admin-shell.io/aas/3/1/Result/messages") - protected List messages = new ArrayList<>(); - - public DefaultResult() {} - - @Override - public int hashCode() { - return Objects.hash(this.messages); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResult other = (DefaultResult) obj; - return Objects.equals(this.messages, other.messages); - } - } - - @Override - public List getMessages() { - return messages; - } - - @Override - public void setMessages(List messages) { - this.messages = messages; - } - - @Override - public String toString() { - return "DefaultResult{" + "messages=" + messages + '}'; - } - - /** This builder class can be used to construct a DefaultResult bean. */ - public static class Builder extends ResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultResult newBuildingInstance() { - return new DefaultResult(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java deleted file mode 100644 index b58e24042..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; -import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityAttributeObjectBuilder; - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttribute - * - *

Represents security attributes in the Asset Administration Shell. - */ -@IRI("aas:SecurityAttribute") -public class DefaultSecurityAttributeObject implements SecurityAttributeObject { - - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/key") - protected String key; - - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/type") - protected SecurityTypeEnum type; - - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/value") - protected String value; - - public DefaultSecurityAttributeObject() {} - - @Override - public int hashCode() { - return Objects.hash(this.type, this.type, this.key, this.value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; - return Objects.equals(this.type, other.type) - && Objects.equals(this.key, other.key) - && Objects.equals(this.value, other.value); - } - } - - @Override - public SecurityTypeEnum getType() { - return type; - } - - @Override - public void setType(SecurityTypeEnum type) { - this.type = type; - } - - @Override - public String getKey() { - return key; - } - - @Override - public void setKey(String key) { - this.key = key; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - /** This builder class can be used to construct a DefaultSecurityAttribute bean. */ - public static class Builder - extends SecurityAttributeObjectBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSecurityAttributeObject newBuildingInstance() { - return new DefaultSecurityAttributeObject(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 396d6a409..93a1e56cf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,146 +14,143 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SpecificAssetIdBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId - * - *

A specific asset ID describes a generic supplementary identifying attribute of the asset. + * + * A specific asset ID describes a generic supplementary identifying attribute of the asset. */ + @IRI("aas:SpecificAssetId") public class DefaultSpecificAssetId implements SpecificAssetId { - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/externalSubjectId") - protected Reference externalSubjectId; - - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/value") - protected String value; - - public DefaultSpecificAssetId() {} - - @Override - public int hashCode() { - return Objects.hash( - this.name, - this.value, - this.externalSubjectId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; - return Objects.equals(this.name, other.name) - && Objects.equals(this.value, other.value) - && Objects.equals(this.externalSubjectId, other.externalSubjectId) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") + protected Reference externalSubjectId; + + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") + protected String value; + + public DefaultSpecificAssetId() {} + + @Override + public String toString() { + return "DefaultSpecificAssetId{" + + "name='" + name + "'," + + "value='" + value + "'," + + "externalSubjectId='" + externalSubjectId + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.name, + this.value, + this.externalSubjectId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; + return Objects.equals(this.name, other.name) && + Objects.equals(this.value, other.value) && + Objects.equals(this.externalSubjectId, other.externalSubjectId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; } - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getExternalSubjectId() { - return externalSubjectId; - } - - @Override - public void setExternalSubjectId(Reference externalSubjectId) { - this.externalSubjectId = externalSubjectId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public String toString() { - return "DefaultSpecificAssetId{" - + "semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", externalSubjectId=" - + externalSubjectId - + ", name='" - + name - + '\'' - + ", value='" - + value - + '\'' - + '}'; - } - - /** This builder class can be used to construct a DefaultSpecificAssetId bean. */ - public static class Builder extends SpecificAssetIdBuilder { @Override - protected Builder getSelf() { - return this; + public String getValue() { + return value; } @Override - protected DefaultSpecificAssetId newBuildingInstance() { - return new DefaultSpecificAssetId(); + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getExternalSubjectId() { + return externalSubjectId; + } + + @Override + public void setExternalSubjectId(Reference externalSubjectId) { + this.externalSubjectId = externalSubjectId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + /** + * This builder class can be used to construct a DefaultSpecificAssetId bean. + */ + public static class Builder extends SpecificAssetIdBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSpecificAssetId newBuildingInstance() { + return new DefaultSpecificAssetId(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 55b5a3a97..0c988ffa8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -31,278 +27,266 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel - * - *

A submodel defines a specific aspect of the asset represented by the AAS. + * + * A submodel defines a specific aspect of the asset represented by the AAS. */ + @IRI("aas:Submodel") public class DefaultSubmodel implements Submodel { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasKind/kind") - protected ModellingKind kind; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/Submodel/submodelElements") - protected List submodelElements = new ArrayList<>(); - - public DefaultSubmodel() { - this.kind = ModellingKind.INSTANCE; - } - - @Override - public int hashCode() { - return Objects.hash( - this.submodelElements, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.kind, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodel other = (DefaultSubmodel) obj; - return Objects.equals(this.submodelElements, other.submodelElements) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers) - && Objects.equals(this.kind, other.kind) - && Objects.equals(this.administration, other.administration) - && Objects.equals(this.id, other.id) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions); + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") + protected ModellingKind kind; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") + protected List submodelElements = new ArrayList<>(); + + public DefaultSubmodel() {} + + @Override + public String toString() { + return "DefaultSubmodel{" + + "submodelElements='" + submodelElements + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "kind='" + kind + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "administration='" + administration + "'," + + "id='" + id + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.submodelElements, + this.embeddedDataSpecifications, + this.kind, + this.semanticId, + this.supplementalSemanticIds, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodel other = (DefaultSubmodel) obj; + return Objects.equals(this.submodelElements, other.submodelElements) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.kind, other.kind) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getSubmodelElements() { + return submodelElements; + } + + @Override + public void setSubmodelElements(List submodelElements) { + this.submodelElements = submodelElements; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } - } - - @Override - public List getSubmodelElements() { - return submodelElements; - } - - @Override - public void setSubmodelElements(List submodelElements) { - this.submodelElements = submodelElements; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public String toString() { - return "DefaultSubmodel{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", kind=" - + kind - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", administration=" - + administration - + ", id='" - + id - + '\'' - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + ", submodelElements=" - + submodelElements - + '}'; - } - - /** This builder class can be used to construct a DefaultSubmodel bean. */ - public static class Builder extends SubmodelBuilder { @Override - protected Builder getSelf() { - return this; + public AdministrativeInformation getAdministration() { + return administration; } @Override - protected DefaultSubmodel newBuildingInstance() { - return new DefaultSubmodel(); + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** + * This builder class can be used to construct a DefaultSubmodel bean. + */ + public static class Builder extends SubmodelBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodel newBuildingInstance() { + return new DefaultSubmodel(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java deleted file mode 100644 index 3c655daed..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelDescriptorBuilder; - -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor */ -@IRI("aas:SubmodelDescriptor") -public class DefaultSubmodelDescriptor implements SubmodelDescriptor { - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Descriptor/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId") - protected List supplementalSemanticIds = new ArrayList<>(); - - public DefaultSubmodelDescriptor() {} - - @Override - public int hashCode() { - return Objects.hash( - this.administration, - this.endpoints, - this.idShort, - this.id, - this.semanticId, - this.supplementalSemanticIds, - this.description, - this.displayName, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; - return Objects.equals(this.administration, other.administration) - && Objects.equals(this.endpoints, other.endpoints) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.id, other.id) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public String toString() { - return "DefaultSubmodelDescriptor{" - + "description=" - + description - + ", displayName=" - + displayName - + ", extensions=" - + extensions - + ", administration=" - + administration - + ", endpoints=" - + endpoints - + ", id='" - + id - + '\'' - + ", idShort='" - + idShort - + '\'' - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + '}'; - } - - /** This builder class can be used to construct a DefaultSubmodelDescriptor bean. */ - public static class Builder - extends SubmodelDescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelDescriptor newBuildingInstance() { - return new DefaultSubmodelDescriptor(); - } - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index f24f70e88..f383f4bc9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,227 +25,220 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementCollectionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection - * - *

A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple + * + * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ + @IRI("aas:SubmodelElementCollection") public class DefaultSubmodelElementCollection implements SubmodelElementCollection { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementCollection/value") - protected List value = new ArrayList<>(); - - public DefaultSubmodelElementCollection() {} - - @Override - public int hashCode() { - return Objects.hash( - this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; - return Objects.equals(this.value, other.value) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getValue() { - return value; - } - - @Override - public void setValue(List value) { - this.value = value; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public String toString() { - return "DefaultSubmodelElementCollection{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + ", value=" - + value - + '}'; - } - - /** This builder class can be used to construct a DefaultSubmodelElementCollection bean. */ - public static class Builder - extends SubmodelElementCollectionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementCollection newBuildingInstance() { - return new DefaultSubmodelElementCollection(); - } - } + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") + protected List values = new ArrayList<>(); + + public DefaultSubmodelElementCollection() {} + + @Override + public String toString() { + return "DefaultSubmodelElementCollection{" + + "values='" + values + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.values, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; + return Objects.equals(this.values, other.values) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getValues() { + return values; + } + + @Override + public void setValues(List values) { + this.values = values; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultSubmodelElementCollection bean. + */ + public static class Builder extends SubmodelElementCollectionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementCollection newBuildingInstance() { + return new DefaultSubmodelElementCollection(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index 28bc6cef3..5f7acd57d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +14,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -31,293 +27,282 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementListBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList - * - *

A submodel element list is an ordered list of submodel elements. + * + * A submodel element list is an ordered list of submodel elements. */ + @IRI("aas:SubmodelElementList") public class DefaultSubmodelElementList implements SubmodelElementList { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/1/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/orderRelevant") - protected boolean orderRelevant; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/semanticIdListElement") - protected Reference semanticIdListElement; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/typeValueListElement") - protected AasSubmodelElements typeValueListElement; - - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/value") - protected List value = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/valueTypeListElement") - protected DataTypeDefXsd valueTypeListElement; - - public DefaultSubmodelElementList() {} - - @Override - public int hashCode() { - return Objects.hash( - this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; - return Objects.equals(this.orderRelevant, other.orderRelevant) - && Objects.equals(this.semanticIdListElement, other.semanticIdListElement) - && Objects.equals(this.typeValueListElement, other.typeValueListElement) - && Objects.equals(this.valueTypeListElement, other.valueTypeListElement) - && Objects.equals(this.value, other.value) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.description, other.description) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public boolean getOrderRelevant() { - return orderRelevant; - } - - @Override - public void setOrderRelevant(boolean orderRelevant) { - this.orderRelevant = orderRelevant; - } - - @Override - public Reference getSemanticIdListElement() { - return semanticIdListElement; - } - - @Override - public void setSemanticIdListElement(Reference semanticIdListElement) { - this.semanticIdListElement = semanticIdListElement; - } - - @Override - public AasSubmodelElements getTypeValueListElement() { - return typeValueListElement; - } - - @Override - public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { - this.typeValueListElement = typeValueListElement; - } - - @Override - public DataTypeDefXsd getValueTypeListElement() { - return valueTypeListElement; - } - - @Override - public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { - this.valueTypeListElement = valueTypeListElement; - } - - @Override - public List getValue() { - return value; - } - - @Override - public void setValue(List value) { - this.value = value; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List description) { - this.description = description; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public String toString() { - return "DefaultSubmodelElementList{" - + "embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", qualifiers=" - + qualifiers - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + ", orderRelevant=" - + orderRelevant - + ", semanticIdListElement=" - + semanticIdListElement - + ", typeValueListElement=" - + typeValueListElement - + ", value=" - + value - + ", valueTypeListElement=" - + valueTypeListElement - + '}'; - } - - /** This builder class can be used to construct a DefaultSubmodelElementList bean. */ - public static class Builder - extends SubmodelElementListBuilder { + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") + protected boolean orderRelevant; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") + protected Reference semanticIdListElement; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") + protected AasSubmodelElements typeValueListElement; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") + protected List values = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") + protected DataTypeDefXsd valueTypeListElement; + + public DefaultSubmodelElementList() {} + + @Override + public String toString() { + return "DefaultSubmodelElementList{" + + "orderRelevant='" + orderRelevant + "'," + + "semanticIdListElement='" + semanticIdListElement + "'," + + "typeValueListElement='" + typeValueListElement + "'," + + "valueTypeListElement='" + valueTypeListElement + "'," + + "values='" + values + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.orderRelevant, + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.values, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; + return Objects.equals(this.orderRelevant, other.orderRelevant) && + Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && + Objects.equals(this.typeValueListElement, other.typeValueListElement) && + Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && + Objects.equals(this.values, other.values) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public boolean getOrderRelevant() { + return orderRelevant; + } + + @Override + public void setOrderRelevant(boolean orderRelevant) { + this.orderRelevant = orderRelevant; + } + + @Override + public Reference getSemanticIdListElement() { + return semanticIdListElement; + } + + @Override + public void setSemanticIdListElement(Reference semanticIdListElement) { + this.semanticIdListElement = semanticIdListElement; + } + + @Override + public AasSubmodelElements getTypeValueListElement() { + return typeValueListElement; + } + + @Override + public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { + this.typeValueListElement = typeValueListElement; + } + + @Override + public DataTypeDefXsd getValueTypeListElement() { + return valueTypeListElement; + } + + @Override + public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { + this.valueTypeListElement = valueTypeListElement; + } + + @Override + public List getValues() { + return values; + } + + @Override + public void setValues(List values) { + this.values = values; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } @Override - protected Builder getSelf() { - return this; + public String getCategory() { + return category; } @Override - protected DefaultSubmodelElementList newBuildingInstance() { - return new DefaultSubmodelElementList(); + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** + * This builder class can be used to construct a DefaultSubmodelElementList bean. + */ + public static class Builder extends SubmodelElementListBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementList newBuildingInstance() { + return new DefaultSubmodelElementList(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 18928118b..126f20d48 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,72 +14,79 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueListBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList - * - *

A set of value reference pairs. + * + * A set of value reference pairs. */ + @IRI("aas:ValueList") public class DefaultValueList implements ValueList { - @IRI("https://admin-shell.io/aas/3/1/ValueList/valueReferencePairs") - protected List valueReferencePairs = new ArrayList<>(); - - public DefaultValueList() {} - - @Override - public int hashCode() { - return Objects.hash(this.valueReferencePairs); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueList other = (DefaultValueList) obj; - return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); - } - } + @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") + protected List valueReferencePairs = new ArrayList<>(); - @Override - public List getValueReferencePairs() { - return valueReferencePairs; - } + public DefaultValueList() {} - @Override - public void setValueReferencePairs(List valueReferencePairs) { - this.valueReferencePairs = valueReferencePairs; - } + @Override + public String toString() { + return "DefaultValueList{" + + "valueReferencePairs='" + valueReferencePairs + "'," + + "}"; + } - @Override - public String toString() { - return "DefaultValueList{" + "valueReferencePairs=" + valueReferencePairs + '}'; - } + @Override + public int hashCode() { + return Objects.hash(this.valueReferencePairs); + } - /** This builder class can be used to construct a DefaultValueList bean. */ - public static class Builder extends ValueListBuilder { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueList other = (DefaultValueList) obj; + return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); + } + } @Override - protected Builder getSelf() { - return this; + public List getValueReferencePairs() { + return valueReferencePairs; } @Override - protected DefaultValueList newBuildingInstance() { - return new DefaultValueList(); + public void setValueReferencePairs(List valueReferencePairs) { + this.valueReferencePairs = valueReferencePairs; + } + + /** + * This builder class can be used to construct a DefaultValueList bean. + */ + public static class Builder extends ValueListBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultValueList newBuildingInstance() { + return new DefaultValueList(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index 11ec9c95a..ecbdfa9c8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -1,12 +1,11 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,85 +14,94 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueReferencePairBuilder; +import java.util.Objects; + + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair - * - *

A value reference pair within a value list. Each value has a global unique id defining its + * + * A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ + @IRI("aas:ValueReferencePair") public class DefaultValueReferencePair implements ValueReferencePair { - @IRI("https://admin-shell.io/aas/3/1/ValueReferencePair/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/1/ValueReferencePair/valueId") - protected Reference valueId; - - public DefaultValueReferencePair() {} - - @Override - public int hashCode() { - return Objects.hash(this.value, this.valueId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueReferencePair other = (DefaultValueReferencePair) obj; - return Objects.equals(this.value, other.value) && Objects.equals(this.valueId, other.valueId); - } - } + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") + protected String value; - @Override - public String getValue() { - return value; - } + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") + protected Reference valueId; - @Override - public void setValue(String value) { - this.value = value; - } + public DefaultValueReferencePair() {} - @Override - public Reference getValueId() { - return valueId; - } + @Override + public String toString() { + return "DefaultValueReferencePair{" + + "value='" + value + "'," + + "valueId='" + valueId + "'," + + "}"; + } - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } + @Override + public int hashCode() { + return Objects.hash(this.value, + this.valueId); + } - @Override - public String toString() { - return "DefaultValueReferencePair{" + "value='" + value + '\'' + ", valueId=" + valueId + '}'; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueReferencePair other = (DefaultValueReferencePair) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId); + } + } - /** This builder class can be used to construct a DefaultValueReferencePair bean. */ - public static class Builder - extends ValueReferencePairBuilder { + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } @Override - protected Builder getSelf() { - return this; + public Reference getValueId() { + return valueId; } @Override - protected DefaultValueReferencePair newBuildingInstance() { - return new DefaultValueReferencePair(); + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + /** + * This builder class can be used to construct a DefaultValueReferencePair bean. + */ + public static class Builder extends ValueReferencePairBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultValueReferencePair newBuildingInstance() { + return new DefaultValueReferencePair(); + } } - } } diff --git a/pom.xml b/pom.xml index 09472cfcd..230bf1a30 100644 --- a/pom.xml +++ b/pom.xml @@ -37,11 +37,11 @@ dataformat-xml - 2 - 1 + 3 + 0 0 ${revision.major}.${revision.minor}.${revision.patch}-SNAPSHOT - 2.1.0-SNAPSHOT + 3.0.0-SNAPSHOT UTF-8 UTF-8 From f25f232a0863283fab4cdbd8a5b8405a5cff014d Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Tue, 17 Mar 2026 16:45:09 +0100 Subject: [PATCH 02/12] add api classes, update copyright headers, optimize class structure --- .../aas4j/v3/model/AasSubmodelElements.java | 96 ++++--- .../aas4j/v3/model/AbstractLangString.java | 27 +- .../v3/model/AdministrativeInformation.java | 35 +-- .../model/AnnotatedRelationshipElement.java | 15 +- .../v3/model/AssetAdministrationShell.java | 23 +- .../AssetAdministrationShellDescriptor.java | 183 +++++++++++++ .../AssetAdministrationShellEnvironment.java | 96 +++++++ .../aas4j/v3/model/AssetInformation.java | 31 +-- .../digitaltwin/aas4j/v3/model/AssetKind.java | 11 +- .../aas4j/v3/model/BasicEventElement.java | 43 +-- .../digitaltwin/aas4j/v3/model/Blob.java | 19 +- .../aas4j/v3/model/Capability.java | 11 +- .../aas4j/v3/model/ConceptDescription.java | 15 +- .../aas4j/v3/model/DataElement.java | 21 +- .../v3/model/DataSpecificationContent.java | 11 +- .../v3/model/DataSpecificationIec61360.java | 59 ++--- .../aas4j/v3/model/DataTypeDefXsd.java | 161 +++++++----- .../aas4j/v3/model/DataTypeIec61360.java | 16 +- .../aas4j/v3/model/Descriptor.java | 52 ++++ .../digitaltwin/aas4j/v3/model/Direction.java | 11 +- .../v3/model/EmbeddedDataSpecification.java | 19 +- .../digitaltwin/aas4j/v3/model/Endpoint.java | 66 +++++ .../digitaltwin/aas4j/v3/model/Entity.java | 27 +- .../aas4j/v3/model/EntityType.java | 11 +- .../aas4j/v3/model/Environment.java | 23 +- .../aas4j/v3/model/EventElement.java | 11 +- .../aas4j/v3/model/EventPayload.java | 43 +-- .../aas4j/v3/model/ExecutionState.java | 64 +++++ .../digitaltwin/aas4j/v3/model/Extension.java | 27 +- .../digitaltwin/aas4j/v3/model/File.java | 19 +- .../aas4j/v3/model/HasDataSpecification.java | 26 +- .../aas4j/v3/model/HasExtensions.java | 15 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 15 +- .../aas4j/v3/model/HasSemantics.java | 28 +- .../aas4j/v3/model/Identifiable.java | 23 +- .../digitaltwin/aas4j/v3/model/Key.java | 19 +- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 76 +++--- .../aas4j/v3/model/LangString.java | 9 +- .../LangStringDefinitionTypeIec61360.java | 11 +- .../aas4j/v3/model/LangStringNameType.java | 11 +- .../LangStringPreferredNameTypeIec61360.java | 11 +- .../LangStringShortNameTypeIec61360.java | 11 +- .../aas4j/v3/model/LangStringTextType.java | 11 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 27 +- .../digitaltwin/aas4j/v3/model/Message.java | 100 +++++++ .../aas4j/v3/model/MessageType.java | 58 +++++ .../digitaltwin/aas4j/v3/model/ModelType.java | 142 ++++++++++ .../aas4j/v3/model/ModellingKind.java | 11 +- .../aas4j/v3/model/MultiLanguageProperty.java | 19 +- .../digitaltwin/aas4j/v3/model/Operation.java | 23 +- .../aas4j/v3/model/OperationHandle.java | 66 +++++ .../aas4j/v3/model/OperationRequest.java | 101 ++++++++ .../aas4j/v3/model/OperationResult.java | 118 +++++++++ .../aas4j/v3/model/OperationVariable.java | 15 +- .../aas4j/v3/model/PackageDescription.java | 67 +++++ .../digitaltwin/aas4j/v3/model/Property.java | 23 +- .../aas4j/v3/model/ProtocolInformation.java | 134 ++++++++++ .../aas4j/v3/model/Qualifiable.java | 18 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 31 +-- .../aas4j/v3/model/QualifierKind.java | 11 +- .../digitaltwin/aas4j/v3/model/Range.java | 23 +- .../digitaltwin/aas4j/v3/model/Referable.java | 30 ++- .../digitaltwin/aas4j/v3/model/Reference.java | 23 +- .../aas4j/v3/model/ReferenceElement.java | 15 +- .../aas4j/v3/model/ReferenceTypes.java | 11 +- .../aas4j/v3/model/RelationshipElement.java | 21 +- .../digitaltwin/aas4j/v3/model/Resource.java | 19 +- .../digitaltwin/aas4j/v3/model/Result.java | 67 +++++ .../aas4j/v3/model/SpecificAssetId.java | 23 +- .../aas4j/v3/model/StateOfEvent.java | 11 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 17 +- .../aas4j/v3/model/SubmodelDescriptor.java | 134 ++++++++++ .../aas4j/v3/model/SubmodelElement.java | 27 +- .../v3/model/SubmodelElementAttributes.java | 49 ++++ .../v3/model/SubmodelElementCollection.java | 15 +- .../aas4j/v3/model/SubmodelElementList.java | 31 +-- .../digitaltwin/aas4j/v3/model/ValueList.java | 15 +- .../aas4j/v3/model/ValueReferencePair.java | 19 +- .../aas4j/v3/model/annotations/IRI.java | 13 +- .../v3/model/annotations/KnownSubtypes.java | 15 +- .../v3/model/builder/AbstractBuilder.java | 9 +- .../AdministrativeInformationBuilder.java | 27 +- .../AnnotatedRelationshipElementBuilder.java | 189 +++++++------- .../AssetAdministrationShellBuilder.java | 43 +-- ...tAdministrationShellDescriptorBuilder.java | 153 +++++++++++ ...AdministrationShellEnvironmentBuilder.java | 94 +++++++ .../builder/AssetInformationBuilder.java | 23 +- .../builder/BasicEventElementBuilder.java | 197 +++++++------- .../aas4j/v3/model/builder/BlobBuilder.java | 183 ++++++------- .../aas4j/v3/model/builder/Builder.java | 11 +- .../v3/model/builder/CapabilityBuilder.java | 179 ++++++------- .../builder/ConceptDescriptionBuilder.java | 39 +-- .../DataSpecificationIec61360Builder.java | 41 +-- .../v3/model/builder/DescriptorBuilder.java | 47 ++++ .../EmbeddedDataSpecificationBuilder.java | 15 +- .../v3/model/builder/EndpointBuilder.java | 46 ++++ .../aas4j/v3/model/builder/EntityBuilder.java | 191 +++++++------- .../v3/model/builder/EnvironmentBuilder.java | 21 +- .../v3/model/builder/EventPayloadBuilder.java | 25 +- .../v3/model/builder/ExtendableBuilder.java | 9 +- .../v3/model/builder/ExtensionBuilder.java | 25 +- .../aas4j/v3/model/builder/FileBuilder.java | 183 ++++++------- .../aas4j/v3/model/builder/KeyBuilder.java | 13 +- ...ngStringDefinitionTypeIec61360Builder.java | 15 +- .../builder/LangStringNameTypeBuilder.java | 15 +- ...tringPreferredNameTypeIec61360Builder.java | 15 +- ...angStringShortNameTypeIec61360Builder.java | 15 +- .../builder/LangStringTextTypeBuilder.java | 15 +- .../v3/model/builder/LevelTypeBuilder.java | 17 +- .../v3/model/builder/MessageBuilder.java | 68 +++++ .../builder/MultiLanguagePropertyBuilder.java | 187 +++++++------- .../v3/model/builder/OperationBuilder.java | 191 +++++++------- .../model/builder/OperationHandleBuilder.java | 46 ++++ .../builder/OperationRequestBuilder.java | 70 +++++ .../model/builder/OperationResultBuilder.java | 138 ++++++++++ .../builder/OperationVariableBuilder.java | 13 +- .../builder/PackageDescriptionBuilder.java | 58 +++++ .../v3/model/builder/PropertyBuilder.java | 185 ++++++------- .../builder/ProtocolInformationBuilder.java | 90 +++++++ .../v3/model/builder/QualifierBuilder.java | 25 +- .../aas4j/v3/model/builder/RangeBuilder.java | 185 ++++++------- .../v3/model/builder/ReferenceBuilder.java | 17 +- .../builder/ReferenceElementBuilder.java | 183 ++++++------- .../builder/RelationshipElementBuilder.java | 185 ++++++------- .../v3/model/builder/ResourceBuilder.java | 13 +- .../aas4j/v3/model/builder/ResultBuilder.java | 58 +++++ .../model/builder/SpecificAssetIdBuilder.java | 23 +- .../v3/model/builder/SubmodelBuilder.java | 109 ++++---- .../builder/SubmodelDescriptorBuilder.java | 118 +++++++++ .../SubmodelElementAttributesBuilder.java | 208 +++++++++++++++ .../SubmodelElementCollectionBuilder.java | 185 ++++++------- .../builder/SubmodelElementListBuilder.java | 193 +++++++------- .../v3/model/builder/ValueListBuilder.java | 13 +- .../builder/ValueReferencePairBuilder.java | 15 +- .../DefaultAdministrativeInformation.java | 54 ++-- .../DefaultAnnotatedRelationshipElement.java | 156 +++++------ .../impl/DefaultAssetAdministrationShell.java | 78 +++--- ...ultAssetAdministrationShellDescriptor.java | 228 ++++++++++++++++ ...ltAssetAdministrationShellEnvironment.java | 129 +++++++++ .../model/impl/DefaultAssetInformation.java | 42 +-- .../model/impl/DefaultBasicEventElement.java | 186 ++++++------- .../aas4j/v3/model/impl/DefaultBlob.java | 150 +++++------ .../v3/model/impl/DefaultCapability.java | 142 +++++----- .../model/impl/DefaultConceptDescription.java | 66 ++--- .../DefaultDataSpecificationIec61360.java | 84 +++--- .../v3/model/impl/DefaultDescriptor.java | 93 +++++++ .../DefaultEmbeddedDataSpecification.java | 24 +- .../aas4j/v3/model/impl/DefaultEndpoint.java | 107 ++++++++ .../aas4j/v3/model/impl/DefaultEntity.java | 162 ++++++------ .../v3/model/impl/DefaultEnvironment.java | 30 ++- .../v3/model/impl/DefaultEventPayload.java | 60 ++--- .../aas4j/v3/model/impl/DefaultExtension.java | 48 ++-- .../aas4j/v3/model/impl/DefaultFile.java | 150 +++++------ .../aas4j/v3/model/impl/DefaultKey.java | 24 +- ...faultLangStringDefinitionTypeIec61360.java | 24 +- .../model/impl/DefaultLangStringNameType.java | 24 +- ...ltLangStringPreferredNameTypeIec61360.java | 24 +- ...efaultLangStringShortNameTypeIec61360.java | 24 +- .../model/impl/DefaultLangStringTextType.java | 24 +- .../aas4j/v3/model/impl/DefaultLevelType.java | 36 +-- .../aas4j/v3/model/impl/DefaultMessage.java | 139 ++++++++++ .../impl/DefaultMultiLanguageProperty.java | 150 +++++------ .../aas4j/v3/model/impl/DefaultOperation.java | 156 +++++------ .../v3/model/impl/DefaultOperationHandle.java | 106 ++++++++ .../model/impl/DefaultOperationRequest.java | 140 ++++++++++ .../v3/model/impl/DefaultOperationResult.java | 159 ++++++++++++ .../model/impl/DefaultOperationVariable.java | 18 +- .../model/impl/DefaultPackageDescription.java | 108 ++++++++ .../aas4j/v3/model/impl/DefaultProperty.java | 156 +++++------ .../impl/DefaultProtocolInformation.java | 170 ++++++++++++ .../aas4j/v3/model/impl/DefaultQualifier.java | 54 ++-- .../aas4j/v3/model/impl/DefaultRange.java | 156 +++++------ .../aas4j/v3/model/impl/DefaultReference.java | 30 ++- .../model/impl/DefaultReferenceElement.java | 144 ++++++----- .../impl/DefaultRelationshipElement.java | 150 +++++------ .../aas4j/v3/model/impl/DefaultResource.java | 24 +- .../aas4j/v3/model/impl/DefaultResult.java | 109 ++++++++ .../v3/model/impl/DefaultSpecificAssetId.java | 42 +-- .../aas4j/v3/model/impl/DefaultSubmodel.java | 130 +++++----- .../model/impl/DefaultSubmodelDescriptor.java | 193 ++++++++++++++ .../DefaultSubmodelElementAttributes.java | 244 ++++++++++++++++++ .../DefaultSubmodelElementCollection.java | 144 ++++++----- .../impl/DefaultSubmodelElementList.java | 168 ++++++------ .../aas4j/v3/model/impl/DefaultValueList.java | 18 +- .../model/impl/DefaultValueReferencePair.java | 24 +- 185 files changed, 8724 insertions(+), 3862 deletions(-) create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index 415e73a45..74b6c6c36 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,89 +25,106 @@ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") BLOB, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") CAPABILITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") DATA_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") ENTITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") FILE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") OPERATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") RANGE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") REFERENCE_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") SUBMODEL_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + SUBMODEL_ELEMENT_LIST } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index c613ac218..63d53a7c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,17 +24,17 @@ * Strings with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringTextType.class) + @KnownSubtypes.Type(value = LangStringTextType.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) }) public interface AbstractLangString { /** * Language tag conforming to BCP 47 - * + *

* More information under https://admin-shell.io/aas/3/2/AbstractLangString/language * * @return Returns the String for the property language. @@ -43,7 +44,7 @@ public interface AbstractLangString { /** * Language tag conforming to BCP 47 - * + *

* More information under https://admin-shell.io/aas/3/2/AbstractLangString/language * * @param language desired value for the property language. @@ -52,7 +53,7 @@ public interface AbstractLangString { /** * Text in the 'language' - * + *

* More information under https://admin-shell.io/aas/3/2/AbstractLangString/text * * @return Returns the String for the property text. @@ -62,7 +63,7 @@ public interface AbstractLangString { /** * Text in the 'language' - * + *

* More information under https://admin-shell.io/aas/3/2/AbstractLangString/text * * @param text desired value for the property text. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 1b29510e7..935e8ee98 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +27,13 @@ * Administrative meta-information for an element like version information. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) + @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) }) public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was created. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt * * @return Returns the XMLGregorianCalendar for the property createdAt. @@ -42,7 +43,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was created. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt * * @param createdAt desired value for the property createdAt. @@ -51,7 +52,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version * * @return Returns the String for the property version. @@ -61,7 +62,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version * * @param version desired value for the property version. @@ -70,7 +71,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision * * @return Returns the String for the property revision. @@ -80,7 +81,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision * * @param revision desired value for the property revision. @@ -89,7 +90,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator * * @return Returns the Reference for the property creator. @@ -99,7 +100,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator * * @param creator desired value for the property creator. @@ -108,7 +109,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Identifier of the template that guided the creation of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId * * @return Returns the String for the property templateId. @@ -118,7 +119,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Identifier of the template that guided the creation of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId * * @param templateId desired value for the property templateId. @@ -127,7 +128,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was last updated. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt * * @return Returns the XMLGregorianCalendar for the property updatedAt. @@ -137,7 +138,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was last updated. - * + *

* More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt * * @param updatedAt desired value for the property updatedAt. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index d12cf09d6..1adb2bd3a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,14 +27,14 @@ * data elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) }) public interface AnnotatedRelationshipElement extends RelationshipElement { /** * A data element that represents an annotation that holds for the relationship between the two * elements - * + *

* More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations * * @return Returns the List of DataElements for the property annotations. @@ -44,7 +45,7 @@ public interface AnnotatedRelationshipElement extends RelationshipElement { /** * A data element that represents an annotation that holds for the relationship between the two * elements - * + *

* More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations * * @param annotations desired value for the property annotations. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index aa18cc1e1..d587cd405 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * An asset administration shell. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) + @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) }) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { /** * The reference to the AAS the AAS was derived from. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom * * @return Returns the Reference for the property derivedFrom. @@ -41,7 +42,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * The reference to the AAS the AAS was derived from. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom * * @param derivedFrom desired value for the property derivedFrom. @@ -50,7 +51,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * Meta-information about the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation * * @return Returns the AssetInformation for the property assetInformation. @@ -60,7 +61,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * Meta-information about the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation * * @param assetInformation desired value for the property assetInformation. @@ -69,7 +70,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels * * @return Returns the List of References for the property submodels. @@ -79,7 +80,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels * * @param submodels desired value for the property submodels. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java new file mode 100644 index 000000000..f4986e24b --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -0,0 +1,183 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellDescriptor; + +import java.util.List; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) +}) +public interface AssetAdministrationShellDescriptor extends Descriptor { + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description + * + * @return Returns the LangStringTextType for the property description. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") + LangStringTextType getDescription(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description + * + * @param description desired value for the property description. + */ + void setDescription(LangStringTextType description); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName + * + * @return Returns the LangStringNameType for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + LangStringNameType getDisplayName(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName + * + * @param displayName desired value for the property displayName. + */ + void setDisplayName(LangStringNameType displayName); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId + * + * @return Returns the Reference for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + Reference getGlobalAssetId(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(Reference globalAssetId); + + /** + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") + String getIdShort(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification + * + * @return Returns the String for the property identification. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") + String getIdentification(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification + * + * @param identification desired value for the property identification. + */ + void setIdentification(String identification); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") + List getSpecificAssetIds(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @return Returns the SubmodelDescriptor for the property submodelDescriptors. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") + SubmodelDescriptor getSubmodelDescriptors(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @param submodelDescriptors desired value for the property submodelDescriptors. + */ + void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java new file mode 100644 index 000000000..f06adbc06 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellEnvironment; + +import java.util.List; + + +/** + * Container for the sets of different identifiables. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class) +}) +public interface AssetAdministrationShellEnvironment { + + /** + * Asset administration shell + *

+ * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells + * + * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") + List getAssetAdministrationShells(); + + /** + * Asset administration shell + *

+ * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells + * + * @param assetAdministrationShells desired value for the property assetAdministrationShells. + */ + void setAssetAdministrationShells(List assetAdministrationShells); + + /** + * Concept description + *

+ * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions + * + * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") + List getConceptDescriptions(); + + /** + * Concept description + *

+ * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions + * + * @param conceptDescriptions desired value for the property conceptDescriptions. + */ + void setConceptDescriptions(List conceptDescriptions); + + /** + * Submodel + *

+ * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") + List getSubmodels(); + + /** + * Submodel + *

+ * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 29d3a9122..83c063743 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +27,13 @@ * defined. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetInformation.class) + @KnownSubtypes.Type(value = DefaultAssetInformation.class) }) public interface AssetInformation { /** * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind * * @return Returns the AssetKind for the property assetKind. @@ -42,7 +43,7 @@ public interface AssetInformation { /** * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind * * @param assetKind desired value for the property assetKind. @@ -51,7 +52,7 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId * * @return Returns the String for the property globalAssetId. @@ -61,7 +62,7 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. @@ -71,7 +72,7 @@ public interface AssetInformation { /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. @@ -82,7 +83,7 @@ public interface AssetInformation { /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. @@ -92,7 +93,7 @@ public interface AssetInformation { /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset * under consideration as identified by 'globalAssetId'. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType * * @return Returns the String for the property assetType. @@ -103,7 +104,7 @@ public interface AssetInformation { /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset * under consideration as identified by 'globalAssetId'. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType * * @param assetType desired value for the property assetType. @@ -112,7 +113,7 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail * * @return Returns the Resource for the property defaultThumbnail. @@ -122,7 +123,7 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail * * @param defaultThumbnail desired value for the property defaultThumbnail. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 86c537ad7..56b8ff23a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -52,6 +53,6 @@ public enum AssetKind { * Type asset */ @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") - TYPE; + TYPE } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 046393f92..33a1171e2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,14 +25,14 @@ * A basic event element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBasicEventElement.class) + @KnownSubtypes.Type(value = DefaultBasicEventElement.class) }) public interface BasicEventElement extends EventElement { /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed * * @return Returns the Reference for the property observed. @@ -42,7 +43,7 @@ public interface BasicEventElement extends EventElement { /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed * * @param observed desired value for the property observed. @@ -51,7 +52,7 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction * * @return Returns the Direction for the property direction. @@ -61,7 +62,7 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction * * @param direction desired value for the property direction. @@ -70,7 +71,7 @@ public interface BasicEventElement extends EventElement { /** * State of event. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/state * * @return Returns the StateOfEvent for the property state. @@ -80,7 +81,7 @@ public interface BasicEventElement extends EventElement { /** * State of event. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/state * * @param state desired value for the property state. @@ -90,7 +91,7 @@ public interface BasicEventElement extends EventElement { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic * * @return Returns the String for the property messageTopic. @@ -101,7 +102,7 @@ public interface BasicEventElement extends EventElement { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic * * @param messageTopic desired value for the property messageTopic. @@ -112,7 +113,7 @@ public interface BasicEventElement extends EventElement { * Information, which outer message infrastructure shall handle messages for the 'EventElement'. * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker * * @return Returns the Reference for the property messageBroker. @@ -124,7 +125,7 @@ public interface BasicEventElement extends EventElement { * Information, which outer message infrastructure shall handle messages for the 'EventElement'. * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker * * @param messageBroker desired value for the property messageBroker. @@ -133,7 +134,7 @@ public interface BasicEventElement extends EventElement { /** * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate * * @return Returns the String for the property lastUpdate. @@ -143,7 +144,7 @@ public interface BasicEventElement extends EventElement { /** * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate * * @param lastUpdate desired value for the property lastUpdate. @@ -153,7 +154,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction, reports on the maximum frequency, the software entity behind the respective * Referable can handle input events. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval * * @return Returns the String for the property minInterval. @@ -164,7 +165,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction, reports on the maximum frequency, the software entity behind the respective * Referable can handle input events. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval * * @param minInterval desired value for the property minInterval. @@ -173,7 +174,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval * * @return Returns the String for the property maxInterval. @@ -183,7 +184,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. - * + *

* More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval * * @param maxInterval desired value for the property maxInterval. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index b3b5e8513..cd18a16b0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * value attribute. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBlob.class) + @KnownSubtypes.Type(value = DefaultBlob.class) }) public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. - * + *

* More information under https://admin-shell.io/aas/3/2/Blob/value * * @return Returns the byte[] for the property value. @@ -41,7 +42,7 @@ public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. - * + *

* More information under https://admin-shell.io/aas/3/2/Blob/value * * @param value desired value for the property value. @@ -50,7 +51,7 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. - * + *

* More information under https://admin-shell.io/aas/3/2/Blob/contentType * * @return Returns the String for the property contentType. @@ -60,7 +61,7 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. - * + *

* More information under https://admin-shell.io/aas/3/2/Blob/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 26cb02ec6..3f5c0fd2c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ * achieve a certain effect in the physical or virtual world. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultCapability.class) + @KnownSubtypes.Type(value = DefaultCapability.class) }) public interface Capability extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index ed1f095f5..3423479d1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +27,13 @@ * a concept description. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultConceptDescription.class) + @KnownSubtypes.Type(value = DefaultConceptDescription.class) }) public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. - * + *

* More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * * @return Returns the List of References for the property isCaseOfs. @@ -42,7 +43,7 @@ public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. - * + *

* More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * * @param isCaseOfs desired value for the property isCaseOfs. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 221967ea2..3639c5d49 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,12 +23,12 @@ * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) public interface DataElement extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 1374d590c..8203fe866 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ * and meta information about the template itself. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class) + @KnownSubtypes.Type(value = DataSpecificationIec61360.class) }) public interface DataSpecificationContent { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index abef0cd7a..704e3966a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +27,13 @@ * lists conformant to IEC 61360. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) + @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) }) public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Preferred name - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredNames. @@ -42,7 +43,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Preferred name - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @param preferredNames desired value for the property preferredNames. @@ -51,7 +52,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Short name - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. @@ -61,7 +62,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Short name - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * * @param shortNames desired value for the property shortNames. @@ -70,7 +71,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unit - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit * * @return Returns the String for the property unit. @@ -80,7 +81,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unit - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit * * @param unit desired value for the property unit. @@ -89,7 +90,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId * * @return Returns the Reference for the property unitId. @@ -99,7 +100,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId * * @param unitId desired value for the property unitId. @@ -108,7 +109,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Source of definition - * + *

* More information under * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition * @@ -119,7 +120,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Source of definition - * + *

* More information under * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition * @@ -129,7 +130,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol * * @return Returns the String for the property symbol. @@ -139,7 +140,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol * * @param symbol desired value for the property symbol. @@ -148,7 +149,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType * * @return Returns the DataTypeIec61360 for the property dataType. @@ -158,7 +159,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType * * @param dataType desired value for the property dataType. @@ -167,7 +168,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. @@ -177,7 +178,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * * @param definitions desired value for the property definitions. @@ -186,7 +187,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value Format - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat * * @return Returns the String for the property valueFormat. @@ -196,7 +197,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value Format - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat * * @param valueFormat desired value for the property valueFormat. @@ -205,7 +206,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList * * @return Returns the ValueList for the property valueList. @@ -215,7 +216,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList * * @param valueList desired value for the property valueList. @@ -224,7 +225,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value * * @return Returns the String for the property value. @@ -234,7 +235,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value * * @param value desired value for the property value. @@ -243,7 +244,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType * * @return Returns the LevelType for the property levelType. @@ -253,7 +254,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. - * + *

* More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType * * @param levelType desired value for the property levelType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index d00a6d249..8b80a3ca2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,154 +25,184 @@ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") ANY_URI, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") BASE64BINARY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") BOOLEAN, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") BYTE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") DATE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") DATE_TIME, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") DECIMAL, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") DOUBLE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") DURATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") FLOAT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") GDAY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") GMONTH, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") GMONTH_DAY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") GYEAR, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") GYEAR_MONTH, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") HEX_BINARY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") INT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") LONG, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") NEGATIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") NON_NEGATIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") NON_POSITIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") POSITIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") SHORT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") STRING, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") TIME, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") UNSIGNED_BYTE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") UNSIGNED_INT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") UNSIGNED_LONG, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") - UNSIGNED_SHORT; + UNSIGNED_SHORT } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 38a716b58..8963a8654 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -18,8 +19,9 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** -*/ +/** + * + */ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { @@ -143,6 +145,6 @@ public enum DataTypeIec61360 { * corresponding type in xml. */ @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") - TIMESTAMP; + TIMESTAMP } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java new file mode 100644 index 000000000..e567a369b --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDescriptor; + +import java.util.List; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultDescriptor.class), + @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), + @KnownSubtypes.Type(value = SubmodelDescriptor.class) +}) +public interface Descriptor { + + /** + * + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints + * + * @return Returns the List of Endpoints for the property endpoints. + */ + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + List getEndpoints(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints + * + * @param endpoints desired value for the property endpoints. + */ + void setEndpoints(List endpoints); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index c503e5374..943ef8701 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,6 +35,6 @@ public enum Direction { * Output direction */ @IRI("https://admin-shell.io/aas/3/2/Direction/Output") - OUTPUT; + OUTPUT } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 9679c9206..0531c1d1d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * Embed the content of a data specification. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) + @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) }) public interface EmbeddedDataSpecification { /** * Reference to the data specification - * + *

* More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification * * @return Returns the Reference for the property dataSpecification. @@ -40,7 +41,7 @@ public interface EmbeddedDataSpecification { /** * Reference to the data specification - * + *

* More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification * * @param dataSpecification desired value for the property dataSpecification. @@ -49,7 +50,7 @@ public interface EmbeddedDataSpecification { /** * Actual content of the data specification - * + *

* More information under * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent * @@ -60,7 +61,7 @@ public interface EmbeddedDataSpecification { /** * Actual content of the data specification - * + *

* More information under * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java new file mode 100644 index 000000000..7e3751efc --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEndpoint; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEndpoint.class) +}) +public interface Endpoint { + + /** + * + * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface + * + * @return Returns the String for the property _interface. + */ + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") + String get_interface(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface + * + * @param _interface desired value for the property _interface. + */ + void set_interface(String _interface); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation + * + * @return Returns the ProtocolInformation for the property protocolInformation. + */ + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") + ProtocolInformation getProtocolInformation(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation + * + * @param protocolInformation desired value for the property protocolInformation. + */ + void setProtocolInformation(ProtocolInformation protocolInformation); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index 53fe74cda..5173debf0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,14 +26,14 @@ * An entity is a submodel element that is used to model entities. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEntity.class) + @KnownSubtypes.Type(value = DefaultEntity.class) }) public interface Entity extends SubmodelElement { /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/statements * * @return Returns the List of SubmodelElements for the property statements. @@ -43,7 +44,7 @@ public interface Entity extends SubmodelElement { /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/statements * * @param statements desired value for the property statements. @@ -52,7 +53,7 @@ public interface Entity extends SubmodelElement { /** * Describes whether the entity is a co-managed entity or a self-managed entity. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/entityType * * @return Returns the EntityType for the property entityType. @@ -62,7 +63,7 @@ public interface Entity extends SubmodelElement { /** * Describes whether the entity is a co-managed entity or a self-managed entity. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/entityType * * @param entityType desired value for the property entityType. @@ -71,7 +72,7 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId * * @return Returns the String for the property globalAssetId. @@ -81,7 +82,7 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. @@ -91,7 +92,7 @@ public interface Entity extends SubmodelElement { /** * Reference to a specific asset ID representing a supplementary identifier of the asset represented * by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. @@ -102,7 +103,7 @@ public interface Entity extends SubmodelElement { /** * Reference to a specific asset ID representing a supplementary identifier of the asset represented * by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index c71059284..13559642e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -36,6 +37,6 @@ public enum EntityType { * self-managed entity. */ @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") - SELF_MANAGED_ENTITY; + SELF_MANAGED_ENTITY } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index a25ef9d59..0591a2263 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * Container for the sets of different identifiables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEnvironment.class) + @KnownSubtypes.Type(value = DefaultEnvironment.class) }) public interface Environment { /** * Asset administration shell - * + *

* More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. @@ -41,7 +42,7 @@ public interface Environment { /** * Asset administration shell - * + *

* More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * * @param assetAdministrationShells desired value for the property assetAdministrationShells. @@ -50,7 +51,7 @@ public interface Environment { /** * Submodel - * + *

* More information under https://admin-shell.io/aas/3/2/Environment/submodels * * @return Returns the List of Submodels for the property submodels. @@ -60,7 +61,7 @@ public interface Environment { /** * Submodel - * + *

* More information under https://admin-shell.io/aas/3/2/Environment/submodels * * @param submodels desired value for the property submodels. @@ -69,7 +70,7 @@ public interface Environment { /** * Concept description - * + *

* More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions * * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. @@ -79,7 +80,7 @@ public interface Environment { /** * Concept description - * + *

* More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions * * @param conceptDescriptions desired value for the property conceptDescriptions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index 836f10339..3ba487b47 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,7 +23,7 @@ * An event element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = BasicEventElement.class) + @KnownSubtypes.Type(value = BasicEventElement.class) }) public interface EventElement extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index 88288a792..32c69e48f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,14 +25,14 @@ * Defines the necessary information of an event instance sent out or received. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEventPayload.class) + @KnownSubtypes.Type(value = DefaultEventPayload.class) }) public interface EventPayload { /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/source * * @return Returns the Reference for the property source. @@ -42,7 +43,7 @@ public interface EventPayload { /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/source * * @param source desired value for the property source. @@ -51,7 +52,7 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId * * @return Returns the Reference for the property sourceSemanticId. @@ -61,7 +62,7 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId * * @param sourceSemanticId desired value for the property sourceSemanticId. @@ -70,7 +71,7 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference * * @return Returns the Reference for the property observableReference. @@ -80,7 +81,7 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference * * @param observableReference desired value for the property observableReference. @@ -89,7 +90,7 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId * * @return Returns the Reference for the property observableSemanticId. @@ -99,7 +100,7 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId * * @param observableSemanticId desired value for the property observableSemanticId. @@ -109,7 +110,7 @@ public interface EventPayload { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/topic * * @return Returns the String for the property topic. @@ -120,7 +121,7 @@ public interface EventPayload { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/topic * * @param topic desired value for the property topic. @@ -129,7 +130,7 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId * * @return Returns the Reference for the property subjectId. @@ -139,7 +140,7 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId * * @param subjectId desired value for the property subjectId. @@ -148,7 +149,7 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp * * @return Returns the String for the property timeStamp. @@ -158,7 +159,7 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp * * @param timeStamp desired value for the property timeStamp. @@ -167,7 +168,7 @@ public interface EventPayload { /** * Event specific payload. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/payload * * @return Returns the byte[] for the property payload. @@ -177,7 +178,7 @@ public interface EventPayload { /** * Event specific payload. - * + *

* More information under https://admin-shell.io/aas/3/2/EventPayload/payload * * @param payload desired value for the property payload. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java new file mode 100644 index 000000000..b83295f7d --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + + +/** + * + */ +@IRI("aas:ExecutionState") +public enum ExecutionState { + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") + CANCELED, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") + COMPLETED, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") + FAILED, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") + INITIATED, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") + RUNNING, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Timeout") + TIMEOUT + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index e79caa0bb..2188b05b3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * Single extension of an element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultExtension.class) + @KnownSubtypes.Type(value = DefaultExtension.class) }) public interface Extension extends HasSemantics { /** * Name of the extension. - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/name * * @return Returns the String for the property name. @@ -41,7 +42,7 @@ public interface Extension extends HasSemantics { /** * Name of the extension. - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/name * * @param name desired value for the property name. @@ -50,7 +51,7 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -60,7 +61,7 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/valueType * * @param valueType desired value for the property valueType. @@ -69,7 +70,7 @@ public interface Extension extends HasSemantics { /** * Value of the extension - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/value * * @return Returns the String for the property value. @@ -79,7 +80,7 @@ public interface Extension extends HasSemantics { /** * Value of the extension - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/value * * @param value desired value for the property value. @@ -88,7 +89,7 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/refersTo * * @return Returns the List of References for the property refersTos. @@ -98,7 +99,7 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. - * + *

* More information under https://admin-shell.io/aas/3/2/Extension/refersTo * * @param refersTos desired value for the property refersTos. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index 6f602f82d..c01b734f4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * A File is a data element that represents an address to a file (a locator). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultFile.class) + @KnownSubtypes.Type(value = DefaultFile.class) }) public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/2/File/value * * @return Returns the String for the property value. @@ -40,7 +41,7 @@ public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/2/File/value * * @param value desired value for the property value. @@ -49,7 +50,7 @@ public interface File extends DataElement { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/2/File/contentType * * @return Returns the String for the property contentType. @@ -59,7 +60,7 @@ public interface File extends DataElement { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/2/File/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 8a688f255..9d761ca12 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,29 +25,30 @@ * Element that can be extended by using data specification templates. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface HasDataSpecification { /** * Embedded data specification. - * + *

* More information under * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications * * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. + * embeddedDataSpecifications. */ @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") List getEmbeddedDataSpecifications(); /** * Embedded data specification. - * + *

* More information under * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 99c33883c..aefc97f85 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * Element that can be extended by proprietary extensions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Referable.class) + @KnownSubtypes.Type(value = Referable.class) }) public interface HasExtensions { /** * An extension of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions * * @return Returns the List of Extensions for the property extensions. @@ -40,7 +41,7 @@ public interface HasExtensions { /** * An extension of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions * * @param extensions desired value for the property extensions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index 309b7a787..006285b9a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,13 +24,13 @@ * An element with a kind is an element that can either represent a template or an instance. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasKind { /** * Kind of the element: either template or instance. - * + *

* More information under https://admin-shell.io/aas/3/2/HasKind/kind * * @return Returns the ModellingKind for the property kind. @@ -39,7 +40,7 @@ public interface HasKind { /** * Kind of the element: either template or instance. - * + *

* More information under https://admin-shell.io/aas/3/2/HasKind/kind * * @param kind desired value for the property kind. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index 5b2d1e6b2..95541ae8c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,18 +25,19 @@ * Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { /** * Identifier of the semantic definition of the element. It is called semantic ID of the element or * also main semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @return Returns the Reference for the property semanticId. @@ -46,7 +48,7 @@ public interface HasSemantics { /** * Identifier of the semantic definition of the element. It is called semantic ID of the element or * also main semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @param semanticId desired value for the property semanticId. @@ -56,7 +58,7 @@ public interface HasSemantics { /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds * * @return Returns the List of References for the property supplementalSemanticIds. @@ -67,7 +69,7 @@ public interface HasSemantics { /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds * * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index 3cb0a1b17..d3e13fadf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,15 +24,15 @@ * An element that has a globally unique identifier. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. - * + *

* More information under https://admin-shell.io/aas/3/2/Identifiable/administration * * @return Returns the AdministrativeInformation for the property administration. @@ -41,7 +42,7 @@ public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. - * + *

* More information under https://admin-shell.io/aas/3/2/Identifiable/administration * * @param administration desired value for the property administration. @@ -50,7 +51,7 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Identifiable/id * * @return Returns the String for the property id. @@ -60,7 +61,7 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Identifiable/id * * @param id desired value for the property id. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index 23c9bd8f9..adc9e4928 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * A key is a reference to an element by its ID. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultKey.class) + @KnownSubtypes.Type(value = DefaultKey.class) }) public interface Key { /** * Denotes which kind of entity is referenced. - * + *

* More information under https://admin-shell.io/aas/3/2/Key/type * * @return Returns the KeyTypes for the property type. @@ -40,7 +41,7 @@ public interface Key { /** * Denotes which kind of entity is referenced. - * + *

* More information under https://admin-shell.io/aas/3/2/Key/type * * @param type desired value for the property type. @@ -49,7 +50,7 @@ public interface Key { /** * The key value, for example an IRDI or an URI - * + *

* More information under https://admin-shell.io/aas/3/2/Key/value * * @return Returns the String for the property value. @@ -59,7 +60,7 @@ public interface Key { /** * The key value, for example an IRDI or an URI - * + *

* More information under https://admin-shell.io/aas/3/2/Key/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index f79da4e33..1208343cf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,33 +25,39 @@ @IRI("aas:KeyTypes") public enum KeyTypes { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") BLOB, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") CAPABILITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") CONCEPT_DESCRIPTION, @@ -60,8 +67,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") DATA_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") ENTITY, @@ -71,8 +79,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") FILE, @@ -82,8 +91,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") FRAGMENT_REFERENCE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") GLOBAL_REFERENCE, @@ -99,13 +109,15 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") OPERATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") PROPERTY, @@ -115,8 +127,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") RANGE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") REFERABLE, @@ -132,8 +145,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") SUBMODEL, @@ -153,6 +167,6 @@ public enum KeyTypes { * List of Submodel Elements */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + SUBMODEL_ELEMENT_LIST } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index 79f89aeab..1e0881722 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index a2153c56c..737af1f6b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ * String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) }) public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 510fa9ff7..7ee7c2f4b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ * String with length 128 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringNameType.class) + @KnownSubtypes.Type(value = DefaultLangStringNameType.class) }) public interface LangStringNameType extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 970690271..895d1fb3d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ * String with length 255 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) }) public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index dfa79c706..b1a518509 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ * String with length 18 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) }) public interface LangStringShortNameTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index dc960b950..e125247c8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ * String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringTextType.class) + @KnownSubtypes.Type(value = DefaultLangStringTextType.class) }) public interface LangStringTextType extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index d2403dace..832ac569c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * MAX. True means that the value is available, false means the value is not available. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLevelType.class) + @KnownSubtypes.Type(value = DefaultLevelType.class) }) public interface LevelType { /** * Minimum of the value - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/min * * @return Returns the boolean for the property min. @@ -41,7 +42,7 @@ public interface LevelType { /** * Minimum of the value - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/min * * @param min desired value for the property min. @@ -50,7 +51,7 @@ public interface LevelType { /** * Nominal value (value as designated) - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/nom * * @return Returns the boolean for the property nom. @@ -60,7 +61,7 @@ public interface LevelType { /** * Nominal value (value as designated) - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/nom * * @param nom desired value for the property nom. @@ -69,7 +70,7 @@ public interface LevelType { /** * Value as typically present - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/typ * * @return Returns the boolean for the property typ. @@ -79,7 +80,7 @@ public interface LevelType { /** * Value as typically present - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/typ * * @param typ desired value for the property typ. @@ -88,7 +89,7 @@ public interface LevelType { /** * Maximum of the value - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/max * * @return Returns the boolean for the property max. @@ -98,7 +99,7 @@ public interface LevelType { /** * Maximum of the value - * + *

* More information under https://admin-shell.io/aas/3/2/LevelType/max * * @param max desired value for the property max. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java new file mode 100644 index 000000000..d48a8cd74 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMessage; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultMessage.class) +}) +public interface Message { + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/code + * + * @return Returns the String for the property code. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/code") + String getCode(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/code + * + * @param code desired value for the property code. + */ + void setCode(String code); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/messageType + * + * @return Returns the MessageType for the property messageType. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") + MessageType getMessageType(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/messageType + * + * @param messageType desired value for the property messageType. + */ + void setMessageType(MessageType messageType); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/text") + String getText(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/text + * + * @param text desired value for the property text. + */ + void setText(String text); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/timestamp + * + * @return Returns the String for the property timestamp. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") + String getTimestamp(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Message/timestamp + * + * @param timestamp desired value for the property timestamp. + */ + void setTimestamp(String timestamp); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java new file mode 100644 index 000000000..2fe8fbc66 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + + +/** + * + */ +@IRI("aas:MessageType") +public enum MessageType { + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") + ERROR, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") + EXCEPTION, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") + INFO, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") + UNDEFINED, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") + WARNING + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java new file mode 100644 index 000000000..7aa215317 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + + +/** + * + */ +@IRI("aas:ModelType") +public enum ModelType { + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") + BLOB, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") + CAPABILITY, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") + ENTITY, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/File") + FILE, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") + OPERATION, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") + PROPERTY, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") + QUALIFIER, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") + RANGE, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") + REFERENCE, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") + REFERENCE_ELEMENT, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") + SUBMODEL, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementList") + SUBMODEL_ELEMENT_LIST + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index e4ef3ea8e..8015389a6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -36,6 +37,6 @@ public enum ModellingKind { * instance can be instantiated using it */ @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") - TEMPLATE; + TEMPLATE } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 3dbe1a813..8aa49e009 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * A property is a data element that has a multi-language value. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) + @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) }) public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * * @return Returns the List of LangStringTextTypes for the property values. @@ -41,7 +42,7 @@ public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * * @param values desired value for the property values. @@ -50,7 +51,7 @@ public interface MultiLanguageProperty extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId * * @return Returns the Reference for the property valueId. @@ -60,7 +61,7 @@ public interface MultiLanguageProperty extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index a016d1254..0076a66d4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * An operation is a submodel element with input and output variables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperation.class) + @KnownSubtypes.Type(value = DefaultOperation.class) }) public interface Operation extends SubmodelElement { /** * Input parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/2/Operation/inputVariables * * @return Returns the List of OperationVariables for the property inputVariables. @@ -41,7 +42,7 @@ public interface Operation extends SubmodelElement { /** * Input parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/2/Operation/inputVariables * * @param inputVariables desired value for the property inputVariables. @@ -50,7 +51,7 @@ public interface Operation extends SubmodelElement { /** * Output parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/2/Operation/outputVariables * * @return Returns the List of OperationVariables for the property outputVariables. @@ -60,7 +61,7 @@ public interface Operation extends SubmodelElement { /** * Output parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/2/Operation/outputVariables * * @param outputVariables desired value for the property outputVariables. @@ -69,7 +70,7 @@ public interface Operation extends SubmodelElement { /** * Parameter that is input and output of the operation. - * + *

* More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables * * @return Returns the List of OperationVariables for the property inoutputVariables. @@ -79,7 +80,7 @@ public interface Operation extends SubmodelElement { /** * Parameter that is input and output of the operation. - * + *

* More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables * * @param inoutputVariables desired value for the property inoutputVariables. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java new file mode 100644 index 000000000..4b568f4bb --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationHandle; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationHandle.class) +}) +public interface OperationHandle { + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId + * + * @return Returns the String for the property handleId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") + String getHandleId(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId + * + * @param handleId desired value for the property handleId. + */ + void setHandleId(String handleId); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId + * + * @return Returns the String for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") + String getRequestId(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId + * + * @param requestId desired value for the property requestId. + */ + void setRequestId(String requestId); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java new file mode 100644 index 000000000..1ba0fbcc4 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; + +import java.math.BigInteger; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationRequest.class) +}) +public interface OperationRequest { + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments + * + * @return Returns the OperationVariable for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + OperationVariable getInoutputArguments(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(OperationVariable inoutputArguments); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments + * + * @return Returns the OperationVariable for the property inputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") + OperationVariable getInputArguments(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments + * + * @param inputArguments desired value for the property inputArguments. + */ + void setInputArguments(OperationVariable inputArguments); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId + * + * @return Returns the String for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") + String getRequestId(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId + * + * @param requestId desired value for the property requestId. + */ + void setRequestId(String requestId); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout + * + * @return Returns the BigInteger for the property timeout. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + BigInteger getTimeout(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout + * + * @param timeout desired value for the property timeout. + */ + void setTimeout(BigInteger timeout); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java new file mode 100644 index 000000000..d8bff2345 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationResult; + +import java.util.List; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationResult.class) +}) +public interface OperationResult { + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @return Returns the List of Results for the property executionResults. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + List getExecutionResults(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @param executionResults desired value for the property executionResults. + */ + void setExecutionResults(List executionResults); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @return Returns the List of ExecutionStates for the property executionStates. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + List getExecutionStates(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @param executionStates desired value for the property executionStates. + */ + void setExecutionStates(List executionStates); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments + * + * @return Returns the List of OperationVariables for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") + List getInoutputArguments(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(List inoutputArguments); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments + * + * @return Returns the List of OperationVariables for the property outputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") + List getOutputArguments(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments + * + * @param outputArguments desired value for the property outputArguments. + */ + void setOutputArguments(List outputArguments); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @return Returns the List of Strings for the property requestIds. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") + List getRequestIds(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @param requestIds desired value for the property requestIds. + */ + void setRequestIds(List requestIds); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index 62598a1d8..27ff2183f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * variable of an operation. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationVariable.class) + @KnownSubtypes.Type(value = DefaultOperationVariable.class) }) public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element - * + *

* More information under https://admin-shell.io/aas/3/2/OperationVariable/value * * @return Returns the SubmodelElement for the property value. @@ -41,7 +42,7 @@ public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element - * + *

* More information under https://admin-shell.io/aas/3/2/OperationVariable/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java new file mode 100644 index 000000000..45ec464e4 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultPackageDescription; + +import java.util.List; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultPackageDescription.class) +}) +public interface PackageDescription { + + /** + * + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items + * + * @return Returns the List of Strings for the property items. + */ + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") + List getItems(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items + * + * @param items desired value for the property items. + */ + void setItems(List items); + + /** + * + * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId + * + * @return Returns the String for the property packageId. + */ + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") + String getPackageId(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId + * + * @param packageId desired value for the property packageId. + */ + void setPackageId(String packageId); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index 7edeb7ee3..f4db5de42 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * A property is a data element that has a single value. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProperty.class) + @KnownSubtypes.Type(value = DefaultProperty.class) }) public interface Property extends DataElement { /** * Data type of the value - * + *

* More information under https://admin-shell.io/aas/3/2/Property/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -40,7 +41,7 @@ public interface Property extends DataElement { /** * Data type of the value - * + *

* More information under https://admin-shell.io/aas/3/2/Property/valueType * * @param valueType desired value for the property valueType. @@ -49,7 +50,7 @@ public interface Property extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/2/Property/value * * @return Returns the String for the property value. @@ -59,7 +60,7 @@ public interface Property extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/2/Property/value * * @param value desired value for the property value. @@ -68,7 +69,7 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/2/Property/valueId * * @return Returns the Reference for the property valueId. @@ -78,7 +79,7 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/2/Property/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java new file mode 100644 index 000000000..b3a91d277 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProtocolInformation; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultProtocolInformation.class) +}) +public interface ProtocolInformation { + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress + * + * @return Returns the String for the property endpointAddress. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") + String getEndpointAddress(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress + * + * @param endpointAddress desired value for the property endpointAddress. + */ + void setEndpointAddress(String endpointAddress); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol + * + * @return Returns the String for the property endpointProtocol. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") + String getEndpointProtocol(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol + * + * @param endpointProtocol desired value for the property endpointProtocol. + */ + void setEndpointProtocol(String endpointProtocol); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion + * + * @return Returns the String for the property endpointProtocolVersion. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") + String getEndpointProtocolVersion(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion + * + * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. + */ + void setEndpointProtocolVersion(String endpointProtocolVersion); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol + * + * @return Returns the String for the property subprotocol. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") + String getSubprotocol(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol + * + * @param subprotocol desired value for the property subprotocol. + */ + void setSubprotocol(String subprotocol); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody + * + * @return Returns the String for the property subprotocolBody. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") + String getSubprotocolBody(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody + * + * @param subprotocolBody desired value for the property subprotocolBody. + */ + void setSubprotocolBody(String subprotocolBody); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding + * + * @return Returns the String for the property subprotocolBodyEncoding. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") + String getSubprotocolBodyEncoding(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. + */ + void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index fd7b587c1..3a54b1654 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,14 +25,15 @@ * The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface Qualifiable { /** * Additional qualification of a qualifiable element. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers * * @return Returns the List of Qualifiers for the property qualifiers. @@ -41,7 +43,7 @@ public interface Qualifiable { /** * Additional qualification of a qualifiable element. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers * * @param qualifiers desired value for the property qualifiers. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index c610e8325..31ab50460 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultQualifier.class) + @KnownSubtypes.Type(value = DefaultQualifier.class) }) public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/kind * * @return Returns the QualifierKind for the property kind. @@ -41,7 +42,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/kind * * @param kind desired value for the property kind. @@ -50,7 +51,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/type * * @return Returns the String for the property type. @@ -60,7 +61,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/type * * @param type desired value for the property type. @@ -69,7 +70,7 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -79,7 +80,7 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/valueType * * @param valueType desired value for the property valueType. @@ -88,7 +89,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/value * * @return Returns the String for the property value. @@ -98,7 +99,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/value * * @param value desired value for the property value. @@ -107,7 +108,7 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/valueId * * @return Returns the Reference for the property valueId. @@ -117,7 +118,7 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/2/Qualifier/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index ee6f770eb..0f6bf75b6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -40,6 +41,6 @@ public enum QualifierKind { * qualifies the value of the element and can change during run-time. */ @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") - VALUE_QUALIFIER; + VALUE_QUALIFIER } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 468834ab9..46ccb90c6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * A range data element is a data element that defines a range with min and max. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRange.class) + @KnownSubtypes.Type(value = DefaultRange.class) }) public interface Range extends DataElement { /** * Data type of the min und max - * + *

* More information under https://admin-shell.io/aas/3/2/Range/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -40,7 +41,7 @@ public interface Range extends DataElement { /** * Data type of the min und max - * + *

* More information under https://admin-shell.io/aas/3/2/Range/valueType * * @param valueType desired value for the property valueType. @@ -49,7 +50,7 @@ public interface Range extends DataElement { /** * The minimum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/2/Range/min * * @return Returns the String for the property min. @@ -59,7 +60,7 @@ public interface Range extends DataElement { /** * The minimum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/2/Range/min * * @param min desired value for the property min. @@ -68,7 +69,7 @@ public interface Range extends DataElement { /** * The maximum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/2/Range/max * * @return Returns the String for the property max. @@ -78,7 +79,7 @@ public interface Range extends DataElement { /** * The maximum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/2/Range/max * * @param max desired value for the property max. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index 425d998b7..f7776534f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,15 +25,16 @@ * An element that is referable by its 'idShort'. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Identifiable.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/category * * @return Returns the String for the property category. @@ -43,7 +45,7 @@ public interface Referable extends HasExtensions { /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/category * * @param category desired value for the property category. @@ -53,7 +55,7 @@ public interface Referable extends HasExtensions { /** * In case of identifiables this attribute is a short name of the element. In case of referable this * ID is an identifying string of the element within its name space. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @return Returns the String for the property idShort. @@ -64,7 +66,7 @@ public interface Referable extends HasExtensions { /** * In case of identifiables this attribute is a short name of the element. In case of referable this * ID is an identifying string of the element within its name space. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @param idShort desired value for the property idShort. @@ -73,7 +75,7 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/displayName * * @return Returns the List of LangStringNameTypes for the property displayNames. @@ -83,7 +85,7 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/displayName * * @param displayNames desired value for the property displayNames. @@ -92,7 +94,7 @@ public interface Referable extends HasExtensions { /** * Description or comments on the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/description * * @return Returns the List of LangStringTextTypes for the property descriptions. @@ -102,7 +104,7 @@ public interface Referable extends HasExtensions { /** * Description or comments on the element. - * + *

* More information under https://admin-shell.io/aas/3/2/Referable/description * * @param descriptions desired value for the property descriptions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index b2c67ab8f..93d258da1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * Reference to either a model element of the same or another AAS or to an external entity. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReference.class) + @KnownSubtypes.Type(value = DefaultReference.class) }) public interface Reference { /** * Type of the reference. - * + *

* More information under https://admin-shell.io/aas/3/2/Reference/type * * @return Returns the ReferenceTypes for the property type. @@ -41,7 +42,7 @@ public interface Reference { /** * Type of the reference. - * + *

* More information under https://admin-shell.io/aas/3/2/Reference/type * * @param type desired value for the property type. @@ -50,7 +51,7 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * + *

* More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId * * @return Returns the Reference for the property referredSemanticId. @@ -60,7 +61,7 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * + *

* More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId * * @param referredSemanticId desired value for the property referredSemanticId. @@ -69,7 +70,7 @@ public interface Reference { /** * Unique references in their name space. - * + *

* More information under https://admin-shell.io/aas/3/2/Reference/keys * * @return Returns the List of Keys for the property keys. @@ -79,7 +80,7 @@ public interface Reference { /** * Unique references in their name space. - * + *

* More information under https://admin-shell.io/aas/3/2/Reference/keys * * @param keys desired value for the property keys. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index f32ff60c3..0f924304c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,14 +26,14 @@ * the same or another AAS or a reference to an external object or entity. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReferenceElement.class) + @KnownSubtypes.Type(value = DefaultReferenceElement.class) }) public interface ReferenceElement extends DataElement { /** * Global reference to an external object or entity or a logical reference to another element within * the same or another AAS (i.e. a model reference to a Referable). - * + *

* More information under https://admin-shell.io/aas/3/2/ReferenceElement/value * * @return Returns the Reference for the property value. @@ -43,7 +44,7 @@ public interface ReferenceElement extends DataElement { /** * Global reference to an external object or entity or a logical reference to another element within * the same or another AAS (i.e. a model reference to a Referable). - * + *

* More information under https://admin-shell.io/aas/3/2/ReferenceElement/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index 7da3db39d..22e1a7bca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,6 +35,6 @@ public enum ReferenceTypes { * Model reference. */ @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") - MODEL_REFERENCE; + MODEL_REFERENCE } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index aacff2f20..7ec863bfb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,14 +26,14 @@ * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. - * + *

* More information under https://admin-shell.io/aas/3/2/RelationshipElement/first * * @return Returns the Reference for the property first. @@ -42,7 +43,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. - * + *

* More information under https://admin-shell.io/aas/3/2/RelationshipElement/first * * @param first desired value for the property first. @@ -51,7 +52,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. - * + *

* More information under https://admin-shell.io/aas/3/2/RelationshipElement/second * * @return Returns the Reference for the property second. @@ -61,7 +62,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. - * + *

* More information under https://admin-shell.io/aas/3/2/RelationshipElement/second * * @param second desired value for the property second. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 2135cf3b8..0a790235b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * absolute or relative path */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResource.class) + @KnownSubtypes.Type(value = DefaultResource.class) }) public interface Resource { /** * Path and name of the resource (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/2/Resource/path * * @return Returns the String for the property path. @@ -41,7 +42,7 @@ public interface Resource { /** * Path and name of the resource (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/2/Resource/path * * @param path desired value for the property path. @@ -50,7 +51,7 @@ public interface Resource { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/2/Resource/contentType * * @return Returns the String for the property contentType. @@ -60,7 +61,7 @@ public interface Resource { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/2/Resource/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java new file mode 100644 index 000000000..a50330de9 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResult; + +import java.util.List; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultResult.class) +}) +public interface Result { + + /** + * + * More information under https://admin-shell.io/aas/3/2/Result/messages + * + * @return Returns the List of Messages for the property messages. + */ + @IRI("https://admin-shell.io/aas/3/2/Result/messages") + List getMessages(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Result/messages + * + * @param messages desired value for the property messages. + */ + void setMessages(List messages); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Result/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/2/Result/success") + boolean getSuccess(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/Result/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index 5e48eaa94..9c990f205 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +25,13 @@ * A specific asset ID describes a generic supplementary identifying attribute of the asset. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) + @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) }) public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier - * + *

* More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name * * @return Returns the String for the property name. @@ -40,7 +41,7 @@ public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier - * + *

* More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name * * @param name desired value for the property name. @@ -49,7 +50,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. - * + *

* More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value * * @return Returns the String for the property value. @@ -59,7 +60,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. - * + *

* More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value * * @param value desired value for the property value. @@ -68,7 +69,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. - * + *

* More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId * * @return Returns the Reference for the property externalSubjectId. @@ -78,7 +79,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. - * + *

* More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId * * @param externalSubjectId desired value for the property externalSubjectId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index d61904151..3fe0ebf10 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,6 +35,6 @@ public enum StateOfEvent { * Event is on */ @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") - ON; + ON } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index 8282b06d7..35648d75d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * A submodel defines a specific aspect of the asset represented by the AAS. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodel.class) + @KnownSubtypes.Type(value = DefaultSubmodel.class) }) -public interface Submodel extends HasDataSpecification, HasKind, HasSemantics, Identifiable, Qualifiable { +public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { /** * A submodel consists of zero or more submodel elements. - * + *

* More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements * * @return Returns the List of SubmodelElements for the property submodelElements. @@ -41,7 +42,7 @@ public interface Submodel extends HasDataSpecification, HasKind, HasSemantics, I /** * A submodel consists of zero or more submodel elements. - * + *

* More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements * * @param submodelElements desired value for the property submodelElements. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java new file mode 100644 index 000000000..feb4c9bd0 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) +}) +public interface SubmodelDescriptor extends Descriptor { + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description + * + * @return Returns the LangStringTextType for the property description. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") + LangStringTextType getDescription(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description + * + * @param description desired value for the property description. + */ + void setDescription(LangStringTextType description); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName + * + * @return Returns the LangStringNameType for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") + LangStringNameType getDisplayName(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName + * + * @param displayName desired value for the property displayName. + */ + void setDisplayName(LangStringNameType displayName); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") + String getIdShort(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification + * + * @return Returns the String for the property identification. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") + String getIdentification(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification + * + * @param identification desired value for the property identification. + */ + void setIdentification(String identification); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + Reference getSemanticId(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index f5af4ee19..d8baaa2d5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,15 +23,15 @@ * A submodel element is an element suitable for the description and differentiation of assets. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) -public interface SubmodelElement extends HasDataSpecification, HasSemantics, Qualifiable, Referable { +public interface SubmodelElement extends Referable, HasDataSpecification, HasSemantics, Qualifiable { } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java new file mode 100644 index 000000000..ecdb72bf2 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementAttributes; + + +/** + * + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) +}) +public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") + ModellingKind getKind(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index 5aba5712f..665675922 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +27,13 @@ * named values. It has a fixed number of submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) }) public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * * @return Returns the List of SubmodelElements for the property values. @@ -42,7 +43,7 @@ public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * * @param values desired value for the property values. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index 764029e7c..e4bcb8175 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,14 +26,14 @@ * A submodel element list is an ordered list of submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) }) public interface SubmodelElementList extends SubmodelElement { /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant * * @return Returns the boolean for the property orderRelevant. @@ -43,7 +44,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant * * @param orderRelevant desired value for the property orderRelevant. @@ -52,7 +53,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Semantic ID the submodel elements contained in the list match to. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement * * @return Returns the Reference for the property semanticIdListElement. @@ -62,7 +63,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Semantic ID the submodel elements contained in the list match to. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement * * @param semanticIdListElement desired value for the property semanticIdListElement. @@ -71,7 +72,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The submodel element type of the submodel elements contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement * * @return Returns the AasSubmodelElements for the property typeValueListElement. @@ -81,7 +82,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The submodel element type of the submodel elements contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement * * @param typeValueListElement desired value for the property typeValueListElement. @@ -90,7 +91,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The value type of the submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement * * @return Returns the DataTypeDefXsd for the property valueTypeListElement. @@ -100,7 +101,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The value type of the submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement * * @param valueTypeListElement desired value for the property valueTypeListElement. @@ -109,7 +110,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * * @return Returns the List of SubmodelElements for the property values. @@ -119,7 +120,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * * @param values desired value for the property values. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 8dc92a8fe..8dfb15e8b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * A set of value reference pairs. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueList.class) + @KnownSubtypes.Type(value = DefaultValueList.class) }) public interface ValueList { /** * A pair of a value together with its global unique id. - * + *

* More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs * * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. @@ -41,7 +42,7 @@ public interface ValueList { /** * A pair of a value together with its global unique id. - * + *

* More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs * * @param valueReferencePairs desired value for the property valueReferencePairs. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index e0c1f47ea..b4ce5508b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +26,13 @@ * semantic. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueReferencePair.class) + @KnownSubtypes.Type(value = DefaultValueReferencePair.class) }) public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. - * + *

* More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value * * @return Returns the String for the property value. @@ -41,7 +42,7 @@ public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. - * + *

* More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value * * @param value desired value for the property value. @@ -50,7 +51,7 @@ public interface ValueReferencePair { /** * Global unique id of the value. - * + *

* More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId * * @return Returns the Reference for the property valueId. @@ -60,7 +61,7 @@ public interface ValueReferencePair { /** * Global unique id of the value. - * + *

* More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index a16de81f0..412c61875 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,8 +25,8 @@ * This annotation stores the IRI under which a certain element of a model is defined. Expected * behaviour when de-referencing the value of this annotation is a definition and further * information about this element. - * + * * @return IRI defining an element */ - public String[] value() default {}; + String[] value() default {}; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index b9c48be22..9c3b6268a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,12 +25,12 @@ * This element stores the known sub-types, e.g. implementing classes of an interface, or extending * classes of a class. Note that this list can never be expected to be complete, as custom * implementations will not be included. - * + * * @return List of known implementing subtypes */ - public KnownSubtypes.Type[] value(); + KnownSubtypes.Type[] value(); - public @interface Type { + @interface Type { Class value(); String name() default ""; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index 283f216a7..57413d4c0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index e3e061f89..5ab2438b7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,11 +24,11 @@ public abstract class AdministrativeInformationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for createdAt - * + * * @param createdAt desired value to be set * @return Builder object with new value for createdAt */ @@ -38,7 +39,7 @@ public B createdAt(XMLGregorianCalendar createdAt) { /** * This function allows setting a value for version - * + * * @param version desired value to be set * @return Builder object with new value for version */ @@ -49,7 +50,7 @@ public B version(String version) { /** * This function allows setting a value for revision - * + * * @param revision desired value to be set * @return Builder object with new value for revision */ @@ -60,7 +61,7 @@ public B revision(String revision) { /** * This function allows setting a value for creator - * + * * @param creator desired value to be set * @return Builder object with new value for creator */ @@ -71,7 +72,7 @@ public B creator(Reference creator) { /** * This function allows setting a value for templateId - * + * * @param templateId desired value to be set * @return Builder object with new value for templateId */ @@ -82,7 +83,7 @@ public B templateId(String templateId) { /** * This function allows setting a value for updatedAt - * + * * @param updatedAt desired value to be set * @return Builder object with new value for updatedAt */ @@ -93,7 +94,7 @@ public B updatedAt(XMLGregorianCalendar updatedAt) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -104,7 +105,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index e472b1844..5e81decb6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +28,11 @@ public abstract class AnnotatedRelationshipElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for annotations - * + * * @param annotations desired value to be set * @return Builder object with new value for annotations */ @@ -42,7 +43,7 @@ public B annotations(List annotations) { /** * This function allows adding a value to the List annotations - * + * * @param annotations desired value to be added * @return Builder object with new value for annotations */ @@ -53,7 +54,7 @@ public B annotations(DataElement annotations) { /** * This function allows setting a value for first - * + * * @param first desired value to be set * @return Builder object with new value for first */ @@ -64,7 +65,7 @@ public B first(Reference first) { /** * This function allows setting a value for second - * + * * @param second desired value to be set * @return Builder object with new value for second */ @@ -73,86 +74,9 @@ public B second(Reference second) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -163,7 +87,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -174,7 +98,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -185,7 +109,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -196,7 +120,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -207,7 +131,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -218,7 +142,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -229,7 +153,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -237,4 +161,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index 300deb1d9..109573b68 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +28,11 @@ public abstract class AssetAdministrationShellBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for derivedFrom - * + * * @param derivedFrom desired value to be set * @return Builder object with new value for derivedFrom */ @@ -42,7 +43,7 @@ public B derivedFrom(Reference derivedFrom) { /** * This function allows setting a value for assetInformation - * + * * @param assetInformation desired value to be set * @return Builder object with new value for assetInformation */ @@ -53,7 +54,7 @@ public B assetInformation(AssetInformation assetInformation) { /** * This function allows setting a value for submodels - * + * * @param submodels desired value to be set * @return Builder object with new value for submodels */ @@ -64,7 +65,7 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels - * + * * @param submodels desired value to be added * @return Builder object with new value for submodels */ @@ -75,7 +76,7 @@ public B submodels(Reference submodels) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -86,7 +87,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -97,7 +98,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -108,7 +109,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -119,7 +120,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -130,7 +131,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -141,7 +142,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -152,7 +153,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -163,7 +164,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -174,7 +175,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -185,7 +186,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -196,7 +197,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java new file mode 100644 index 000000000..f769fa987 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; + +import java.util.List; + + +public abstract class AssetAdministrationShellDescriptorBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param description desired value to be set + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().setDescription(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayName desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().setDisplayName(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(Reference globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for identification + * + * @param identification desired value to be set + * @return Builder object with new value for identification + */ + public B identification(String identification) { + getBuildingInstance().setIdentification(identification); + return getSelf(); + } + + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } + + /** + * This function allows setting a value for submodelDescriptors + * + * @param submodelDescriptors desired value to be set + * @return Builder object with new value for submodelDescriptors + */ + public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { + getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java new file mode 100644 index 000000000..9d9592426 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; +import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; +import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; + +import java.util.List; + + +public abstract class AssetAdministrationShellEnvironmentBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for assetAdministrationShells + * + * @param assetAdministrationShells desired value to be set + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(List assetAdministrationShells) { + getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); + return getSelf(); + } + + /** + * This function allows adding a value to the List assetAdministrationShells + * + * @param assetAdministrationShells desired value to be added + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + return getSelf(); + } + + /** + * This function allows setting a value for conceptDescriptions + * + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List conceptDescriptions + * + * @param conceptDescriptions desired value to be added + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(ConceptDescription conceptDescriptions) { + getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + return getSelf(); + } + + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Submodel submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 3b5d3e421..150e5e502 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,11 +24,11 @@ public abstract class AssetInformationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for assetKind - * + * * @param assetKind desired value to be set * @return Builder object with new value for assetKind */ @@ -38,7 +39,7 @@ public B assetKind(AssetKind assetKind) { /** * This function allows setting a value for globalAssetId - * + * * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ @@ -49,7 +50,7 @@ public B globalAssetId(String globalAssetId) { /** * This function allows setting a value for specificAssetIds - * + * * @param specificAssetIds desired value to be set * @return Builder object with new value for specificAssetIds */ @@ -60,7 +61,7 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds - * + * * @param specificAssetIds desired value to be added * @return Builder object with new value for specificAssetIds */ @@ -71,7 +72,7 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { /** * This function allows setting a value for assetType - * + * * @param assetType desired value to be set * @return Builder object with new value for assetType */ @@ -82,7 +83,7 @@ public B assetType(String assetType) { /** * This function allows setting a value for defaultThumbnail - * + * * @param defaultThumbnail desired value to be set * @return Builder object with new value for defaultThumbnail */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index 138692f6a..a4406e40d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,11 +29,11 @@ public abstract class BasicEventElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for observed - * + * * @param observed desired value to be set * @return Builder object with new value for observed */ @@ -43,7 +44,7 @@ public B observed(Reference observed) { /** * This function allows setting a value for direction - * + * * @param direction desired value to be set * @return Builder object with new value for direction */ @@ -54,7 +55,7 @@ public B direction(Direction direction) { /** * This function allows setting a value for state - * + * * @param state desired value to be set * @return Builder object with new value for state */ @@ -65,7 +66,7 @@ public B state(StateOfEvent state) { /** * This function allows setting a value for messageTopic - * + * * @param messageTopic desired value to be set * @return Builder object with new value for messageTopic */ @@ -76,7 +77,7 @@ public B messageTopic(String messageTopic) { /** * This function allows setting a value for messageBroker - * + * * @param messageBroker desired value to be set * @return Builder object with new value for messageBroker */ @@ -87,7 +88,7 @@ public B messageBroker(Reference messageBroker) { /** * This function allows setting a value for lastUpdate - * + * * @param lastUpdate desired value to be set * @return Builder object with new value for lastUpdate */ @@ -98,7 +99,7 @@ public B lastUpdate(String lastUpdate) { /** * This function allows setting a value for minInterval - * + * * @param minInterval desired value to be set * @return Builder object with new value for minInterval */ @@ -109,7 +110,7 @@ public B minInterval(String minInterval) { /** * This function allows setting a value for maxInterval - * + * * @param maxInterval desired value to be set * @return Builder object with new value for maxInterval */ @@ -118,86 +119,9 @@ public B maxInterval(String maxInterval) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -208,7 +132,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -219,7 +143,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -230,7 +154,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -241,7 +165,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -252,7 +176,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -263,7 +187,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -274,7 +198,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -282,4 +206,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index 41376e105..f598c14b4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +30,7 @@ public abstract class BlobBuilder> e /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -40,7 +41,7 @@ public B value(byte[] value) { /** * This function allows setting a value for contentType - * + * * @param contentType desired value to be set * @return Builder object with new value for contentType */ @@ -49,86 +50,9 @@ public B contentType(String contentType) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -139,7 +63,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -150,7 +74,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -161,7 +85,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -172,7 +96,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -183,7 +107,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -194,7 +118,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -205,7 +129,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -213,4 +137,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index 7e27dad1f..dd31c9bd2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,6 +17,6 @@ public interface Builder { - public T build(); + T build(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index ab4339352..99dfe503f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,86 +28,9 @@ public abstract class CapabilityBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -117,7 +41,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -128,7 +52,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -139,7 +63,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -150,7 +74,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -161,7 +85,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -172,7 +96,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -183,7 +107,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -191,4 +115,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 6067660bd..016467724 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,11 +27,11 @@ public abstract class ConceptDescriptionBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for isCaseOfs - * + * * @param isCaseOfs desired value to be set * @return Builder object with new value for isCaseOfs */ @@ -41,7 +42,7 @@ public B isCaseOfs(List isCaseOfs) { /** * This function allows adding a value to the List isCaseOfs - * + * * @param isCaseOf desired value to be added * @return Builder object with new value for isCaseOfs */ @@ -52,7 +53,7 @@ public B isCaseOf(Reference isCaseOf) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -63,7 +64,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -74,7 +75,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -85,7 +86,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -96,7 +97,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -107,7 +108,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -118,7 +119,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -129,7 +130,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -140,7 +141,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -151,7 +152,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -162,7 +163,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -173,7 +174,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 7503a7f1e..5923c63c2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +28,11 @@ public abstract class DataSpecificationIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for preferredNames - * + * * @param preferredNames desired value to be set * @return Builder object with new value for preferredNames */ @@ -42,7 +43,7 @@ public B preferredNames(List preferredNames /** * This function allows adding a value to the List preferredNames - * + * * @param preferredName desired value to be added * @return Builder object with new value for preferredNames */ @@ -53,7 +54,7 @@ public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { /** * This function allows setting a value for shortNames - * + * * @param shortNames desired value to be set * @return Builder object with new value for shortNames */ @@ -64,7 +65,7 @@ public B shortNames(List shortNames) { /** * This function allows adding a value to the List shortNames - * + * * @param shortName desired value to be added * @return Builder object with new value for shortNames */ @@ -75,7 +76,7 @@ public B shortName(LangStringShortNameTypeIec61360 shortName) { /** * This function allows setting a value for unit - * + * * @param unit desired value to be set * @return Builder object with new value for unit */ @@ -86,7 +87,7 @@ public B unit(String unit) { /** * This function allows setting a value for unitId - * + * * @param unitId desired value to be set * @return Builder object with new value for unitId */ @@ -97,7 +98,7 @@ public B unitId(Reference unitId) { /** * This function allows setting a value for sourceOfDefinition - * + * * @param sourceOfDefinition desired value to be set * @return Builder object with new value for sourceOfDefinition */ @@ -108,7 +109,7 @@ public B sourceOfDefinition(String sourceOfDefinition) { /** * This function allows setting a value for symbol - * + * * @param symbol desired value to be set * @return Builder object with new value for symbol */ @@ -119,7 +120,7 @@ public B symbol(String symbol) { /** * This function allows setting a value for dataType - * + * * @param dataType desired value to be set * @return Builder object with new value for dataType */ @@ -130,7 +131,7 @@ public B dataType(DataTypeIec61360 dataType) { /** * This function allows setting a value for definitions - * + * * @param definitions desired value to be set * @return Builder object with new value for definitions */ @@ -141,7 +142,7 @@ public B definitions(List definitions) { /** * This function allows adding a value to the List definitions - * + * * @param definition desired value to be added * @return Builder object with new value for definitions */ @@ -152,7 +153,7 @@ public B definition(LangStringDefinitionTypeIec61360 definition) { /** * This function allows setting a value for valueFormat - * + * * @param valueFormat desired value to be set * @return Builder object with new value for valueFormat */ @@ -163,7 +164,7 @@ public B valueFormat(String valueFormat) { /** * This function allows setting a value for valueList - * + * * @param valueList desired value to be set * @return Builder object with new value for valueList */ @@ -174,7 +175,7 @@ public B valueList(ValueList valueList) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -185,7 +186,7 @@ public B value(String value) { /** * This function allows setting a value for levelType - * + * * @param levelType desired value to be set * @return Builder object with new value for levelType */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java new file mode 100644 index 000000000..aafdc8623 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; + +import java.util.List; + + +public abstract class DescriptorBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index f88b3561e..7069d6160 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,11 +22,11 @@ public abstract class EmbeddedDataSpecificationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for dataSpecification - * + * * @param dataSpecification desired value to be set * @return Builder object with new value for dataSpecification */ @@ -36,7 +37,7 @@ public B dataSpecification(Reference dataSpecification) { /** * This function allows setting a value for dataSpecificationContent - * + * * @param dataSpecificationContent desired value to be set * @return Builder object with new value for dataSpecificationContent */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java new file mode 100644 index 000000000..0464ce542 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + + +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; + + +public abstract class EndpointBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for _interface + * + * @param _interface desired value to be set + * @return Builder object with new value for _interface + */ + public B _interface(String _interface) { + getBuildingInstance().set_interface(_interface); + return getSelf(); + } + + /** + * This function allows setting a value for protocolInformation + * + * @param protocolInformation desired value to be set + * @return Builder object with new value for protocolInformation + */ + public B protocolInformation(ProtocolInformation protocolInformation) { + getBuildingInstance().setProtocolInformation(protocolInformation); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index 79b8de79b..3a42d949a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ public abstract class EntityBuilder statements) { /** * This function allows adding a value to the List statements - * + * * @param statements desired value to be added * @return Builder object with new value for statements */ @@ -54,7 +55,7 @@ public B statements(SubmodelElement statements) { /** * This function allows setting a value for entityType - * + * * @param entityType desired value to be set * @return Builder object with new value for entityType */ @@ -65,7 +66,7 @@ public B entityType(EntityType entityType) { /** * This function allows setting a value for globalAssetId - * + * * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ @@ -76,7 +77,7 @@ public B globalAssetId(String globalAssetId) { /** * This function allows setting a value for specificAssetIds - * + * * @param specificAssetIds desired value to be set * @return Builder object with new value for specificAssetIds */ @@ -87,7 +88,7 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds - * + * * @param specificAssetIds desired value to be added * @return Builder object with new value for specificAssetIds */ @@ -96,86 +97,9 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -186,7 +110,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -197,7 +121,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -208,7 +132,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -219,7 +143,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -230,7 +154,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -241,7 +165,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -252,7 +176,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -260,4 +184,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 8bce2ad09..14f48bda5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +27,7 @@ public abstract class EnvironmentBuilder assetAdministr /** * This function allows adding a value to the List assetAdministrationShells - * + * * @param assetAdministrationShells desired value to be added * @return Builder object with new value for assetAdministrationShells */ @@ -48,7 +49,7 @@ public B assetAdministrationShells(AssetAdministrationShell assetAdministrationS /** * This function allows setting a value for submodels - * + * * @param submodels desired value to be set * @return Builder object with new value for submodels */ @@ -59,7 +60,7 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels - * + * * @param submodels desired value to be added * @return Builder object with new value for submodels */ @@ -70,7 +71,7 @@ public B submodels(Submodel submodels) { /** * This function allows setting a value for conceptDescriptions - * + * * @param conceptDescriptions desired value to be set * @return Builder object with new value for conceptDescriptions */ @@ -81,7 +82,7 @@ public B conceptDescriptions(List conceptDescriptions) { /** * This function allows adding a value to the List conceptDescriptions - * + * * @param conceptDescriptions desired value to be added * @return Builder object with new value for conceptDescriptions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index fee992815..abf55f73d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ public abstract class EventPayloadBuilder refersTos) { /** * This function allows adding a value to the List refersTos - * + * * @param refersTo desired value to be added * @return Builder object with new value for refersTos */ @@ -80,7 +81,7 @@ public B refersTo(Reference refersTo) { /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -91,7 +92,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -102,7 +103,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index 578ec3c68..a5d37642d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +30,7 @@ public abstract class FileBuilder> e /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -40,7 +41,7 @@ public B value(String value) { /** * This function allows setting a value for contentType - * + * * @param contentType desired value to be set * @return Builder object with new value for contentType */ @@ -49,86 +50,9 @@ public B contentType(String contentType) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -139,7 +63,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -150,7 +74,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -161,7 +85,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -172,7 +96,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -183,7 +107,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -194,7 +118,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -205,7 +129,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -213,4 +137,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index f04e9a96c..2b5ccfa17 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ public abstract class KeyBuilder> exte /** * This function allows setting a value for type - * + * * @param type desired value to be set * @return Builder object with new value for type */ @@ -34,7 +35,7 @@ public B type(KeyTypes type) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index 29b8d3f92..b52fe88bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,11 +20,11 @@ public abstract class LangStringDefinitionTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -34,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index 8b541147d..6754ad53c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,11 +20,11 @@ public abstract class LangStringNameTypeBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -34,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index dedd6c541..a014efc40 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,11 +20,11 @@ public abstract class LangStringPreferredNameTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -34,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 697ef25fc..0fa7262db 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,11 +20,11 @@ public abstract class LangStringShortNameTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -34,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index b84b045d8..291d5aa07 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,11 +20,11 @@ public abstract class LangStringTextTypeBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -34,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index 53ac90860..ff9c38d8f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,7 +23,7 @@ public abstract class LevelTypeBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for code + * + * @param code desired value to be set + * @return Builder object with new value for code + */ + public B code(String code) { + getBuildingInstance().setCode(code); + return getSelf(); + } + + /** + * This function allows setting a value for messageType + * + * @param messageType desired value to be set + * @return Builder object with new value for messageType + */ + public B messageType(MessageType messageType) { + getBuildingInstance().setMessageType(messageType); + return getSelf(); + } + + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } + + /** + * This function allows setting a value for timestamp + * + * @param timestamp desired value to be set + * @return Builder object with new value for timestamp + */ + public B timestamp(String timestamp) { + getBuildingInstance().setTimestamp(timestamp); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index c25e8eb97..225eb33fa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,11 +27,11 @@ public abstract class MultiLanguagePropertyBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for values - * + * * @param values desired value to be set * @return Builder object with new value for values */ @@ -41,7 +42,7 @@ public B values(List values) { /** * This function allows adding a value to the List values - * + * * @param value desired value to be added * @return Builder object with new value for values */ @@ -52,7 +53,7 @@ public B value(LangStringTextType value) { /** * This function allows setting a value for valueId - * + * * @param valueId desired value to be set * @return Builder object with new value for valueId */ @@ -61,86 +62,9 @@ public B valueId(Reference valueId) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -151,7 +75,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -162,7 +86,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -173,7 +97,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -184,7 +108,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -195,7 +119,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -206,7 +130,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -217,7 +141,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -225,4 +149,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index bac1f2b2b..669a42b23 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,7 +31,7 @@ public abstract class OperationBuilder inputVariables) { /** * This function allows adding a value to the List inputVariables - * + * * @param inputVariables desired value to be added * @return Builder object with new value for inputVariables */ @@ -52,7 +53,7 @@ public B inputVariables(OperationVariable inputVariables) { /** * This function allows setting a value for outputVariables - * + * * @param outputVariables desired value to be set * @return Builder object with new value for outputVariables */ @@ -63,7 +64,7 @@ public B outputVariables(List outputVariables) { /** * This function allows adding a value to the List outputVariables - * + * * @param outputVariables desired value to be added * @return Builder object with new value for outputVariables */ @@ -74,7 +75,7 @@ public B outputVariables(OperationVariable outputVariables) { /** * This function allows setting a value for inoutputVariables - * + * * @param inoutputVariables desired value to be set * @return Builder object with new value for inoutputVariables */ @@ -85,7 +86,7 @@ public B inoutputVariables(List inoutputVariables) { /** * This function allows adding a value to the List inoutputVariables - * + * * @param inoutputVariables desired value to be added * @return Builder object with new value for inoutputVariables */ @@ -94,86 +95,9 @@ public B inoutputVariables(OperationVariable inoutputVariables) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -184,7 +108,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -195,7 +119,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -206,7 +130,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -217,7 +141,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -228,7 +152,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -239,7 +163,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -250,7 +174,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -258,4 +182,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java new file mode 100644 index 000000000..37d9e9810 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + + +import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; + + +public abstract class OperationHandleBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for handleId + * + * @param handleId desired value to be set + * @return Builder object with new value for handleId + */ + public B handleId(String handleId) { + getBuildingInstance().setHandleId(handleId); + return getSelf(); + } + + /** + * This function allows setting a value for requestId + * + * @param requestId desired value to be set + * @return Builder object with new value for requestId + */ + public B requestId(String requestId) { + getBuildingInstance().setRequestId(requestId); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java new file mode 100644 index 000000000..537dad41d --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; +import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; + +import java.math.BigInteger; + + +public abstract class OperationRequestBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } + + /** + * This function allows setting a value for inputArguments + * + * @param inputArguments desired value to be set + * @return Builder object with new value for inputArguments + */ + public B inputArguments(OperationVariable inputArguments) { + getBuildingInstance().setInputArguments(inputArguments); + return getSelf(); + } + + /** + * This function allows setting a value for requestId + * + * @param requestId desired value to be set + * @return Builder object with new value for requestId + */ + public B requestId(String requestId) { + getBuildingInstance().setRequestId(requestId); + return getSelf(); + } + + /** + * This function allows setting a value for timeout + * + * @param timeout desired value to be set + * @return Builder object with new value for timeout + */ + public B timeout(BigInteger timeout) { + getBuildingInstance().setTimeout(timeout); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java new file mode 100644 index 000000000..fe039bfbe --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; +import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; +import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import org.eclipse.digitaltwin.aas4j.v3.model.Result; + +import java.util.List; + + +public abstract class OperationResultBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for executionResults + * + * @param executionResults desired value to be set + * @return Builder object with new value for executionResults + */ + public B executionResults(List executionResults) { + getBuildingInstance().setExecutionResults(executionResults); + return getSelf(); + } + + /** + * This function allows adding a value to the List executionResults + * + * @param executionResult desired value to be added + * @return Builder object with new value for executionResults + */ + public B executionResult(Result executionResult) { + getBuildingInstance().getExecutionResults().add(executionResult); + return getSelf(); + } + + /** + * This function allows setting a value for executionStates + * + * @param executionStates desired value to be set + * @return Builder object with new value for executionStates + */ + public B executionStates(List executionStates) { + getBuildingInstance().setExecutionStates(executionStates); + return getSelf(); + } + + /** + * This function allows adding a value to the List executionStates + * + * @param executionState desired value to be added + * @return Builder object with new value for executionStates + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().getExecutionStates().add(executionState); + return getSelf(); + } + + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(List inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } + + /** + * This function allows adding a value to the List inoutputArguments + * + * @param inoutputArguments desired value to be added + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().getInoutputArguments().add(inoutputArguments); + return getSelf(); + } + + /** + * This function allows setting a value for outputArguments + * + * @param outputArguments desired value to be set + * @return Builder object with new value for outputArguments + */ + public B outputArguments(List outputArguments) { + getBuildingInstance().setOutputArguments(outputArguments); + return getSelf(); + } + + /** + * This function allows adding a value to the List outputArguments + * + * @param outputArguments desired value to be added + * @return Builder object with new value for outputArguments + */ + public B outputArguments(OperationVariable outputArguments) { + getBuildingInstance().getOutputArguments().add(outputArguments); + return getSelf(); + } + + /** + * This function allows setting a value for requestIds + * + * @param requestIds desired value to be set + * @return Builder object with new value for requestIds + */ + public B requestIds(List requestIds) { + getBuildingInstance().setRequestIds(requestIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List requestIds + * + * @param requestId desired value to be added + * @return Builder object with new value for requestIds + */ + public B requestId(String requestId) { + getBuildingInstance().getRequestIds().add(requestId); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index 790ee3960..63fba1b7e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +21,11 @@ public abstract class OperationVariableBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java new file mode 100644 index 000000000..3c4d9923f --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; + +import java.util.List; + + +public abstract class PackageDescriptionBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for items + * + * @param items desired value to be set + * @return Builder object with new value for items + */ + public B items(List items) { + getBuildingInstance().setItems(items); + return getSelf(); + } + + /** + * This function allows adding a value to the List items + * + * @param items desired value to be added + * @return Builder object with new value for items + */ + public B items(String items) { + getBuildingInstance().getItems().add(items); + return getSelf(); + } + + /** + * This function allows setting a value for packageId + * + * @param packageId desired value to be set + * @return Builder object with new value for packageId + */ + public B packageId(String packageId) { + getBuildingInstance().setPackageId(packageId); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index 7065ccb8e..d6387d3f3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,7 +31,7 @@ public abstract class PropertyBuilder embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -151,7 +75,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -162,7 +86,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -173,7 +97,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -184,7 +108,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -195,7 +119,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -206,7 +130,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -217,7 +141,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -225,4 +149,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java new file mode 100644 index 000000000..177b41b95 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + + +import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; + + +public abstract class ProtocolInformationBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for endpointAddress + * + * @param endpointAddress desired value to be set + * @return Builder object with new value for endpointAddress + */ + public B endpointAddress(String endpointAddress) { + getBuildingInstance().setEndpointAddress(endpointAddress); + return getSelf(); + } + + /** + * This function allows setting a value for endpointProtocol + * + * @param endpointProtocol desired value to be set + * @return Builder object with new value for endpointProtocol + */ + public B endpointProtocol(String endpointProtocol) { + getBuildingInstance().setEndpointProtocol(endpointProtocol); + return getSelf(); + } + + /** + * This function allows setting a value for endpointProtocolVersion + * + * @param endpointProtocolVersion desired value to be set + * @return Builder object with new value for endpointProtocolVersion + */ + public B endpointProtocolVersion(String endpointProtocolVersion) { + getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); + return getSelf(); + } + + /** + * This function allows setting a value for subprotocol + * + * @param subprotocol desired value to be set + * @return Builder object with new value for subprotocol + */ + public B subprotocol(String subprotocol) { + getBuildingInstance().setSubprotocol(subprotocol); + return getSelf(); + } + + /** + * This function allows setting a value for subprotocolBody + * + * @param subprotocolBody desired value to be set + * @return Builder object with new value for subprotocolBody + */ + public B subprotocolBody(String subprotocolBody) { + getBuildingInstance().setSubprotocolBody(subprotocolBody); + return getSelf(); + } + + /** + * This function allows setting a value for subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value to be set + * @return Builder object with new value for subprotocolBodyEncoding + */ + public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { + getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index 61ad5462b..c09c5be3d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +27,7 @@ public abstract class QualifierBuilder supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index d77b4c863..3327e907d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,7 +31,7 @@ public abstract class RangeBuilder /** * This function allows setting a value for valueType - * + * * @param valueType desired value to be set * @return Builder object with new value for valueType */ @@ -41,7 +42,7 @@ public B valueType(DataTypeDefXsd valueType) { /** * This function allows setting a value for min - * + * * @param min desired value to be set * @return Builder object with new value for min */ @@ -52,7 +53,7 @@ public B min(String min) { /** * This function allows setting a value for max - * + * * @param max desired value to be set * @return Builder object with new value for max */ @@ -61,86 +62,9 @@ public B max(String max) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -151,7 +75,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -162,7 +86,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -173,7 +97,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -184,7 +108,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -195,7 +119,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -206,7 +130,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -217,7 +141,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -225,4 +149,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index 2ee600835..436cd1c49 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +26,7 @@ public abstract class ReferenceBuilder keys) { /** * This function allows adding a value to the List keys - * + * * @param keys desired value to be added * @return Builder object with new value for keys */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index 43ba72e7d..b5e0c1d35 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,11 +27,11 @@ public abstract class ReferenceElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -39,86 +40,9 @@ public B value(Reference value) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -129,7 +53,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -140,7 +64,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -151,7 +75,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -162,7 +86,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -173,7 +97,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -184,7 +108,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -195,7 +119,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -203,4 +127,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index b4fd77f8c..b3d860393 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,11 +27,11 @@ public abstract class RelationshipElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for first - * + * * @param first desired value to be set * @return Builder object with new value for first */ @@ -41,7 +42,7 @@ public B first(Reference first) { /** * This function allows setting a value for second - * + * * @param second desired value to be set * @return Builder object with new value for second */ @@ -50,86 +51,9 @@ public B second(Reference second) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -140,7 +64,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -151,7 +75,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -162,7 +86,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -173,7 +97,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -184,7 +108,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -195,7 +119,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -206,7 +130,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -214,4 +138,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index 1474e3637..a3d21252b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,7 +23,7 @@ public abstract class ResourceBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for messages + * + * @param messages desired value to be set + * @return Builder object with new value for messages + */ + public B messages(List messages) { + getBuildingInstance().setMessages(messages); + return getSelf(); + } + + /** + * This function allows adding a value to the List messages + * + * @param messages desired value to be added + * @return Builder object with new value for messages + */ + public B messages(Message messages) { + getBuildingInstance().getMessages().add(messages); + return getSelf(); + } + + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index 94a067bb0..120d5933e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,11 +22,11 @@ public abstract class SpecificAssetIdBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for name - * + * * @param name desired value to be set * @return Builder object with new value for name */ @@ -36,7 +37,7 @@ public B name(String name) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -47,7 +48,7 @@ public B value(String value) { /** * This function allows setting a value for externalSubjectId - * + * * @param externalSubjectId desired value to be set * @return Builder object with new value for externalSubjectId */ @@ -58,7 +59,7 @@ public B externalSubjectId(Reference externalSubjectId) { /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -69,7 +70,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -80,7 +81,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index 10c9cb24a..0bf610e4e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ public abstract class SubmodelBuilder submodelElements) { /** * This function allows adding a value to the List submodelElements - * + * * @param submodelElements desired value to be added * @return Builder object with new value for submodelElements */ @@ -54,7 +55,7 @@ public B submodelElements(SubmodelElement submodelElements) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -65,7 +66,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -74,20 +75,9 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif return getSelf(); } - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -98,7 +88,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -109,7 +99,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -118,9 +108,42 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { return getSelf(); } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -131,7 +154,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -142,7 +165,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -153,7 +176,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -164,7 +187,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -175,7 +198,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -186,7 +209,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -197,7 +220,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -208,7 +231,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -219,7 +242,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -227,26 +250,4 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java new file mode 100644 index 000000000..f4f4c88ce --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; + +import java.util.List; + + +public abstract class SubmodelDescriptorBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param description desired value to be set + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().setDescription(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayName desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().setDisplayName(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for identification + * + * @param identification desired value to be set + * @return Builder object with new value for identification + */ + public B identification(String identification) { + getBuildingInstance().setIdentification(identification); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java new file mode 100644 index 000000000..c8b72694a --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.ModellingKind; +import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes; + +import java.util.List; + + +public abstract class SubmodelElementAttributesBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index 6961f05d0..a2b6e27d7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +28,11 @@ public abstract class SubmodelElementCollectionBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for values - * + * * @param values desired value to be set * @return Builder object with new value for values */ @@ -42,7 +43,7 @@ public B values(List values) { /** * This function allows adding a value to the List values - * + * * @param value desired value to be added * @return Builder object with new value for values */ @@ -51,86 +52,9 @@ public B value(SubmodelElement value) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -141,7 +65,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -152,7 +76,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -163,7 +87,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -174,7 +98,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -185,7 +109,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -196,7 +120,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -207,7 +131,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -215,4 +139,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index 0af29cdc1..89d2682bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,11 +30,11 @@ public abstract class SubmodelElementListBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for orderRelevant - * + * * @param orderRelevant desired value to be set * @return Builder object with new value for orderRelevant */ @@ -44,7 +45,7 @@ public B orderRelevant(boolean orderRelevant) { /** * This function allows setting a value for semanticIdListElement - * + * * @param semanticIdListElement desired value to be set * @return Builder object with new value for semanticIdListElement */ @@ -55,7 +56,7 @@ public B semanticIdListElement(Reference semanticIdListElement) { /** * This function allows setting a value for typeValueListElement - * + * * @param typeValueListElement desired value to be set * @return Builder object with new value for typeValueListElement */ @@ -66,7 +67,7 @@ public B typeValueListElement(AasSubmodelElements typeValueListElement) { /** * This function allows setting a value for valueTypeListElement - * + * * @param valueTypeListElement desired value to be set * @return Builder object with new value for valueTypeListElement */ @@ -77,7 +78,7 @@ public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { /** * This function allows setting a value for values - * + * * @param values desired value to be set * @return Builder object with new value for values */ @@ -88,7 +89,7 @@ public B values(List values) { /** * This function allows adding a value to the List values - * + * * @param value desired value to be added * @return Builder object with new value for values */ @@ -97,86 +98,9 @@ public B value(SubmodelElement value) { return getSelf(); } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -187,7 +111,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -198,7 +122,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -209,7 +133,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -220,7 +144,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -231,7 +155,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -242,7 +166,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -253,7 +177,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -261,4 +185,81 @@ public B extensions(Extension extensions) { getBuildingInstance().getExtensions().add(extensions); return getSelf(); } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index 3cc977501..59790cad6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ public abstract class ValueListBuilder valueReferencePairs) { /** * This function allows adding a value to the List valueReferencePairs - * + * * @param valueReferencePairs desired value to be added * @return Builder object with new value for valueReferencePairs */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index 2f75e4854..c677d25cb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +21,11 @@ public abstract class ValueReferencePairBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -35,7 +36,7 @@ public B value(String value) { /** * This function allows setting a value for valueId - * + * * @param valueId desired value to be set * @return Builder object with new value for valueId */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index 2c8d8bc58..dab634545 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +30,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation - * + *

* Administrative meta-information for an element like version information. */ @@ -57,30 +58,31 @@ public class DefaultAdministrativeInformation implements AdministrativeInformati @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - public DefaultAdministrativeInformation() {} + public DefaultAdministrativeInformation() { + } @Override public String toString() { return "DefaultAdministrativeInformation{" - + "createdAt='" + createdAt + "'," - + "version='" + version + "'," - + "revision='" + revision + "'," - + "creator='" + creator + "'," - + "templateId='" + templateId + "'," - + "updatedAt='" + updatedAt + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "}"; + + "createdAt='" + createdAt + "'," + + "version='" + version + "'," + + "revision='" + revision + "'," + + "creator='" + creator + "'," + + "templateId='" + templateId + "'," + + "updatedAt='" + updatedAt + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.createdAt, - this.version, - this.revision, - this.creator, - this.templateId, - this.updatedAt, - this.embeddedDataSpecifications); + this.version, + this.revision, + this.creator, + this.templateId, + this.updatedAt, + this.embeddedDataSpecifications); } @Override @@ -94,12 +96,12 @@ public boolean equals(Object obj) { } else { DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; return Objects.equals(this.createdAt, other.createdAt) && - Objects.equals(this.version, other.version) && - Objects.equals(this.revision, other.revision) && - Objects.equals(this.creator, other.creator) && - Objects.equals(this.templateId, other.templateId) && - Objects.equals(this.updatedAt, other.updatedAt) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); + Objects.equals(this.version, other.version) && + Objects.equals(this.revision, other.revision) && + Objects.equals(this.creator, other.creator) && + Objects.equals(this.templateId, other.templateId) && + Objects.equals(this.updatedAt, other.updatedAt) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index 90454c25f..7246fc790 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement - * + *

* An annotated relationship element is a relationship element that can be annotated with additional * data elements. */ @@ -77,40 +78,41 @@ public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshi @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") protected Reference second; - public DefaultAnnotatedRelationshipElement() {} + public DefaultAnnotatedRelationshipElement() { + } @Override public String toString() { return "DefaultAnnotatedRelationshipElement{" - + "annotations='" + annotations + "'," - + "first='" + first + "'," - + "second='" + second + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "annotations='" + annotations + "'," + + "first='" + first + "'," + + "second='" + second + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.annotations, - this.first, - this.second, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.first, + this.second, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -124,17 +126,17 @@ public boolean equals(Object obj) { } else { DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; return Objects.equals(this.annotations, other.annotations) && - Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.first, other.first) && + Objects.equals(this.second, other.second) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -169,93 +171,93 @@ public void setSecond(Reference second) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index b118b8802..8bdbb6bd9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell - * + *

* An asset administration shell. */ @@ -72,38 +73,39 @@ public class DefaultAssetAdministrationShell implements AssetAdministrationShell @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultAssetAdministrationShell() {} + public DefaultAssetAdministrationShell() { + } @Override public String toString() { return "DefaultAssetAdministrationShell{" - + "derivedFrom='" + derivedFrom + "'," - + "assetInformation='" + assetInformation + "'," - + "submodels='" + submodels + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "administration='" + administration + "'," - + "id='" + id + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "derivedFrom='" + derivedFrom + "'," + + "assetInformation='" + assetInformation + "'," + + "submodels='" + submodels + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "administration='" + administration + "'," + + "id='" + id + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.derivedFrom, - this.assetInformation, - this.submodels, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.assetInformation, + this.submodels, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); } @Override @@ -117,16 +119,16 @@ public boolean equals(Object obj) { } else { DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; return Objects.equals(this.derivedFrom, other.derivedFrom) && - Objects.equals(this.assetInformation, other.assetInformation) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.assetInformation, other.assetInformation) && + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java new file mode 100644 index 000000000..5e8f36410 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -0,0 +1,228 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellDescriptorBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package + * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor + * + */ + +@IRI("aas:AssetAdministrationShellDescriptor") +public class DefaultAssetAdministrationShellDescriptor implements AssetAdministrationShellDescriptor { + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") + protected LangStringTextType description; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + protected LangStringNameType displayName; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + protected Reference globalAssetId; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") + protected String identification; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") + protected SubmodelDescriptor submodelDescriptors; + + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + public DefaultAssetAdministrationShellDescriptor() { + } + + @Override + public String toString() { + return "DefaultAssetAdministrationShellDescriptor{" + + "administration='" + administration + "'," + + "description='" + description + "'," + + "displayName='" + displayName + "'," + + "globalAssetId='" + globalAssetId + "'," + + "idShort='" + idShort + "'," + + "identification='" + identification + "'," + + "specificAssetIds='" + specificAssetIds + "'," + + "submodelDescriptors='" + submodelDescriptors + "'," + + "endpoints='" + endpoints + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.administration, + this.description, + this.displayName, + this.globalAssetId, + this.idShort, + this.identification, + this.specificAssetIds, + this.submodelDescriptors, + this.endpoints); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShellDescriptor other = (DefaultAssetAdministrationShellDescriptor) obj; + return Objects.equals(this.administration, other.administration) && + Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.identification, other.identification) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.submodelDescriptors, other.submodelDescriptors) && + Objects.equals(this.endpoints, other.endpoints); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public LangStringTextType getDescription() { + return description; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description = description; + } + + @Override + public LangStringNameType getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName = displayName; + } + + @Override + public Reference getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(Reference globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getIdentification() { + return identification; + } + + @Override + public void setIdentification(String identification) { + this.identification = identification; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public SubmodelDescriptor getSubmodelDescriptors() { + return submodelDescriptors; + } + + @Override + public void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors) { + this.submodelDescriptors = submodelDescriptors; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. + */ + public static class Builder extends AssetAdministrationShellDescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { + return new DefaultAssetAdministrationShellDescriptor(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java new file mode 100644 index 000000000..50f417f34 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; +import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; +import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellEnvironmentBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package + * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment + *

+ * Container for the sets of different identifiables. + */ + +@IRI("aas:AssetAdministrationShellEnvironment") +public class DefaultAssetAdministrationShellEnvironment implements AssetAdministrationShellEnvironment { + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") + protected List assetAdministrationShells = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") + protected List conceptDescriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") + protected List submodels = new ArrayList<>(); + + public DefaultAssetAdministrationShellEnvironment() { + } + + @Override + public String toString() { + return "DefaultAssetAdministrationShellEnvironment{" + + "assetAdministrationShells='" + assetAdministrationShells + "'," + + "conceptDescriptions='" + conceptDescriptions + "'," + + "submodels='" + submodels + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.assetAdministrationShells, + this.conceptDescriptions, + this.submodels); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShellEnvironment other = (DefaultAssetAdministrationShellEnvironment) obj; + return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && + Objects.equals(this.conceptDescriptions, other.conceptDescriptions) && + Objects.equals(this.submodels, other.submodels); + } + } + + @Override + public List getAssetAdministrationShells() { + return assetAdministrationShells; + } + + @Override + public void setAssetAdministrationShells(List assetAdministrationShells) { + this.assetAdministrationShells = assetAdministrationShells; + } + + @Override + public List getConceptDescriptions() { + return conceptDescriptions; + } + + @Override + public void setConceptDescriptions(List conceptDescriptions) { + this.conceptDescriptions = conceptDescriptions; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShellEnvironment bean. + */ + public static class Builder extends AssetAdministrationShellEnvironmentBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShellEnvironment newBuildingInstance() { + return new DefaultAssetAdministrationShellEnvironment(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index b7f11c4db..d30673b6e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation - * + *

* In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ @@ -51,26 +52,27 @@ public class DefaultAssetInformation implements AssetInformation { @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") protected List specificAssetIds = new ArrayList<>(); - public DefaultAssetInformation() {} + public DefaultAssetInformation() { + } @Override public String toString() { return "DefaultAssetInformation{" - + "assetKind='" + assetKind + "'," - + "globalAssetId='" + globalAssetId + "'," - + "specificAssetIds='" + specificAssetIds + "'," - + "assetType='" + assetType + "'," - + "defaultThumbnail='" + defaultThumbnail + "'," - + "}"; + + "assetKind='" + assetKind + "'," + + "globalAssetId='" + globalAssetId + "'," + + "specificAssetIds='" + specificAssetIds + "'," + + "assetType='" + assetType + "'," + + "defaultThumbnail='" + defaultThumbnail + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); } @Override @@ -84,10 +86,10 @@ public boolean equals(Object obj) { } else { DefaultAssetInformation other = (DefaultAssetInformation) obj; return Objects.equals(this.assetKind, other.assetKind) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.assetType, other.assetType) && - Objects.equals(this.defaultThumbnail, other.defaultThumbnail); + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.assetType, other.assetType) && + Objects.equals(this.defaultThumbnail, other.defaultThumbnail); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index a219b90f8..a5d6fb049 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +34,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement - * + *

* A basic event element. */ @@ -91,50 +92,51 @@ public class DefaultBasicEventElement implements BasicEventElement { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultBasicEventElement() {} + public DefaultBasicEventElement() { + } @Override public String toString() { return "DefaultBasicEventElement{" - + "observed='" + observed + "'," - + "direction='" + direction + "'," - + "state='" + state + "'," - + "messageTopic='" + messageTopic + "'," - + "messageBroker='" + messageBroker + "'," - + "lastUpdate='" + lastUpdate + "'," - + "minInterval='" + minInterval + "'," - + "maxInterval='" + maxInterval + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "observed='" + observed + "'," + + "direction='" + direction + "'," + + "state='" + state + "'," + + "messageTopic='" + messageTopic + "'," + + "messageBroker='" + messageBroker + "'," + + "lastUpdate='" + lastUpdate + "'," + + "minInterval='" + minInterval + "'," + + "maxInterval='" + maxInterval + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -148,22 +150,22 @@ public boolean equals(Object obj) { } else { DefaultBasicEventElement other = (DefaultBasicEventElement) obj; return Objects.equals(this.observed, other.observed) && - Objects.equals(this.direction, other.direction) && - Objects.equals(this.state, other.state) && - Objects.equals(this.messageTopic, other.messageTopic) && - Objects.equals(this.messageBroker, other.messageBroker) && - Objects.equals(this.lastUpdate, other.lastUpdate) && - Objects.equals(this.minInterval, other.minInterval) && - Objects.equals(this.maxInterval, other.maxInterval) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.direction, other.direction) && + Objects.equals(this.state, other.state) && + Objects.equals(this.messageTopic, other.messageTopic) && + Objects.equals(this.messageBroker, other.messageBroker) && + Objects.equals(this.lastUpdate, other.lastUpdate) && + Objects.equals(this.minInterval, other.minInterval) && + Objects.equals(this.maxInterval, other.maxInterval) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -248,93 +250,93 @@ public void setMaxInterval(String maxInterval) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index 39e44fd4c..b65c66639 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob - * + *

* A 'Blob' is a data element that represents a file that is contained with its source code in the * value attribute. */ @@ -73,38 +74,39 @@ public class DefaultBlob implements Blob { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultBlob() {} + public DefaultBlob() { + } @Override public String toString() { return "DefaultBlob{" - + "value='" + value + "'," - + "contentType='" + contentType + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "value='" + value + "'," + + "contentType='" + contentType + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(Arrays.hashCode(this.value), - this.contentType, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.contentType, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -118,16 +120,16 @@ public boolean equals(Object obj) { } else { DefaultBlob other = (DefaultBlob) obj; return Arrays.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -152,93 +154,93 @@ public void setContentType(String contentType) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index b30c9ba68..b766b56a3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability - * + *

* A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ @@ -66,34 +67,35 @@ public class DefaultCapability implements Capability { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultCapability() {} + public DefaultCapability() { + } @Override public String toString() { return "DefaultCapability{" - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { - return Objects.hash(this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + return Objects.hash(this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -106,106 +108,106 @@ public boolean equals(Object obj) { return false; } else { DefaultCapability other = (DefaultCapability) obj; - return Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + return Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index c9f519137..06c665c25 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription - * + *

* The semantics of a property or other elements that may have a semantic description is defined by * a concept description. */ @@ -66,34 +67,35 @@ public class DefaultConceptDescription implements ConceptDescription { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultConceptDescription() {} + public DefaultConceptDescription() { + } @Override public String toString() { return "DefaultConceptDescription{" - + "isCaseOfs='" + isCaseOfs + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "administration='" + administration + "'," - + "id='" + id + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "isCaseOfs='" + isCaseOfs + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "administration='" + administration + "'," + + "id='" + id + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.isCaseOfs, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); } @Override @@ -107,14 +109,14 @@ public boolean equals(Object obj) { } else { DefaultConceptDescription other = (DefaultConceptDescription) obj; return Objects.equals(this.isCaseOfs, other.isCaseOfs) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index de00ceeae..1b088fbf0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 - * + *

* Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. */ @@ -77,40 +78,41 @@ public class DefaultDataSpecificationIec61360 implements DataSpecificationIec613 @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") protected ValueList valueList; - public DefaultDataSpecificationIec61360() {} + public DefaultDataSpecificationIec61360() { + } @Override public String toString() { return "DefaultDataSpecificationIec61360{" - + "preferredNames='" + preferredNames + "'," - + "shortNames='" + shortNames + "'," - + "unit='" + unit + "'," - + "unitId='" + unitId + "'," - + "sourceOfDefinition='" + sourceOfDefinition + "'," - + "symbol='" + symbol + "'," - + "dataType='" + dataType + "'," - + "definitions='" + definitions + "'," - + "valueFormat='" + valueFormat + "'," - + "valueList='" + valueList + "'," - + "value='" + value + "'," - + "levelType='" + levelType + "'," - + "}"; + + "preferredNames='" + preferredNames + "'," + + "shortNames='" + shortNames + "'," + + "unit='" + unit + "'," + + "unitId='" + unitId + "'," + + "sourceOfDefinition='" + sourceOfDefinition + "'," + + "symbol='" + symbol + "'," + + "dataType='" + dataType + "'," + + "definitions='" + definitions + "'," + + "valueFormat='" + valueFormat + "'," + + "valueList='" + valueList + "'," + + "value='" + value + "'," + + "levelType='" + levelType + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.preferredNames, - this.shortNames, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definitions, - this.valueFormat, - this.valueList, - this.value, - this.levelType); + this.shortNames, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definitions, + this.valueFormat, + this.valueList, + this.value, + this.levelType); } @Override @@ -124,17 +126,17 @@ public boolean equals(Object obj) { } else { DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; return Objects.equals(this.preferredNames, other.preferredNames) && - Objects.equals(this.shortNames, other.shortNames) && - Objects.equals(this.unit, other.unit) && - Objects.equals(this.unitId, other.unitId) && - Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && - Objects.equals(this.symbol, other.symbol) && - Objects.equals(this.dataType, other.dataType) && - Objects.equals(this.definitions, other.definitions) && - Objects.equals(this.valueFormat, other.valueFormat) && - Objects.equals(this.valueList, other.valueList) && - Objects.equals(this.value, other.value) && - Objects.equals(this.levelType, other.levelType); + Objects.equals(this.shortNames, other.shortNames) && + Objects.equals(this.unit, other.unit) && + Objects.equals(this.unitId, other.unitId) && + Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && + Objects.equals(this.symbol, other.symbol) && + Objects.equals(this.dataType, other.dataType) && + Objects.equals(this.definitions, other.definitions) && + Objects.equals(this.valueFormat, other.valueFormat) && + Objects.equals(this.valueList, other.valueList) && + Objects.equals(this.value, other.value) && + Objects.equals(this.levelType, other.levelType); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java new file mode 100644 index 000000000..4495ba9f9 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor + * + */ + +@IRI("aas:Descriptor") +public class DefaultDescriptor implements Descriptor { + + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + public DefaultDescriptor() { + } + + @Override + public String toString() { + return "DefaultDescriptor{" + + "endpoints='" + endpoints + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.endpoints); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDescriptor other = (DefaultDescriptor) obj; + return Objects.equals(this.endpoints, other.endpoints); + } + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + /** + * This builder class can be used to construct a DefaultDescriptor bean. + */ + public static class Builder extends DescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultDescriptor newBuildingInstance() { + return new DefaultDescriptor(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index 277e40702..c4090115e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +27,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification - * + *

* Embed the content of a data specification. */ @@ -39,20 +40,21 @@ public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecificati @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") protected DataSpecificationContent dataSpecificationContent; - public DefaultEmbeddedDataSpecification() {} + public DefaultEmbeddedDataSpecification() { + } @Override public String toString() { return "DefaultEmbeddedDataSpecification{" - + "dataSpecification='" + dataSpecification + "'," - + "dataSpecificationContent='" + dataSpecificationContent + "'," - + "}"; + + "dataSpecification='" + dataSpecification + "'," + + "dataSpecificationContent='" + dataSpecificationContent + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.dataSpecification, - this.dataSpecificationContent); + this.dataSpecificationContent); } @Override @@ -66,7 +68,7 @@ public boolean equals(Object obj) { } else { DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; return Objects.equals(this.dataSpecification, other.dataSpecification) && - Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); + Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java new file mode 100644 index 000000000..853071ecb --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.EndpointBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint + * + */ + +@IRI("aas:Endpoint") +public class DefaultEndpoint implements Endpoint { + + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") + protected String _interface; + + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") + protected ProtocolInformation protocolInformation; + + public DefaultEndpoint() { + } + + @Override + public String toString() { + return "DefaultEndpoint{" + + "_interface='" + _interface + "'," + + "protocolInformation='" + protocolInformation + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this._interface, + this.protocolInformation); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEndpoint other = (DefaultEndpoint) obj; + return Objects.equals(this._interface, other._interface) && + Objects.equals(this.protocolInformation, other.protocolInformation); + } + } + + @Override + public String get_interface() { + return _interface; + } + + @Override + public void set_interface(String _interface) { + this._interface = _interface; + } + + @Override + public ProtocolInformation getProtocolInformation() { + return protocolInformation; + } + + @Override + public void setProtocolInformation(ProtocolInformation protocolInformation) { + this.protocolInformation = protocolInformation; + } + + /** + * This builder class can be used to construct a DefaultEndpoint bean. + */ + public static class Builder extends EndpointBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEndpoint newBuildingInstance() { + return new DefaultEndpoint(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index ba726f8ad..476e09fbf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +35,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity - * + *

* An entity is a submodel element that is used to model entities. */ @@ -80,42 +81,43 @@ public class DefaultEntity implements Entity { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultEntity() {} + public DefaultEntity() { + } @Override public String toString() { return "DefaultEntity{" - + "statements='" + statements + "'," - + "entityType='" + entityType + "'," - + "globalAssetId='" + globalAssetId + "'," - + "specificAssetIds='" + specificAssetIds + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "statements='" + statements + "'," + + "entityType='" + entityType + "'," + + "globalAssetId='" + globalAssetId + "'," + + "specificAssetIds='" + specificAssetIds + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.statements, - this.entityType, - this.globalAssetId, - this.specificAssetIds, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.entityType, + this.globalAssetId, + this.specificAssetIds, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -129,18 +131,18 @@ public boolean equals(Object obj) { } else { DefaultEntity other = (DefaultEntity) obj; return Objects.equals(this.statements, other.statements) && - Objects.equals(this.entityType, other.entityType) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.entityType, other.entityType) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -185,93 +187,93 @@ public void setSpecificAssetIds(List specificAssetIds) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index f92c0a377..81456affe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment - * + *

* Container for the sets of different identifiables. */ @@ -44,22 +45,23 @@ public class DefaultEnvironment implements Environment { @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") protected List submodels = new ArrayList<>(); - public DefaultEnvironment() {} + public DefaultEnvironment() { + } @Override public String toString() { return "DefaultEnvironment{" - + "assetAdministrationShells='" + assetAdministrationShells + "'," - + "submodels='" + submodels + "'," - + "conceptDescriptions='" + conceptDescriptions + "'," - + "}"; + + "assetAdministrationShells='" + assetAdministrationShells + "'," + + "submodels='" + submodels + "'," + + "conceptDescriptions='" + conceptDescriptions + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.assetAdministrationShells, - this.submodels, - this.conceptDescriptions); + this.submodels, + this.conceptDescriptions); } @Override @@ -73,8 +75,8 @@ public boolean equals(Object obj) { } else { DefaultEnvironment other = (DefaultEnvironment) obj; return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.conceptDescriptions, other.conceptDescriptions); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index 727dea704..e42221ba9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +26,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload - * + *

* Defines the necessary information of an event instance sent out or received. */ @@ -56,32 +57,33 @@ public class DefaultEventPayload implements EventPayload { @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") protected String topic; - public DefaultEventPayload() {} + public DefaultEventPayload() { + } @Override public String toString() { return "DefaultEventPayload{" - + "source='" + source + "'," - + "sourceSemanticId='" + sourceSemanticId + "'," - + "observableReference='" + observableReference + "'," - + "observableSemanticId='" + observableSemanticId + "'," - + "topic='" + topic + "'," - + "subjectId='" + subjectId + "'," - + "timeStamp='" + timeStamp + "'," - + "payload='" + payload + "'," - + "}"; + + "source='" + source + "'," + + "sourceSemanticId='" + sourceSemanticId + "'," + + "observableReference='" + observableReference + "'," + + "observableSemanticId='" + observableSemanticId + "'," + + "topic='" + topic + "'," + + "subjectId='" + subjectId + "'," + + "timeStamp='" + timeStamp + "'," + + "payload='" + payload + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - Arrays.hashCode(this.payload)); + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + Arrays.hashCode(this.payload)); } @Override @@ -95,13 +97,13 @@ public boolean equals(Object obj) { } else { DefaultEventPayload other = (DefaultEventPayload) obj; return Objects.equals(this.source, other.source) && - Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && - Objects.equals(this.observableReference, other.observableReference) && - Objects.equals(this.observableSemanticId, other.observableSemanticId) && - Objects.equals(this.topic, other.topic) && - Objects.equals(this.subjectId, other.subjectId) && - Objects.equals(this.timeStamp, other.timeStamp) && - Arrays.equals(this.payload, other.payload); + Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && + Objects.equals(this.observableReference, other.observableReference) && + Objects.equals(this.observableSemanticId, other.observableSemanticId) && + Objects.equals(this.topic, other.topic) && + Objects.equals(this.subjectId, other.subjectId) && + Objects.equals(this.timeStamp, other.timeStamp) && + Arrays.equals(this.payload, other.payload); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index f96c30ffb..29d8a0127 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +28,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension - * + *

* Single extension of an element. */ @@ -52,28 +53,29 @@ public class DefaultExtension implements Extension { @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - public DefaultExtension() {} + public DefaultExtension() { + } @Override public String toString() { return "DefaultExtension{" - + "name='" + name + "'," - + "valueType='" + valueType + "'," - + "value='" + value + "'," - + "refersTos='" + refersTos + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "}"; + + "name='" + name + "'," + + "valueType='" + valueType + "'," + + "value='" + value + "'," + + "refersTos='" + refersTos + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.name, - this.valueType, - this.value, - this.refersTos, - this.semanticId, - this.supplementalSemanticIds); + this.valueType, + this.value, + this.refersTos, + this.semanticId, + this.supplementalSemanticIds); } @Override @@ -87,11 +89,11 @@ public boolean equals(Object obj) { } else { DefaultExtension other = (DefaultExtension) obj; return Objects.equals(this.name, other.name) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.refersTos, other.refersTos) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.refersTos, other.refersTos) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index 59a0ae070..a4a07fff4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File - * + *

* A File is a data element that represents an address to a file (a locator). */ @@ -71,38 +72,39 @@ public class DefaultFile implements File { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultFile() {} + public DefaultFile() { + } @Override public String toString() { return "DefaultFile{" - + "value='" + value + "'," - + "contentType='" + contentType + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "value='" + value + "'," + + "contentType='" + contentType + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.value, - this.contentType, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.contentType, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -116,16 +118,16 @@ public boolean equals(Object obj) { } else { DefaultFile other = (DefaultFile) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -150,93 +152,93 @@ public void setContentType(String contentType) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index aefba4680..c32e6c951 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key - * + *

* A key is a reference to an element by its ID. */ @@ -37,20 +38,21 @@ public class DefaultKey implements Key { @IRI("https://admin-shell.io/aas/3/2/Key/value") protected String value; - public DefaultKey() {} + public DefaultKey() { + } @Override public String toString() { return "DefaultKey{" - + "type='" + type + "'," - + "value='" + value + "'," - + "}"; + + "type='" + type + "'," + + "value='" + value + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.type, - this.value); + this.value); } @Override @@ -64,7 +66,7 @@ public boolean equals(Object obj) { } else { DefaultKey other = (DefaultKey) obj; return Objects.equals(this.type, other.type) && - Objects.equals(this.value, other.value); + Objects.equals(this.value, other.value); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index 8a3e665c7..8c5f00858 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 - * + *

* String with length 1023 maximum and minimum 1 characters and with language tags */ @@ -37,20 +38,21 @@ public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefini @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; - public DefaultLangStringDefinitionTypeIec61360() {} + public DefaultLangStringDefinitionTypeIec61360() { + } @Override public String toString() { return "DefaultLangStringDefinitionTypeIec61360{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -64,7 +66,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index 436a197ca..dc315af8a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType - * + *

* String with length 128 maximum and minimum 1 characters and with language tags */ @@ -36,20 +37,21 @@ public class DefaultLangStringNameType implements LangStringNameType { @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; - public DefaultLangStringNameType() {} + public DefaultLangStringNameType() { + } @Override public String toString() { return "DefaultLangStringNameType{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -63,7 +65,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringNameType other = (DefaultLangStringNameType) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index b69f5dc7e..5bb741256 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 - * + *

* String with length 255 maximum and minimum 1 characters and with language tags */ @@ -37,20 +38,21 @@ public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPre @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; - public DefaultLangStringPreferredNameTypeIec61360() {} + public DefaultLangStringPreferredNameTypeIec61360() { + } @Override public String toString() { return "DefaultLangStringPreferredNameTypeIec61360{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -64,7 +66,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringPreferredNameTypeIec61360 other = (DefaultLangStringPreferredNameTypeIec61360) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index 6e008584a..84e8345af 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 - * + *

* String with length 18 maximum and minimum 1 characters and with language tags */ @@ -37,20 +38,21 @@ public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNa @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; - public DefaultLangStringShortNameTypeIec61360() {} + public DefaultLangStringShortNameTypeIec61360() { + } @Override public String toString() { return "DefaultLangStringShortNameTypeIec61360{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -64,7 +66,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index f873d4ee3..516e6f874 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType - * + *

* String with length 1023 maximum and minimum 1 characters and with language tags */ @@ -36,20 +37,21 @@ public class DefaultLangStringTextType implements LangStringTextType { @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; - public DefaultLangStringTextType() {} + public DefaultLangStringTextType() { + } @Override public String toString() { return "DefaultLangStringTextType{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; + + "language='" + language + "'," + + "text='" + text + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -63,7 +65,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringTextType other = (DefaultLangStringTextType) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index 1f977b2a7..6dcb36ab9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType - * + *

* Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and * MAX. True means that the value is available, false means the value is not available. */ @@ -43,24 +44,25 @@ public class DefaultLevelType implements LevelType { @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") protected boolean typ; - public DefaultLevelType() {} + public DefaultLevelType() { + } @Override public String toString() { return "DefaultLevelType{" - + "min='" + min + "'," - + "nom='" + nom + "'," - + "typ='" + typ + "'," - + "max='" + max + "'," - + "}"; + + "min='" + min + "'," + + "nom='" + nom + "'," + + "typ='" + typ + "'," + + "max='" + max + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.min, - this.nom, - this.typ, - this.max); + this.nom, + this.typ, + this.max); } @Override @@ -74,9 +76,9 @@ public boolean equals(Object obj) { } else { DefaultLevelType other = (DefaultLevelType) obj; return Objects.equals(this.min, other.min) && - Objects.equals(this.nom, other.nom) && - Objects.equals(this.typ, other.typ) && - Objects.equals(this.max, other.max); + Objects.equals(this.nom, other.nom) && + Objects.equals(this.typ, other.typ) && + Objects.equals(this.max, other.max); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java new file mode 100644 index 000000000..baf6aff24 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -0,0 +1,139 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.Message; +import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message + * + */ + +@IRI("aas:Message") +public class DefaultMessage implements Message { + + @IRI("https://admin-shell.io/aas/3/2/Message/code") + protected String code; + + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") + protected MessageType messageType; + + @IRI("https://admin-shell.io/aas/3/2/Message/text") + protected String text; + + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") + protected String timestamp; + + public DefaultMessage() { + } + + @Override + public String toString() { + return "DefaultMessage{" + + "code='" + code + "'," + + "messageType='" + messageType + "'," + + "text='" + text + "'," + + "timestamp='" + timestamp + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.code, + this.messageType, + this.text, + this.timestamp); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMessage other = (DefaultMessage) obj; + return Objects.equals(this.code, other.code) && + Objects.equals(this.messageType, other.messageType) && + Objects.equals(this.text, other.text) && + Objects.equals(this.timestamp, other.timestamp); + } + } + + @Override + public String getCode() { + return code; + } + + @Override + public void setCode(String code) { + this.code = code; + } + + @Override + public MessageType getMessageType() { + return messageType; + } + + @Override + public void setMessageType(MessageType messageType) { + this.messageType = messageType; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + @Override + public String getTimestamp() { + return timestamp; + } + + @Override + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + /** + * This builder class can be used to construct a DefaultMessage bean. + */ + public static class Builder extends MessageBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultMessage newBuildingInstance() { + return new DefaultMessage(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 5d02a8ea5..4b2fd3b1f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty - * + *

* A property is a data element that has a multi-language value. */ @@ -71,38 +72,39 @@ public class DefaultMultiLanguageProperty implements MultiLanguageProperty { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultMultiLanguageProperty() {} + public DefaultMultiLanguageProperty() { + } @Override public String toString() { return "DefaultMultiLanguageProperty{" - + "values='" + values + "'," - + "valueId='" + valueId + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "values='" + values + "'," + + "valueId='" + valueId + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.values, - this.valueId, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.valueId, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -116,16 +118,16 @@ public boolean equals(Object obj) { } else { DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; return Objects.equals(this.values, other.values) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -150,93 +152,93 @@ public void setValueId(Reference valueId) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index aa9af8070..55dac97fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation - * + *

* An operation is a submodel element with input and output variables. */ @@ -75,40 +76,41 @@ public class DefaultOperation implements Operation { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultOperation() {} + public DefaultOperation() { + } @Override public String toString() { return "DefaultOperation{" - + "inputVariables='" + inputVariables + "'," - + "outputVariables='" + outputVariables + "'," - + "inoutputVariables='" + inoutputVariables + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "inputVariables='" + inputVariables + "'," + + "outputVariables='" + outputVariables + "'," + + "inoutputVariables='" + inoutputVariables + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.inputVariables, - this.outputVariables, - this.inoutputVariables, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.outputVariables, + this.inoutputVariables, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -122,17 +124,17 @@ public boolean equals(Object obj) { } else { DefaultOperation other = (DefaultOperation) obj; return Objects.equals(this.inputVariables, other.inputVariables) && - Objects.equals(this.outputVariables, other.outputVariables) && - Objects.equals(this.inoutputVariables, other.inoutputVariables) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.outputVariables, other.outputVariables) && + Objects.equals(this.inoutputVariables, other.inoutputVariables) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -167,93 +169,93 @@ public void setInoutputVariables(List inoutputVariables) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java new file mode 100644 index 000000000..9c826a6fd --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationHandleBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle + * + */ + +@IRI("aas:OperationHandle") +public class DefaultOperationHandle implements OperationHandle { + + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") + protected String handleId; + + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") + protected String requestId; + + public DefaultOperationHandle() { + } + + @Override + public String toString() { + return "DefaultOperationHandle{" + + "handleId='" + handleId + "'," + + "requestId='" + requestId + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.handleId, + this.requestId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationHandle other = (DefaultOperationHandle) obj; + return Objects.equals(this.handleId, other.handleId) && + Objects.equals(this.requestId, other.requestId); + } + } + + @Override + public String getHandleId() { + return handleId; + } + + @Override + public void setHandleId(String handleId) { + this.handleId = handleId; + } + + @Override + public String getRequestId() { + return requestId; + } + + @Override + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + /** + * This builder class can be used to construct a DefaultOperationHandle bean. + */ + public static class Builder extends OperationHandleBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationHandle newBuildingInstance() { + return new DefaultOperationHandle(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java new file mode 100644 index 000000000..dbf982cdb --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; +import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; + +import java.math.BigInteger; +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest + * + */ + +@IRI("aas:OperationRequest") +public class DefaultOperationRequest implements OperationRequest { + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + protected OperationVariable inoutputArguments; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") + protected OperationVariable inputArguments; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") + protected String requestId; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + protected BigInteger timeout; + + public DefaultOperationRequest() { + } + + @Override + public String toString() { + return "DefaultOperationRequest{" + + "inoutputArguments='" + inoutputArguments + "'," + + "inputArguments='" + inputArguments + "'," + + "requestId='" + requestId + "'," + + "timeout='" + timeout + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.inoutputArguments, + this.inputArguments, + this.requestId, + this.timeout); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationRequest other = (DefaultOperationRequest) obj; + return Objects.equals(this.inoutputArguments, other.inoutputArguments) && + Objects.equals(this.inputArguments, other.inputArguments) && + Objects.equals(this.requestId, other.requestId) && + Objects.equals(this.timeout, other.timeout); + } + } + + @Override + public OperationVariable getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(OperationVariable inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } + + @Override + public OperationVariable getInputArguments() { + return inputArguments; + } + + @Override + public void setInputArguments(OperationVariable inputArguments) { + this.inputArguments = inputArguments; + } + + @Override + public String getRequestId() { + return requestId; + } + + @Override + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public BigInteger getTimeout() { + return timeout; + } + + @Override + public void setTimeout(BigInteger timeout) { + this.timeout = timeout; + } + + /** + * This builder class can be used to construct a DefaultOperationRequest bean. + */ + public static class Builder extends OperationRequestBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationRequest newBuildingInstance() { + return new DefaultOperationRequest(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java new file mode 100644 index 000000000..3ab7eed76 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; +import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; +import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import org.eclipse.digitaltwin.aas4j.v3.model.Result; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult + * + */ + +@IRI("aas:OperationResult") +public class DefaultOperationResult implements OperationResult { + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + protected List executionResults = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + protected List executionStates = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") + protected List inoutputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") + protected List outputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") + protected List requestIds = new ArrayList<>(); + + public DefaultOperationResult() { + } + + @Override + public String toString() { + return "DefaultOperationResult{" + + "executionResults='" + executionResults + "'," + + "executionStates='" + executionStates + "'," + + "inoutputArguments='" + inoutputArguments + "'," + + "outputArguments='" + outputArguments + "'," + + "requestIds='" + requestIds + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.executionResults, + this.executionStates, + this.inoutputArguments, + this.outputArguments, + this.requestIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationResult other = (DefaultOperationResult) obj; + return Objects.equals(this.executionResults, other.executionResults) && + Objects.equals(this.executionStates, other.executionStates) && + Objects.equals(this.inoutputArguments, other.inoutputArguments) && + Objects.equals(this.outputArguments, other.outputArguments) && + Objects.equals(this.requestIds, other.requestIds); + } + } + + @Override + public List getExecutionResults() { + return executionResults; + } + + @Override + public void setExecutionResults(List executionResults) { + this.executionResults = executionResults; + } + + @Override + public List getExecutionStates() { + return executionStates; + } + + @Override + public void setExecutionStates(List executionStates) { + this.executionStates = executionStates; + } + + @Override + public List getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(List inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } + + @Override + public List getOutputArguments() { + return outputArguments; + } + + @Override + public void setOutputArguments(List outputArguments) { + this.outputArguments = outputArguments; + } + + @Override + public List getRequestIds() { + return requestIds; + } + + @Override + public void setRequestIds(List requestIds) { + this.requestIds = requestIds; + } + + /** + * This builder class can be used to construct a DefaultOperationResult bean. + */ + public static class Builder extends OperationResultBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationResult newBuildingInstance() { + return new DefaultOperationResult(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 43505a275..6f46229da 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable - * + *

* The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ @@ -35,13 +36,14 @@ public class DefaultOperationVariable implements OperationVariable { @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") protected SubmodelElement value; - public DefaultOperationVariable() {} + public DefaultOperationVariable() { + } @Override public String toString() { return "DefaultOperationVariable{" - + "value='" + value + "'," - + "}"; + + "value='" + value + "'," + + "}"; } @Override diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java new file mode 100644 index 000000000..dee742c05 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription + * + */ + +@IRI("aas:PackageDescription") +public class DefaultPackageDescription implements PackageDescription { + + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") + protected List items = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") + protected String packageId; + + public DefaultPackageDescription() { + } + + @Override + public String toString() { + return "DefaultPackageDescription{" + + "items='" + items + "'," + + "packageId='" + packageId + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.items, + this.packageId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultPackageDescription other = (DefaultPackageDescription) obj; + return Objects.equals(this.items, other.items) && + Objects.equals(this.packageId, other.packageId); + } + } + + @Override + public List getItems() { + return items; + } + + @Override + public void setItems(List items) { + this.items = items; + } + + @Override + public String getPackageId() { + return packageId; + } + + @Override + public void setPackageId(String packageId) { + this.packageId = packageId; + } + + /** + * This builder class can be used to construct a DefaultPackageDescription bean. + */ + public static class Builder extends PackageDescriptionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultPackageDescription newBuildingInstance() { + return new DefaultPackageDescription(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 1434f9aaa..118065acb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property - * + *

* A property is a data element that has a single value. */ @@ -75,40 +76,41 @@ public class DefaultProperty implements Property { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultProperty() {} + public DefaultProperty() { + } @Override public String toString() { return "DefaultProperty{" - + "valueType='" + valueType + "'," - + "value='" + value + "'," - + "valueId='" + valueId + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "valueType='" + valueType + "'," + + "value='" + value + "'," + + "valueId='" + valueId + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.valueType, - this.value, - this.valueId, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.value, + this.valueId, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -122,17 +124,17 @@ public boolean equals(Object obj) { } else { DefaultProperty other = (DefaultProperty) obj; return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -167,93 +169,93 @@ public void setValueId(Reference valueId) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java new file mode 100644 index 000000000..41f09bfa5 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation + * + */ + +@IRI("aas:ProtocolInformation") +public class DefaultProtocolInformation implements ProtocolInformation { + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") + protected String endpointAddress; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") + protected String endpointProtocol; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") + protected String endpointProtocolVersion; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") + protected String subprotocol; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") + protected String subprotocolBody; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") + protected String subprotocolBodyEncoding; + + public DefaultProtocolInformation() { + } + + @Override + public String toString() { + return "DefaultProtocolInformation{" + + "endpointAddress='" + endpointAddress + "'," + + "endpointProtocol='" + endpointProtocol + "'," + + "endpointProtocolVersion='" + endpointProtocolVersion + "'," + + "subprotocol='" + subprotocol + "'," + + "subprotocolBody='" + subprotocolBody + "'," + + "subprotocolBodyEncoding='" + subprotocolBodyEncoding + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.endpointAddress, + this.endpointProtocol, + this.endpointProtocolVersion, + this.subprotocol, + this.subprotocolBody, + this.subprotocolBodyEncoding); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProtocolInformation other = (DefaultProtocolInformation) obj; + return Objects.equals(this.endpointAddress, other.endpointAddress) && + Objects.equals(this.endpointProtocol, other.endpointProtocol) && + Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && + Objects.equals(this.subprotocol, other.subprotocol) && + Objects.equals(this.subprotocolBody, other.subprotocolBody) && + Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding); + } + } + + @Override + public String getEndpointAddress() { + return endpointAddress; + } + + @Override + public void setEndpointAddress(String endpointAddress) { + this.endpointAddress = endpointAddress; + } + + @Override + public String getEndpointProtocol() { + return endpointProtocol; + } + + @Override + public void setEndpointProtocol(String endpointProtocol) { + this.endpointProtocol = endpointProtocol; + } + + @Override + public String getEndpointProtocolVersion() { + return endpointProtocolVersion; + } + + @Override + public void setEndpointProtocolVersion(String endpointProtocolVersion) { + this.endpointProtocolVersion = endpointProtocolVersion; + } + + @Override + public String getSubprotocol() { + return subprotocol; + } + + @Override + public void setSubprotocol(String subprotocol) { + this.subprotocol = subprotocol; + } + + @Override + public String getSubprotocolBody() { + return subprotocolBody; + } + + @Override + public void setSubprotocolBody(String subprotocolBody) { + this.subprotocolBody = subprotocolBody; + } + + @Override + public String getSubprotocolBodyEncoding() { + return subprotocolBodyEncoding; + } + + @Override + public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { + this.subprotocolBodyEncoding = subprotocolBodyEncoding; + } + + /** + * This builder class can be used to construct a DefaultProtocolInformation bean. + */ + public static class Builder extends ProtocolInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultProtocolInformation newBuildingInstance() { + return new DefaultProtocolInformation(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 407a0c099..4a326edfe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier - * + *

* A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ @@ -57,30 +58,31 @@ public class DefaultQualifier implements Qualifier { @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") protected DataTypeDefXsd valueType; - public DefaultQualifier() {} + public DefaultQualifier() { + } @Override public String toString() { return "DefaultQualifier{" - + "kind='" + kind + "'," - + "type='" + type + "'," - + "valueType='" + valueType + "'," - + "value='" + value + "'," - + "valueId='" + valueId + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "}"; + + "kind='" + kind + "'," + + "type='" + type + "'," + + "valueType='" + valueType + "'," + + "value='" + value + "'," + + "valueId='" + valueId + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.kind, - this.type, - this.valueType, - this.value, - this.valueId, - this.semanticId, - this.supplementalSemanticIds); + this.type, + this.valueType, + this.value, + this.valueId, + this.semanticId, + this.supplementalSemanticIds); } @Override @@ -94,12 +96,12 @@ public boolean equals(Object obj) { } else { DefaultQualifier other = (DefaultQualifier) obj; return Objects.equals(this.kind, other.kind) && - Objects.equals(this.type, other.type) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + Objects.equals(this.type, other.type) && + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index 955f4d491..39c46436b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range - * + *

* A range data element is a data element that defines a range with min and max. */ @@ -75,40 +76,41 @@ public class DefaultRange implements Range { @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - public DefaultRange() {} + public DefaultRange() { + } @Override public String toString() { return "DefaultRange{" - + "valueType='" + valueType + "'," - + "min='" + min + "'," - + "max='" + max + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "valueType='" + valueType + "'," + + "min='" + min + "'," + + "max='" + max + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.valueType, - this.min, - this.max, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.min, + this.max, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -122,17 +124,17 @@ public boolean equals(Object obj) { } else { DefaultRange other = (DefaultRange) obj; return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.min, other.min) && - Objects.equals(this.max, other.max) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.min, other.min) && + Objects.equals(this.max, other.max) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -167,93 +169,93 @@ public void setMax(String max) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index 00da84046..b669dbbfb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +28,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference - * + *

* Reference to either a model element of the same or another AAS or to an external entity. */ @@ -43,22 +44,23 @@ public class DefaultReference implements Reference { @IRI("https://admin-shell.io/aas/3/2/Reference/type") protected ReferenceTypes type; - public DefaultReference() {} + public DefaultReference() { + } @Override public String toString() { return "DefaultReference{" - + "type='" + type + "'," - + "referredSemanticId='" + referredSemanticId + "'," - + "keys='" + keys + "'," - + "}"; + + "type='" + type + "'," + + "referredSemanticId='" + referredSemanticId + "'," + + "keys='" + keys + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.type, - this.referredSemanticId, - this.keys); + this.referredSemanticId, + this.keys); } @Override @@ -72,8 +74,8 @@ public boolean equals(Object obj) { } else { DefaultReference other = (DefaultReference) obj; return Objects.equals(this.type, other.type) && - Objects.equals(this.referredSemanticId, other.referredSemanticId) && - Objects.equals(this.keys, other.keys); + Objects.equals(this.referredSemanticId, other.referredSemanticId) && + Objects.equals(this.keys, other.keys); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index 2243da8e1..2840ffc72 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement - * + *

* A reference element is a data element that defines a logical reference to another element within * the same or another AAS or a reference to an external object or entity. */ @@ -69,36 +70,37 @@ public class DefaultReferenceElement implements ReferenceElement { @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") protected Reference value; - public DefaultReferenceElement() {} + public DefaultReferenceElement() { + } @Override public String toString() { return "DefaultReferenceElement{" - + "value='" + value + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "value='" + value + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.value, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -112,15 +114,15 @@ public boolean equals(Object obj) { } else { DefaultReferenceElement other = (DefaultReferenceElement) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -135,93 +137,93 @@ public void setValue(Reference value) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index 989287db6..1c726b3a2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement - * + *

* A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ @@ -72,38 +73,39 @@ public class DefaultRelationshipElement implements RelationshipElement { @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") protected Reference second; - public DefaultRelationshipElement() {} + public DefaultRelationshipElement() { + } @Override public String toString() { return "DefaultRelationshipElement{" - + "first='" + first + "'," - + "second='" + second + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "first='" + first + "'," + + "second='" + second + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.first, - this.second, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.second, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -117,16 +119,16 @@ public boolean equals(Object obj) { } else { DefaultRelationshipElement other = (DefaultRelationshipElement) obj; return Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.second, other.second) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -151,93 +153,93 @@ public void setSecond(Reference second) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index de8a50dca..9538378f0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource - * + *

* Resource represents an address to a file (a locator). The value is an URI that can represent an * absolute or relative path */ @@ -37,20 +38,21 @@ public class DefaultResource implements Resource { @IRI("https://admin-shell.io/aas/3/2/Resource/path") protected String path; - public DefaultResource() {} + public DefaultResource() { + } @Override public String toString() { return "DefaultResource{" - + "path='" + path + "'," - + "contentType='" + contentType + "'," - + "}"; + + "path='" + path + "'," + + "contentType='" + contentType + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.path, - this.contentType); + this.contentType); } @Override @@ -64,7 +66,7 @@ public boolean equals(Object obj) { } else { DefaultResource other = (DefaultResource) obj; return Objects.equals(this.path, other.path) && - Objects.equals(this.contentType, other.contentType); + Objects.equals(this.contentType, other.contentType); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java new file mode 100644 index 000000000..f51f81570 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.Message; +import org.eclipse.digitaltwin.aas4j.v3.model.Result; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResultBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result + * + */ + +@IRI("aas:Result") +public class DefaultResult implements Result { + + @IRI("https://admin-shell.io/aas/3/2/Result/messages") + protected List messages = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Result/success") + protected boolean success; + + public DefaultResult() { + } + + @Override + public String toString() { + return "DefaultResult{" + + "messages='" + messages + "'," + + "success='" + success + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.messages, + this.success); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResult other = (DefaultResult) obj; + return Objects.equals(this.messages, other.messages) && + Objects.equals(this.success, other.success); + } + } + + @Override + public List getMessages() { + return messages; + } + + @Override + public void setMessages(List messages) { + this.messages = messages; + } + + @Override + public boolean getSuccess() { + return success; + } + + @Override + public void setSuccess(boolean success) { + this.success = success; + } + + /** + * This builder class can be used to construct a DefaultResult bean. + */ + public static class Builder extends ResultBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultResult newBuildingInstance() { + return new DefaultResult(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 93a1e56cf..f9755837a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId - * + *

* A specific asset ID describes a generic supplementary identifying attribute of the asset. */ @@ -48,26 +49,27 @@ public class DefaultSpecificAssetId implements SpecificAssetId { @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") protected String value; - public DefaultSpecificAssetId() {} + public DefaultSpecificAssetId() { + } @Override public String toString() { return "DefaultSpecificAssetId{" - + "name='" + name + "'," - + "value='" + value + "'," - + "externalSubjectId='" + externalSubjectId + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "}"; + + "name='" + name + "'," + + "value='" + value + "'," + + "externalSubjectId='" + externalSubjectId + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.name, - this.value, - this.externalSubjectId, - this.semanticId, - this.supplementalSemanticIds); + this.value, + this.externalSubjectId, + this.semanticId, + this.supplementalSemanticIds); } @Override @@ -81,10 +83,10 @@ public boolean equals(Object obj) { } else { DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; return Objects.equals(this.name, other.name) && - Objects.equals(this.value, other.value) && - Objects.equals(this.externalSubjectId, other.externalSubjectId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + Objects.equals(this.value, other.value) && + Objects.equals(this.externalSubjectId, other.externalSubjectId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 0c988ffa8..5866c2403 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +35,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel - * + *

* A submodel defines a specific aspect of the asset represented by the AAS. */ @@ -80,42 +81,43 @@ public class DefaultSubmodel implements Submodel { @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") protected List submodelElements = new ArrayList<>(); - public DefaultSubmodel() {} + public DefaultSubmodel() { + } @Override public String toString() { return "DefaultSubmodel{" - + "submodelElements='" + submodelElements + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "kind='" + kind + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "administration='" + administration + "'," - + "id='" + id + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; + + "submodelElements='" + submodelElements + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "kind='" + kind + "'," + + "administration='" + administration + "'," + + "id='" + id + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.submodelElements, - this.embeddedDataSpecifications, - this.kind, - this.semanticId, - this.supplementalSemanticIds, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.qualifiers); + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.kind, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); } @Override @@ -129,18 +131,18 @@ public boolean equals(Object obj) { } else { DefaultSubmodel other = (DefaultSubmodel) obj; return Objects.equals(this.submodelElements, other.submodelElements) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.kind, other.kind) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.kind, other.kind) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions); } } @@ -164,16 +166,6 @@ public void setEmbeddedDataSpecifications(List embedd this.embeddedDataSpecifications = embeddedDataSpecifications; } - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - @Override public Reference getSemanticId() { return semanticId; @@ -194,6 +186,26 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + @Override public AdministrativeInformation getAdministration() { return administration; @@ -264,16 +276,6 @@ public void setExtensions(List extensions) { this.extensions = extensions; } - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - /** * This builder class can be used to construct a DefaultSubmodel bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java new file mode 100644 index 000000000..e54e5f042 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -0,0 +1,193 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelDescriptorBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor + * + */ + +@IRI("aas:SubmodelDescriptor") +public class DefaultSubmodelDescriptor implements SubmodelDescriptor { + + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") + protected LangStringTextType description; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") + protected LangStringNameType displayName; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") + protected String identification; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + protected Reference semanticId; + + public DefaultSubmodelDescriptor() { + } + + @Override + public String toString() { + return "DefaultSubmodelDescriptor{" + + "administration='" + administration + "'," + + "description='" + description + "'," + + "displayName='" + displayName + "'," + + "idShort='" + idShort + "'," + + "identification='" + identification + "'," + + "semanticId='" + semanticId + "'," + + "endpoints='" + endpoints + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.administration, + this.description, + this.displayName, + this.idShort, + this.identification, + this.semanticId, + this.endpoints); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; + return Objects.equals(this.administration, other.administration) && + Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.identification, other.identification) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.endpoints, other.endpoints); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public LangStringTextType getDescription() { + return description; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description = description; + } + + @Override + public LangStringNameType getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName = displayName; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getIdentification() { + return identification; + } + + @Override + public void setIdentification(String identification) { + this.identification = identification; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + /** + * This builder class can be used to construct a DefaultSubmodelDescriptor bean. + */ + public static class Builder extends SubmodelDescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelDescriptor newBuildingInstance() { + return new DefaultSubmodelDescriptor(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java new file mode 100644 index 000000000..bdda3ef1c --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -0,0 +1,244 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.ModellingKind; +import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementAttributesBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + + +/** + * Default implementation of package + * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes + * + */ + +@IRI("aas:SubmodelElementAttributes") +public class DefaultSubmodelElementAttributes implements SubmodelElementAttributes { + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") + protected ModellingKind kind; + + public DefaultSubmodelElementAttributes() { + } + + @Override + public String toString() { + return "DefaultSubmodelElementAttributes{" + + "kind='" + kind + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.kind, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; + return Objects.equals(this.kind, other.kind) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** + * This builder class can be used to construct a DefaultSubmodelElementAttributes bean. + */ + public static class Builder extends SubmodelElementAttributesBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementAttributes newBuildingInstance() { + return new DefaultSubmodelElementAttributes(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index f383f4bc9..c06ce06f3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection - * + *

* A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ @@ -71,36 +72,37 @@ public class DefaultSubmodelElementCollection implements SubmodelElementCollecti @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") protected List values = new ArrayList<>(); - public DefaultSubmodelElementCollection() {} + public DefaultSubmodelElementCollection() { + } @Override public String toString() { return "DefaultSubmodelElementCollection{" - + "values='" + values + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "values='" + values + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.values, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -114,15 +116,15 @@ public boolean equals(Object obj) { } else { DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; return Objects.equals(this.values, other.values) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -137,93 +139,93 @@ public void setValues(List values) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index 5f7acd57d..a779cbb12 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +35,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList - * + *

* A submodel element list is an ordered list of submodel elements. */ @@ -83,44 +84,45 @@ public class DefaultSubmodelElementList implements SubmodelElementList { @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") protected DataTypeDefXsd valueTypeListElement; - public DefaultSubmodelElementList() {} + public DefaultSubmodelElementList() { + } @Override public String toString() { return "DefaultSubmodelElementList{" - + "orderRelevant='" + orderRelevant + "'," - + "semanticIdListElement='" + semanticIdListElement + "'," - + "typeValueListElement='" + typeValueListElement + "'," - + "valueTypeListElement='" + valueTypeListElement + "'," - + "values='" + values + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; + + "orderRelevant='" + orderRelevant + "'," + + "semanticIdListElement='" + semanticIdListElement + "'," + + "typeValueListElement='" + typeValueListElement + "'," + + "valueTypeListElement='" + valueTypeListElement + "'," + + "values='" + values + "'," + + "category='" + category + "'," + + "idShort='" + idShort + "'," + + "displayNames='" + displayNames + "'," + + "descriptions='" + descriptions + "'," + + "extensions='" + extensions + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," + + "semanticId='" + semanticId + "'," + + "supplementalSemanticIds='" + supplementalSemanticIds + "'," + + "qualifiers='" + qualifiers + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.values, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.values, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -134,19 +136,19 @@ public boolean equals(Object obj) { } else { DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; return Objects.equals(this.orderRelevant, other.orderRelevant) && - Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && - Objects.equals(this.typeValueListElement, other.typeValueListElement) && - Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && - Objects.equals(this.values, other.values) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && + Objects.equals(this.typeValueListElement, other.typeValueListElement) && + Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && + Objects.equals(this.values, other.values) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayNames, other.displayNames) && + Objects.equals(this.descriptions, other.descriptions) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -201,93 +203,93 @@ public void setValues(List values) { } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + public String getCategory() { + return category; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + public void setCategory(String category) { + this.category = category; } @Override - public Reference getSemanticId() { - return semanticId; + public String getIdShort() { + return idShort; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + public List getDisplayNames() { + return displayNames; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; } @Override - public List getQualifiers() { - return qualifiers; + public List getDescriptions() { + return descriptions; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; } @Override - public String getCategory() { - return category; + public List getExtensions() { + return extensions; } @Override - public void setCategory(String category) { - this.category = category; + public void setExtensions(List extensions) { + this.extensions = extensions; } @Override - public String getIdShort() { - return idShort; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; } @Override - public List getDisplayNames() { - return displayNames; + public Reference getSemanticId() { + return semanticId; } @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - public List getDescriptions() { - return descriptions; + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; } @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; } @Override - public List getExtensions() { - return extensions; + public List getQualifiers() { + return qualifiers; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 126f20d48..621be2bb6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList - * + *

* A set of value reference pairs. */ @@ -36,13 +37,14 @@ public class DefaultValueList implements ValueList { @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") protected List valueReferencePairs = new ArrayList<>(); - public DefaultValueList() {} + public DefaultValueList() { + } @Override public String toString() { return "DefaultValueList{" - + "valueReferencePairs='" + valueReferencePairs + "'," - + "}"; + + "valueReferencePairs='" + valueReferencePairs + "'," + + "}"; } @Override diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index ecbdfa9c8..36911c3aa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair - * + *

* A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ @@ -38,20 +39,21 @@ public class DefaultValueReferencePair implements ValueReferencePair { @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") protected Reference valueId; - public DefaultValueReferencePair() {} + public DefaultValueReferencePair() { + } @Override public String toString() { return "DefaultValueReferencePair{" - + "value='" + value + "'," - + "valueId='" + valueId + "'," - + "}"; + + "value='" + value + "'," + + "valueId='" + valueId + "'," + + "}"; } @Override public int hashCode() { return Objects.hash(this.value, - this.valueId); + this.valueId); } @Override @@ -65,7 +67,7 @@ public boolean equals(Object obj) { } else { DefaultValueReferencePair other = (DefaultValueReferencePair) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId); + Objects.equals(this.valueId, other.valueId); } } From 7dad09509031046968a74353b752e014099b1ec0 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Tue, 17 Mar 2026 17:05:10 +0100 Subject: [PATCH 03/12] adding missing classes --- .../aas4j/v3/model/AasSubmodelElements.java | 96 +++++------ .../aas4j/v3/model/AbstractLangString.java | 27 +-- .../v3/model/AdministrativeInformation.java | 39 ++--- .../model/AnnotatedRelationshipElement.java | 20 ++- .../v3/model/AssetAdministrationShell.java | 28 +-- .../AssetAdministrationShellDescriptor.java | 19 ++- .../AssetAdministrationShellEnvironment.java | 28 +-- .../aas4j/v3/model/AssetInformation.java | 36 ++-- .../digitaltwin/aas4j/v3/model/AssetKind.java | 11 +- .../aas4j/v3/model/BaseOperationResult.java | 67 ++++++++ .../aas4j/v3/model/BasicEventElement.java | 44 ++--- .../digitaltwin/aas4j/v3/model/Blob.java | 20 ++- .../aas4j/v3/model/Capability.java | 12 +- .../aas4j/v3/model/ConceptDescription.java | 20 ++- .../v3/model/CustomDataSpecification.java | 34 ++++ .../aas4j/v3/model/DataElement.java | 21 ++- .../v3/model/DataSpecificationContent.java | 12 +- .../v3/model/DataSpecificationIec61360.java | 64 +++---- .../aas4j/v3/model/DataTypeDefXsd.java | 161 ++++++++---------- .../aas4j/v3/model/DataTypeIec61360.java | 16 +- .../aas4j/v3/model/Descriptor.java | 23 +-- .../digitaltwin/aas4j/v3/model/Direction.java | 11 +- .../v3/model/EmbeddedDataSpecification.java | 20 ++- .../digitaltwin/aas4j/v3/model/Endpoint.java | 15 +- .../digitaltwin/aas4j/v3/model/Entity.java | 32 ++-- .../aas4j/v3/model/EntityType.java | 11 +- .../aas4j/v3/model/Environment.java | 28 +-- .../aas4j/v3/model/EventElement.java | 11 +- .../aas4j/v3/model/EventPayload.java | 44 ++--- .../aas4j/v3/model/ExecutionState.java | 46 +++-- .../digitaltwin/aas4j/v3/model/Extension.java | 32 ++-- .../digitaltwin/aas4j/v3/model/File.java | 20 ++- .../aas4j/v3/model/HasDataSpecification.java | 31 ++-- .../aas4j/v3/model/HasExtensions.java | 19 ++- .../digitaltwin/aas4j/v3/model/HasKind.java | 15 +- .../aas4j/v3/model/HasSemantics.java | 33 ++-- .../aas4j/v3/model/Identifiable.java | 23 +-- .../digitaltwin/aas4j/v3/model/Key.java | 20 ++- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 76 ++++----- .../aas4j/v3/model/LangString.java | 13 +- .../LangStringDefinitionTypeIec61360.java | 12 +- .../aas4j/v3/model/LangStringNameType.java | 12 +- .../LangStringPreferredNameTypeIec61360.java | 12 +- .../LangStringShortNameTypeIec61360.java | 12 +- .../aas4j/v3/model/LangStringTextType.java | 12 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 28 +-- .../digitaltwin/aas4j/v3/model/Message.java | 15 +- .../aas4j/v3/model/MessageType.java | 41 +++-- .../digitaltwin/aas4j/v3/model/ModelType.java | 111 +++++------- .../aas4j/v3/model/ModellingKind.java | 11 +- .../aas4j/v3/model/MultiLanguageProperty.java | 24 +-- .../digitaltwin/aas4j/v3/model/Operation.java | 28 +-- .../aas4j/v3/model/OperationHandle.java | 15 +- .../aas4j/v3/model/OperationRequest.java | 19 ++- .../aas4j/v3/model/OperationResult.java | 19 ++- .../aas4j/v3/model/OperationVariable.java | 16 +- .../aas4j/v3/model/PackageDescription.java | 19 ++- .../digitaltwin/aas4j/v3/model/Property.java | 24 +-- .../aas4j/v3/model/ProtocolInformation.java | 33 +++- .../aas4j/v3/model/Qualifiable.java | 23 +-- .../digitaltwin/aas4j/v3/model/Qualifier.java | 32 ++-- .../aas4j/v3/model/QualifierKind.java | 11 +- .../digitaltwin/aas4j/v3/model/Range.java | 24 +-- .../digitaltwin/aas4j/v3/model/Referable.java | 35 ++-- .../digitaltwin/aas4j/v3/model/Reference.java | 28 +-- .../aas4j/v3/model/ReferenceElement.java | 16 +- .../aas4j/v3/model/ReferenceTypes.java | 11 +- .../aas4j/v3/model/RelationshipElement.java | 22 +-- .../digitaltwin/aas4j/v3/model/Resource.java | 20 ++- .../digitaltwin/aas4j/v3/model/Result.java | 19 ++- .../v3/model/SecurityAttributeObject.java | 84 +++++++++ .../aas4j/v3/model/SecurityTypeEnum.java | 32 ++++ .../aas4j/v3/model/SpecificAssetId.java | 24 +-- .../aas4j/v3/model/StateOfEvent.java | 11 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 20 ++- .../aas4j/v3/model/SubmodelDescriptor.java | 15 +- .../aas4j/v3/model/SubmodelElement.java | 25 +-- .../v3/model/SubmodelElementAttributes.java | 15 +- .../v3/model/SubmodelElementCollection.java | 20 ++- .../aas4j/v3/model/SubmodelElementList.java | 36 ++-- .../digitaltwin/aas4j/v3/model/ValueList.java | 20 ++- .../aas4j/v3/model/ValueReferencePair.java | 20 ++- .../aas4j/v3/model/annotations/IRI.java | 10 +- .../v3/model/annotations/KnownSubtypes.java | 12 +- .../AdministrativeInformationBuilder.java | 32 ++-- .../AnnotatedRelationshipElementBuilder.java | 59 +++---- .../AssetAdministrationShellBuilder.java | 53 +++--- ...tAdministrationShellDescriptorBuilder.java | 43 +++-- ...AdministrationShellEnvironmentBuilder.java | 29 ++-- .../builder/BaseOperationResultBuilder.java | 47 +++++ .../aas4j/v3/model/builder/Builder.java | 2 +- .../DataSpecificationIec61360Builder.java | 51 +++--- .../EmbeddedDataSpecificationBuilder.java | 18 +- ...ngStringDefinitionTypeIec61360Builder.java | 16 +- ...tringPreferredNameTypeIec61360Builder.java | 16 +- ...angStringShortNameTypeIec61360Builder.java | 16 +- .../builder/ProtocolInformationBuilder.java | 26 ++- .../SecurityAttributeObjectBuilder.java | 58 +++++++ .../builder/SecurityTypeEnumBuilder.java | 24 +++ .../SubmodelElementAttributesBuilder.java | 53 +++--- .../SubmodelElementCollectionBuilder.java | 55 +++--- .../impl/DefaultBaseOperationResult.java | 107 ++++++++++++ .../impl/DefaultProtocolInformation.java | 19 +++ .../impl/DefaultSecurityAttributeObject.java | 123 +++++++++++++ .../model/impl/DefaultSecurityTypeEnum.java | 74 ++++++++ 105 files changed, 2015 insertions(+), 1252 deletions(-) create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index 74b6c6c36..b5cd3625b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -25,106 +28,89 @@ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") BLOB, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") CAPABILITY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") DATA_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") ENTITY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") EVENT_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") FILE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") OPERATION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") PROPERTY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") RANGE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") REFERENCE_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") SUBMODEL_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") - SUBMODEL_ELEMENT_LIST + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index 63d53a7c7..43f849ef8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,25 +16,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Strings with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringTextType.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringTextType.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) }) public interface AbstractLangString { /** * Language tag conforming to BCP 47 - *

+ * * More information under https://admin-shell.io/aas/3/2/AbstractLangString/language * * @return Returns the String for the property language. @@ -44,7 +47,7 @@ public interface AbstractLangString { /** * Language tag conforming to BCP 47 - *

+ * * More information under https://admin-shell.io/aas/3/2/AbstractLangString/language * * @param language desired value for the property language. @@ -53,7 +56,7 @@ public interface AbstractLangString { /** * Text in the 'language' - *

+ * * More information under https://admin-shell.io/aas/3/2/AbstractLangString/text * * @return Returns the String for the property text. @@ -63,7 +66,7 @@ public interface AbstractLangString { /** * Text in the 'language' - *

+ * * More information under https://admin-shell.io/aas/3/2/AbstractLangString/text * * @param text desired value for the property text. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 935e8ee98..39bb109fa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,24 +16,25 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import javax.xml.datatype.XMLGregorianCalendar; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAdministrativeInformation; - -import javax.xml.datatype.XMLGregorianCalendar; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Administrative meta-information for an element like version information. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) + @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) }) public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was created. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt * * @return Returns the XMLGregorianCalendar for the property createdAt. @@ -43,7 +44,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was created. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt * * @param createdAt desired value for the property createdAt. @@ -52,7 +53,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version * * @return Returns the String for the property version. @@ -62,7 +63,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version * * @param version desired value for the property version. @@ -71,7 +72,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision * * @return Returns the String for the property revision. @@ -81,7 +82,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision * * @param revision desired value for the property revision. @@ -90,7 +91,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator * * @return Returns the Reference for the property creator. @@ -100,7 +101,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator * * @param creator desired value for the property creator. @@ -109,7 +110,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Identifier of the template that guided the creation of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId * * @return Returns the String for the property templateId. @@ -119,7 +120,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Identifier of the template that guided the creation of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId * * @param templateId desired value for the property templateId. @@ -128,7 +129,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was last updated. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt * * @return Returns the XMLGregorianCalendar for the property updatedAt. @@ -138,7 +139,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The date and time when the element was last updated. - *

+ * * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt * * @param updatedAt desired value for the property updatedAt. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index 1adb2bd3a..a84addefe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,11 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAnnotatedRelationshipElement; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -27,14 +29,14 @@ * data elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) }) public interface AnnotatedRelationshipElement extends RelationshipElement { /** * A data element that represents an annotation that holds for the relationship between the two * elements - *

+ * * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations * * @return Returns the List of DataElements for the property annotations. @@ -45,7 +47,7 @@ public interface AnnotatedRelationshipElement extends RelationshipElement { /** * A data element that represents an annotation that holds for the relationship between the two * elements - *

+ * * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations * * @param annotations desired value for the property annotations. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index d587cd405..5e5dc7a19 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShell; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An asset administration shell. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) + @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) }) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { /** * The reference to the AAS the AAS was derived from. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom * * @return Returns the Reference for the property derivedFrom. @@ -42,7 +44,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * The reference to the AAS the AAS was derived from. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom * * @param derivedFrom desired value for the property derivedFrom. @@ -51,7 +53,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * Meta-information about the asset the AAS is representing. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation * * @return Returns the AssetInformation for the property assetInformation. @@ -61,7 +63,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * Meta-information about the asset the AAS is representing. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation * * @param assetInformation desired value for the property assetInformation. @@ -70,7 +72,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels * * @return Returns the List of References for the property submodels. @@ -80,7 +82,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels * * @param submodels desired value for the property submodels. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index f4986e24b..cd2ddb245 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellDescriptor; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) + @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) }) public interface AssetAdministrationShellDescriptor extends Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java index f06adbc06..23f84da45 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellEnvironment; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Container for the sets of different identifiables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class) + @KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class) }) public interface AssetAdministrationShellEnvironment { /** * Asset administration shell - *

+ * * More information under * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells * @@ -43,7 +45,7 @@ public interface AssetAdministrationShellEnvironment { /** * Asset administration shell - *

+ * * More information under * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells * @@ -53,7 +55,7 @@ public interface AssetAdministrationShellEnvironment { /** * Concept description - *

+ * * More information under * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions * @@ -64,7 +66,7 @@ public interface AssetAdministrationShellEnvironment { /** * Concept description - *

+ * * More information under * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions * @@ -74,7 +76,7 @@ public interface AssetAdministrationShellEnvironment { /** * Submodel - *

+ * * More information under * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels * @@ -85,7 +87,7 @@ public interface AssetAdministrationShellEnvironment { /** * Submodel - *

+ * * More information under * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 83c063743..9ac8301d6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,11 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetInformation; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -27,13 +29,13 @@ * defined. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetInformation.class) + @KnownSubtypes.Type(value = DefaultAssetInformation.class) }) public interface AssetInformation { /** * Denotes whether the Asset is of kind 'Type' or 'Instance'. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind * * @return Returns the AssetKind for the property assetKind. @@ -43,7 +45,7 @@ public interface AssetInformation { /** * Denotes whether the Asset is of kind 'Type' or 'Instance'. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind * * @param assetKind desired value for the property assetKind. @@ -52,7 +54,7 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId * * @return Returns the String for the property globalAssetId. @@ -62,7 +64,7 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. @@ -72,7 +74,7 @@ public interface AssetInformation { /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. @@ -83,7 +85,7 @@ public interface AssetInformation { /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. @@ -93,7 +95,7 @@ public interface AssetInformation { /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset * under consideration as identified by 'globalAssetId'. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType * * @return Returns the String for the property assetType. @@ -104,7 +106,7 @@ public interface AssetInformation { /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset * under consideration as identified by 'globalAssetId'. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType * * @param assetType desired value for the property assetType. @@ -113,7 +115,7 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail * * @return Returns the Resource for the property defaultThumbnail. @@ -123,7 +125,7 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. - *

+ * * More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail * * @param defaultThumbnail desired value for the property defaultThumbnail. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 56b8ff23a..b7e4f4f26 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -53,6 +56,6 @@ public enum AssetKind { * Type asset */ @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") - TYPE + TYPE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java new file mode 100644 index 000000000..1dca6f679 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultBaseOperationResult.class) +}) +public interface BaseOperationResult { + + /** + * + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState + * + * @return Returns the ExecutionState for the property executionState. + */ + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") + ExecutionState getExecutionState(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState + * + * @param executionState desired value for the property executionState. + */ + void setExecutionState(ExecutionState executionState); + + /** + * + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") + boolean getSuccess(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 33a1171e2..24811b13b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,23 +16,25 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBasicEventElement; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A basic event element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBasicEventElement.class) + @KnownSubtypes.Type(value = DefaultBasicEventElement.class) }) public interface BasicEventElement extends EventElement { /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed * * @return Returns the Reference for the property observed. @@ -43,7 +45,7 @@ public interface BasicEventElement extends EventElement { /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed * * @param observed desired value for the property observed. @@ -52,7 +54,7 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction * * @return Returns the Direction for the property direction. @@ -62,7 +64,7 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction * * @param direction desired value for the property direction. @@ -71,7 +73,7 @@ public interface BasicEventElement extends EventElement { /** * State of event. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/state * * @return Returns the StateOfEvent for the property state. @@ -81,7 +83,7 @@ public interface BasicEventElement extends EventElement { /** * State of event. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/state * * @param state desired value for the property state. @@ -91,7 +93,7 @@ public interface BasicEventElement extends EventElement { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic * * @return Returns the String for the property messageTopic. @@ -102,7 +104,7 @@ public interface BasicEventElement extends EventElement { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic * * @param messageTopic desired value for the property messageTopic. @@ -113,7 +115,7 @@ public interface BasicEventElement extends EventElement { * Information, which outer message infrastructure shall handle messages for the 'EventElement'. * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker * * @return Returns the Reference for the property messageBroker. @@ -125,7 +127,7 @@ public interface BasicEventElement extends EventElement { * Information, which outer message infrastructure shall handle messages for the 'EventElement'. * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker * * @param messageBroker desired value for the property messageBroker. @@ -134,7 +136,7 @@ public interface BasicEventElement extends EventElement { /** * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate * * @return Returns the String for the property lastUpdate. @@ -144,7 +146,7 @@ public interface BasicEventElement extends EventElement { /** * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate * * @param lastUpdate desired value for the property lastUpdate. @@ -154,7 +156,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction, reports on the maximum frequency, the software entity behind the respective * Referable can handle input events. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval * * @return Returns the String for the property minInterval. @@ -165,7 +167,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction, reports on the maximum frequency, the software entity behind the respective * Referable can handle input events. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval * * @param minInterval desired value for the property minInterval. @@ -174,7 +176,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval * * @return Returns the String for the property maxInterval. @@ -184,7 +186,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. - *

+ * * More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval * * @param maxInterval desired value for the property maxInterval. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index cd18a16b0..03590ef1a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBlob; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,13 +28,13 @@ * value attribute. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBlob.class) + @KnownSubtypes.Type(value = DefaultBlob.class) }) public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Blob/value * * @return Returns the byte[] for the property value. @@ -42,7 +44,7 @@ public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Blob/value * * @param value desired value for the property value. @@ -51,7 +53,7 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. - *

+ * * More information under https://admin-shell.io/aas/3/2/Blob/contentType * * @return Returns the String for the property contentType. @@ -61,7 +63,7 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. - *

+ * * More information under https://admin-shell.io/aas/3/2/Blob/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 3f5c0fd2c..2c95a1693 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,8 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCapability; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -25,7 +27,7 @@ * achieve a certain effect in the physical or virtual world. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultCapability.class) + @KnownSubtypes.Type(value = DefaultCapability.class) }) public interface Capability extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 3423479d1..6a8db6f5d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,11 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultConceptDescription; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -27,13 +29,13 @@ * a concept description. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultConceptDescription.class) + @KnownSubtypes.Type(value = DefaultConceptDescription.class) }) public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. - *

+ * * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * * @return Returns the List of References for the property isCaseOfs. @@ -43,7 +45,7 @@ public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. - *

+ * * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * * @param isCaseOfs desired value for the property isCaseOfs. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java new file mode 100644 index 000000000..157943973 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + +/** + * A custom data specification is a user-defined extension of the standard data specification + * content. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultCustomDataSpecification.class) +}) +public interface CustomDataSpecification extends DataSpecificationContent { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 3639c5d49..09247fef1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,19 +16,22 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) public interface DataElement extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 8203fe866..2fcc9a5c4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -25,7 +28,8 @@ * and meta information about the template itself. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class) + @KnownSubtypes.Type(value = DataSpecificationIec61360.class), + @KnownSubtypes.Type(value = CustomDataSpecification.class) }) public interface DataSpecificationContent { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index 704e3966a..3651f3cdc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,11 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDataSpecificationIec61360; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -27,13 +29,13 @@ * lists conformant to IEC 61360. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) + @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) }) public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Preferred name - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredNames. @@ -43,7 +45,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Preferred name - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @param preferredNames desired value for the property preferredNames. @@ -52,7 +54,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Short name - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. @@ -62,7 +64,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Short name - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * * @param shortNames desired value for the property shortNames. @@ -71,7 +73,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unit - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit * * @return Returns the String for the property unit. @@ -81,7 +83,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unit - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit * * @param unit desired value for the property unit. @@ -90,7 +92,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId * * @return Returns the Reference for the property unitId. @@ -100,7 +102,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId * * @param unitId desired value for the property unitId. @@ -109,7 +111,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Source of definition - *

+ * * More information under * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition * @@ -120,7 +122,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Source of definition - *

+ * * More information under * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition * @@ -130,7 +132,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol * * @return Returns the String for the property symbol. @@ -140,7 +142,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol * * @param symbol desired value for the property symbol. @@ -149,7 +151,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType * * @return Returns the DataTypeIec61360 for the property dataType. @@ -159,7 +161,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType * * @param dataType desired value for the property dataType. @@ -168,7 +170,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. @@ -178,7 +180,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * * @param definitions desired value for the property definitions. @@ -187,7 +189,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value Format - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat * * @return Returns the String for the property valueFormat. @@ -197,7 +199,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value Format - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat * * @param valueFormat desired value for the property valueFormat. @@ -206,7 +208,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList * * @return Returns the ValueList for the property valueList. @@ -216,7 +218,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList * * @param valueList desired value for the property valueList. @@ -225,7 +227,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value * * @return Returns the String for the property value. @@ -235,7 +237,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value * * @param value desired value for the property value. @@ -244,7 +246,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType * * @return Returns the LevelType for the property levelType. @@ -254,7 +256,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. - *

+ * * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType * * @param levelType desired value for the property levelType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index 8b80a3ca2..57a614256 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -25,184 +28,154 @@ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") ANY_URI, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") BASE64BINARY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") BOOLEAN, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") BYTE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") DATE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") DATE_TIME, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") DECIMAL, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") DOUBLE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") DURATION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") FLOAT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") GDAY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") GMONTH, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") GMONTH_DAY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") GYEAR, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") GYEAR_MONTH, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") HEX_BINARY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") INT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") INTEGER, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") LONG, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") NEGATIVE_INTEGER, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") NON_NEGATIVE_INTEGER, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") NON_POSITIVE_INTEGER, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") POSITIVE_INTEGER, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") SHORT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") STRING, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") TIME, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") UNSIGNED_BYTE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") UNSIGNED_INT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") UNSIGNED_LONG, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") - UNSIGNED_SHORT + UNSIGNED_SHORT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 8963a8654..beee50db7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,12 +16,14 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; -/** - * - */ +/** +*/ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { @@ -145,6 +147,6 @@ public enum DataTypeIec61360 { * corresponding type in xml. */ @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") - TIMESTAMP + TIMESTAMP; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index e567a369b..60e800d97 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,20 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDescriptor; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDescriptor.class), - @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), - @KnownSubtypes.Type(value = SubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultDescriptor.class), + @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), + @KnownSubtypes.Type(value = SubmodelDescriptor.class) }) public interface Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index 943ef8701..2f68b2d0c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -35,6 +38,6 @@ public enum Direction { * Output direction */ @IRI("https://admin-shell.io/aas/3/2/Direction/Output") - OUTPUT + OUTPUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 0531c1d1d..6eeff35c2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,22 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Embed the content of a data specification. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) + @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) }) public interface EmbeddedDataSpecification { /** * Reference to the data specification - *

+ * * More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification * * @return Returns the Reference for the property dataSpecification. @@ -41,7 +43,7 @@ public interface EmbeddedDataSpecification { /** * Reference to the data specification - *

+ * * More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification * * @param dataSpecification desired value for the property dataSpecification. @@ -50,7 +52,7 @@ public interface EmbeddedDataSpecification { /** * Actual content of the data specification - *

+ * * More information under * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent * @@ -61,7 +63,7 @@ public interface EmbeddedDataSpecification { /** * Actual content of the data specification - *

+ * * More information under * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index 7e3751efc..8a4ed2dcb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,16 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEndpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEndpoint.class) + @KnownSubtypes.Type(value = DefaultEndpoint.class) }) public interface Endpoint { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index 5173debf0..69ae62a28 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,25 +15,27 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEntity; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An entity is a submodel element that is used to model entities. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEntity.class) + @KnownSubtypes.Type(value = DefaultEntity.class) }) public interface Entity extends SubmodelElement { /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/statements * * @return Returns the List of SubmodelElements for the property statements. @@ -44,7 +46,7 @@ public interface Entity extends SubmodelElement { /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/statements * * @param statements desired value for the property statements. @@ -53,7 +55,7 @@ public interface Entity extends SubmodelElement { /** * Describes whether the entity is a co-managed entity or a self-managed entity. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/entityType * * @return Returns the EntityType for the property entityType. @@ -63,7 +65,7 @@ public interface Entity extends SubmodelElement { /** * Describes whether the entity is a co-managed entity or a self-managed entity. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/entityType * * @param entityType desired value for the property entityType. @@ -72,7 +74,7 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId * * @return Returns the String for the property globalAssetId. @@ -82,7 +84,7 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. @@ -92,7 +94,7 @@ public interface Entity extends SubmodelElement { /** * Reference to a specific asset ID representing a supplementary identifier of the asset represented * by the Asset Administration Shell. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. @@ -103,7 +105,7 @@ public interface Entity extends SubmodelElement { /** * Reference to a specific asset ID representing a supplementary identifier of the asset represented * by the Asset Administration Shell. - *

+ * * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 13559642e..1f9883f34 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -37,6 +40,6 @@ public enum EntityType { * self-managed entity. */ @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") - SELF_MANAGED_ENTITY + SELF_MANAGED_ENTITY; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index 0591a2263..d3f42d474 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEnvironment; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Container for the sets of different identifiables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEnvironment.class) + @KnownSubtypes.Type(value = DefaultEnvironment.class) }) public interface Environment { /** * Asset administration shell - *

+ * * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. @@ -42,7 +44,7 @@ public interface Environment { /** * Asset administration shell - *

+ * * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * * @param assetAdministrationShells desired value for the property assetAdministrationShells. @@ -51,7 +53,7 @@ public interface Environment { /** * Submodel - *

+ * * More information under https://admin-shell.io/aas/3/2/Environment/submodels * * @return Returns the List of Submodels for the property submodels. @@ -61,7 +63,7 @@ public interface Environment { /** * Submodel - *

+ * * More information under https://admin-shell.io/aas/3/2/Environment/submodels * * @param submodels desired value for the property submodels. @@ -70,7 +72,7 @@ public interface Environment { /** * Concept description - *

+ * * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions * * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. @@ -80,7 +82,7 @@ public interface Environment { /** * Concept description - *

+ * * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions * * @param conceptDescriptions desired value for the property conceptDescriptions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index 3ba487b47..f0d1f1ebd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,14 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An event element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = BasicEventElement.class) + @KnownSubtypes.Type(value = BasicEventElement.class) }) public interface EventElement extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index 32c69e48f..cd0b0411a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,23 +16,25 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEventPayload; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Defines the necessary information of an event instance sent out or received. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEventPayload.class) + @KnownSubtypes.Type(value = DefaultEventPayload.class) }) public interface EventPayload { /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/source * * @return Returns the Reference for the property source. @@ -43,7 +45,7 @@ public interface EventPayload { /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/source * * @param source desired value for the property source. @@ -52,7 +54,7 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId * * @return Returns the Reference for the property sourceSemanticId. @@ -62,7 +64,7 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId * * @param sourceSemanticId desired value for the property sourceSemanticId. @@ -71,7 +73,7 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference * * @return Returns the Reference for the property observableReference. @@ -81,7 +83,7 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference * * @param observableReference desired value for the property observableReference. @@ -90,7 +92,7 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId * * @return Returns the Reference for the property observableSemanticId. @@ -100,7 +102,7 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId * * @param observableSemanticId desired value for the property observableSemanticId. @@ -110,7 +112,7 @@ public interface EventPayload { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/topic * * @return Returns the String for the property topic. @@ -121,7 +123,7 @@ public interface EventPayload { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/topic * * @param topic desired value for the property topic. @@ -130,7 +132,7 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId * * @return Returns the Reference for the property subjectId. @@ -140,7 +142,7 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId * * @param subjectId desired value for the property subjectId. @@ -149,7 +151,7 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp * * @return Returns the String for the property timeStamp. @@ -159,7 +161,7 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp * * @param timeStamp desired value for the property timeStamp. @@ -168,7 +170,7 @@ public interface EventPayload { /** * Event specific payload. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/payload * * @return Returns the byte[] for the property payload. @@ -178,7 +180,7 @@ public interface EventPayload { /** * Event specific payload. - *

+ * * More information under https://admin-shell.io/aas/3/2/EventPayload/payload * * @param payload desired value for the property payload. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index b83295f7d..69ecdc356 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,49 +16,45 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; -/** - * - */ +/** +*/ @IRI("aas:ExecutionState") public enum ExecutionState { - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") CANCELED, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") COMPLETED, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") FAILED, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") INITIATED, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") RUNNING, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Timeout") - TIMEOUT + TIMEOUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index 2188b05b3..d246f4d8b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultExtension; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Single extension of an element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultExtension.class) + @KnownSubtypes.Type(value = DefaultExtension.class) }) public interface Extension extends HasSemantics { /** * Name of the extension. - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/name * * @return Returns the String for the property name. @@ -42,7 +44,7 @@ public interface Extension extends HasSemantics { /** * Name of the extension. - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/name * * @param name desired value for the property name. @@ -51,7 +53,7 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -61,7 +63,7 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/valueType * * @param valueType desired value for the property valueType. @@ -70,7 +72,7 @@ public interface Extension extends HasSemantics { /** * Value of the extension - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/value * * @return Returns the String for the property value. @@ -80,7 +82,7 @@ public interface Extension extends HasSemantics { /** * Value of the extension - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/value * * @param value desired value for the property value. @@ -89,7 +91,7 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/refersTo * * @return Returns the List of References for the property refersTos. @@ -99,7 +101,7 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. - *

+ * * More information under https://admin-shell.io/aas/3/2/Extension/refersTo * * @param refersTos desired value for the property refersTos. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index c01b734f4..d1d1f2b42 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,22 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultFile; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A File is a data element that represents an address to a file (a locator). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultFile.class) + @KnownSubtypes.Type(value = DefaultFile.class) }) public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). - *

+ * * More information under https://admin-shell.io/aas/3/2/File/value * * @return Returns the String for the property value. @@ -41,7 +43,7 @@ public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). - *

+ * * More information under https://admin-shell.io/aas/3/2/File/value * * @param value desired value for the property value. @@ -50,7 +52,7 @@ public interface File extends DataElement { /** * Content type of the content of the file. - *

+ * * More information under https://admin-shell.io/aas/3/2/File/contentType * * @return Returns the String for the property contentType. @@ -60,7 +62,7 @@ public interface File extends DataElement { /** * Content type of the content of the file. - *

+ * * More information under https://admin-shell.io/aas/3/2/File/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 9d761ca12..c7a40f367 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,40 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Element that can be extended by using data specification templates. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface HasDataSpecification { /** * Embedded data specification. - *

+ * * More information under * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications * * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. + * embeddedDataSpecifications. */ @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") List getEmbeddedDataSpecifications(); /** * Embedded data specification. - *

+ * * More information under * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index aefc97f85..37b4acb31 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,23 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Element that can be extended by proprietary extensions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Referable.class) + @KnownSubtypes.Type(value = Referable.class) }) public interface HasExtensions { /** * An extension of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions * * @return Returns the List of Extensions for the property extensions. @@ -41,7 +44,7 @@ public interface HasExtensions { /** * An extension of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions * * @param extensions desired value for the property extensions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index 006285b9a..b416c2c17 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,21 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An element with a kind is an element that can either represent a template or an instance. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasKind { /** * Kind of the element: either template or instance. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasKind/kind * * @return Returns the ModellingKind for the property kind. @@ -40,7 +43,7 @@ public interface HasKind { /** * Kind of the element: either template or instance. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasKind/kind * * @param kind desired value for the property kind. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index 95541ae8c..6635cca24 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { /** * Identifier of the semantic definition of the element. It is called semantic ID of the element or * also main semantic ID of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @return Returns the Reference for the property semanticId. @@ -48,7 +51,7 @@ public interface HasSemantics { /** * Identifier of the semantic definition of the element. It is called semantic ID of the element or * also main semantic ID of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @param semanticId desired value for the property semanticId. @@ -58,7 +61,7 @@ public interface HasSemantics { /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds * * @return Returns the List of References for the property supplementalSemanticIds. @@ -69,7 +72,7 @@ public interface HasSemantics { /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds * * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index d3e13fadf..c5a49b6e4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,23 +16,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An element that has a globally unique identifier. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Identifiable/administration * * @return Returns the AdministrativeInformation for the property administration. @@ -42,7 +45,7 @@ public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Identifiable/administration * * @param administration desired value for the property administration. @@ -51,7 +54,7 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Identifiable/id * * @return Returns the String for the property id. @@ -61,7 +64,7 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Identifiable/id * * @param id desired value for the property id. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index adc9e4928..166a5341b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,22 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultKey; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A key is a reference to an element by its ID. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultKey.class) + @KnownSubtypes.Type(value = DefaultKey.class) }) public interface Key { /** * Denotes which kind of entity is referenced. - *

+ * * More information under https://admin-shell.io/aas/3/2/Key/type * * @return Returns the KeyTypes for the property type. @@ -41,7 +43,7 @@ public interface Key { /** * Denotes which kind of entity is referenced. - *

+ * * More information under https://admin-shell.io/aas/3/2/Key/type * * @param type desired value for the property type. @@ -50,7 +52,7 @@ public interface Key { /** * The key value, for example an IRDI or an URI - *

+ * * More information under https://admin-shell.io/aas/3/2/Key/value * * @return Returns the String for the property value. @@ -60,7 +62,7 @@ public interface Key { /** * The key value, for example an IRDI or an URI - *

+ * * More information under https://admin-shell.io/aas/3/2/Key/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index 1208343cf..56c5c4954 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -25,39 +28,33 @@ @IRI("aas:KeyTypes") public enum KeyTypes { - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") BLOB, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") CAPABILITY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") CONCEPT_DESCRIPTION, @@ -67,9 +64,8 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") DATA_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") ENTITY, @@ -79,9 +75,8 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") EVENT_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") FILE, @@ -91,9 +86,8 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") FRAGMENT_REFERENCE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") GLOBAL_REFERENCE, @@ -109,15 +103,13 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") OPERATION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") PROPERTY, @@ -127,9 +119,8 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") RANGE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") REFERABLE, @@ -145,9 +136,8 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") SUBMODEL, @@ -167,6 +157,6 @@ public enum KeyTypes { * List of Submodel Elements */ @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") - SUBMODEL_ELEMENT_LIST + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index 1e0881722..b88b19636 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,12 +15,15 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - import java.io.Serializable; import java.util.Objects; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + @IRI("rdf:langString") public class LangString implements Serializable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index 737af1f6b..f9b31845d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringDefinitionTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) }) public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 7ee7c2f4b..5bf87106c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * String with length 128 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringNameType.class) + @KnownSubtypes.Type(value = DefaultLangStringNameType.class) }) public interface LangStringNameType extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 895d1fb3d..be86f5c0d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringPreferredNameTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * String with length 255 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) }) public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index b1a518509..0a58632ae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringShortNameTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * String with length 18 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) }) public interface LangStringShortNameTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index e125247c8..db2e0ee28 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringTextType.class) + @KnownSubtypes.Type(value = DefaultLangStringTextType.class) }) public interface LangStringTextType extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index 832ac569c..05afd12f0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLevelType; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,13 +28,13 @@ * MAX. True means that the value is available, false means the value is not available. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLevelType.class) + @KnownSubtypes.Type(value = DefaultLevelType.class) }) public interface LevelType { /** * Minimum of the value - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/min * * @return Returns the boolean for the property min. @@ -42,7 +44,7 @@ public interface LevelType { /** * Minimum of the value - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/min * * @param min desired value for the property min. @@ -51,7 +53,7 @@ public interface LevelType { /** * Nominal value (value as designated) - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/nom * * @return Returns the boolean for the property nom. @@ -61,7 +63,7 @@ public interface LevelType { /** * Nominal value (value as designated) - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/nom * * @param nom desired value for the property nom. @@ -70,7 +72,7 @@ public interface LevelType { /** * Value as typically present - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/typ * * @return Returns the boolean for the property typ. @@ -80,7 +82,7 @@ public interface LevelType { /** * Value as typically present - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/typ * * @param typ desired value for the property typ. @@ -89,7 +91,7 @@ public interface LevelType { /** * Maximum of the value - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/max * * @return Returns the boolean for the property max. @@ -99,7 +101,7 @@ public interface LevelType { /** * Maximum of the value - *

+ * * More information under https://admin-shell.io/aas/3/2/LevelType/max * * @param max desired value for the property max. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index d48a8cd74..e8f98ce3d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,16 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMessage; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMessage.class) + @KnownSubtypes.Type(value = DefaultMessage.class) }) public interface Message { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java index 2fe8fbc66..3f9ac260e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,43 +16,40 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; -/** - * - */ +/** +*/ @IRI("aas:MessageType") public enum MessageType { - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") ERROR, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") EXCEPTION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") INFO, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") UNDEFINED, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") - WARNING + WARNING; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index 7aa215317..dca23dee2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,127 +16,110 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; -/** - * - */ +/** +*/ @IRI("aas:ModelType") public enum ModelType { - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") BLOB, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") CAPABILITY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") CONCEPT_DESCRIPTION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") ENTITY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/File") FILE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") OPERATION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") PROPERTY, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") QUALIFIER, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") RANGE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") REFERENCE, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") REFERENCE_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") SUBMODEL, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, - /** - * - */ + /** + */ @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementList") - SUBMODEL_ELEMENT_LIST + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 8015389a6..7312a6e1b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -37,6 +40,6 @@ public enum ModellingKind { * instance can be instantiated using it */ @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") - TEMPLATE + TEMPLATE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 8aa49e009..88a0ab462 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMultiLanguageProperty; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A property is a data element that has a multi-language value. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) + @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) }) public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. - *

+ * * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * * @return Returns the List of LangStringTextTypes for the property values. @@ -42,7 +44,7 @@ public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. - *

+ * * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * * @param values desired value for the property values. @@ -51,7 +53,7 @@ public interface MultiLanguageProperty extends DataElement { /** * Reference to the global unique ID of a coded value. - *

+ * * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId * * @return Returns the Reference for the property valueId. @@ -61,7 +63,7 @@ public interface MultiLanguageProperty extends DataElement { /** * Reference to the global unique ID of a coded value. - *

+ * * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index 0076a66d4..5e36aa7bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperation; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An operation is a submodel element with input and output variables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperation.class) + @KnownSubtypes.Type(value = DefaultOperation.class) }) public interface Operation extends SubmodelElement { /** * Input parameter of the operation. - *

+ * * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables * * @return Returns the List of OperationVariables for the property inputVariables. @@ -42,7 +44,7 @@ public interface Operation extends SubmodelElement { /** * Input parameter of the operation. - *

+ * * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables * * @param inputVariables desired value for the property inputVariables. @@ -51,7 +53,7 @@ public interface Operation extends SubmodelElement { /** * Output parameter of the operation. - *

+ * * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables * * @return Returns the List of OperationVariables for the property outputVariables. @@ -61,7 +63,7 @@ public interface Operation extends SubmodelElement { /** * Output parameter of the operation. - *

+ * * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables * * @param outputVariables desired value for the property outputVariables. @@ -70,7 +72,7 @@ public interface Operation extends SubmodelElement { /** * Parameter that is input and output of the operation. - *

+ * * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables * * @return Returns the List of OperationVariables for the property inoutputVariables. @@ -80,7 +82,7 @@ public interface Operation extends SubmodelElement { /** * Parameter that is input and output of the operation. - *

+ * * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables * * @param inoutputVariables desired value for the property inoutputVariables. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index 4b568f4bb..5f1634ec8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,16 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationHandle; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationHandle.class) + @KnownSubtypes.Type(value = DefaultOperationHandle.class) }) public interface OperationHandle { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 1ba0fbcc4..2399c47c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.math.BigInteger; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; - -import java.math.BigInteger; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationRequest.class) + @KnownSubtypes.Type(value = DefaultOperationRequest.class) }) public interface OperationRequest { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index d8bff2345..c02eaf901 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationResult; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationResult.class) + @KnownSubtypes.Type(value = DefaultOperationResult.class) }) public interface OperationResult { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index 27ff2183f..c2bdafc5f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationVariable; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,13 +28,13 @@ * variable of an operation. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationVariable.class) + @KnownSubtypes.Type(value = DefaultOperationVariable.class) }) public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element - *

+ * * More information under https://admin-shell.io/aas/3/2/OperationVariable/value * * @return Returns the SubmodelElement for the property value. @@ -42,7 +44,7 @@ public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element - *

+ * * More information under https://admin-shell.io/aas/3/2/OperationVariable/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index 45ec464e4..e554f5a20 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultPackageDescription; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultPackageDescription.class) + @KnownSubtypes.Type(value = DefaultPackageDescription.class) }) public interface PackageDescription { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index f4db5de42..a325bc076 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,22 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProperty; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A property is a data element that has a single value. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProperty.class) + @KnownSubtypes.Type(value = DefaultProperty.class) }) public interface Property extends DataElement { /** * Data type of the value - *

+ * * More information under https://admin-shell.io/aas/3/2/Property/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -41,7 +43,7 @@ public interface Property extends DataElement { /** * Data type of the value - *

+ * * More information under https://admin-shell.io/aas/3/2/Property/valueType * * @param valueType desired value for the property valueType. @@ -50,7 +52,7 @@ public interface Property extends DataElement { /** * The value of the property instance. - *

+ * * More information under https://admin-shell.io/aas/3/2/Property/value * * @return Returns the String for the property value. @@ -60,7 +62,7 @@ public interface Property extends DataElement { /** * The value of the property instance. - *

+ * * More information under https://admin-shell.io/aas/3/2/Property/value * * @param value desired value for the property value. @@ -69,7 +71,7 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Property/valueId * * @return Returns the Reference for the property valueId. @@ -79,7 +81,7 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Property/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index b3a91d277..10d3bc88a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProtocolInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProtocolInformation.class) + @KnownSubtypes.Type(value = DefaultProtocolInformation.class) }) public interface ProtocolInformation { @@ -80,6 +82,23 @@ public interface ProtocolInformation { */ void setEndpointProtocolVersion(String endpointProtocolVersion); + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes + * + * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") + List getSecurityAttributes(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes + * + * @param securityAttributes desired value for the property securityAttributes. + */ + void setSecurityAttributes(List securityAttributes); + /** * * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 3a54b1654..bc5cf933f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,25 +15,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface Qualifiable { /** * Additional qualification of a qualifiable element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers * * @return Returns the List of Qualifiers for the property qualifiers. @@ -43,7 +46,7 @@ public interface Qualifiable { /** * Additional qualification of a qualifiable element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers * * @param qualifiers desired value for the property qualifiers. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index 31ab50460..376b51ed3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultQualifier; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,13 +28,13 @@ * element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultQualifier.class) + @KnownSubtypes.Type(value = DefaultQualifier.class) }) public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/kind * * @return Returns the QualifierKind for the property kind. @@ -42,7 +44,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/kind * * @param kind desired value for the property kind. @@ -51,7 +53,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/type * * @return Returns the String for the property type. @@ -61,7 +63,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/type * * @param type desired value for the property type. @@ -70,7 +72,7 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -80,7 +82,7 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/valueType * * @param valueType desired value for the property valueType. @@ -89,7 +91,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/value * * @return Returns the String for the property value. @@ -99,7 +101,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/value * * @param value desired value for the property value. @@ -108,7 +110,7 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/valueId * * @return Returns the Reference for the property valueId. @@ -118,7 +120,7 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. - *

+ * * More information under https://admin-shell.io/aas/3/2/Qualifier/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index 0f6bf75b6..bccc1745b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -41,6 +44,6 @@ public enum QualifierKind { * qualifies the value of the element and can change during run-time. */ @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") - VALUE_QUALIFIER + VALUE_QUALIFIER; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 46ccb90c6..abeba8f60 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,22 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRange; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A range data element is a data element that defines a range with min and max. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRange.class) + @KnownSubtypes.Type(value = DefaultRange.class) }) public interface Range extends DataElement { /** * Data type of the min und max - *

+ * * More information under https://admin-shell.io/aas/3/2/Range/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -41,7 +43,7 @@ public interface Range extends DataElement { /** * Data type of the min und max - *

+ * * More information under https://admin-shell.io/aas/3/2/Range/valueType * * @param valueType desired value for the property valueType. @@ -50,7 +52,7 @@ public interface Range extends DataElement { /** * The minimum value of the range. - *

+ * * More information under https://admin-shell.io/aas/3/2/Range/min * * @return Returns the String for the property min. @@ -60,7 +62,7 @@ public interface Range extends DataElement { /** * The minimum value of the range. - *

+ * * More information under https://admin-shell.io/aas/3/2/Range/min * * @param min desired value for the property min. @@ -69,7 +71,7 @@ public interface Range extends DataElement { /** * The maximum value of the range. - *

+ * * More information under https://admin-shell.io/aas/3/2/Range/max * * @return Returns the String for the property max. @@ -79,7 +81,7 @@ public interface Range extends DataElement { /** * The maximum value of the range. - *

+ * * More information under https://admin-shell.io/aas/3/2/Range/max * * @param max desired value for the property max. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index f7776534f..7c2103ccc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,26 +15,29 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * An element that is referable by its 'idShort'. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Identifiable.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/category * * @return Returns the String for the property category. @@ -45,7 +48,7 @@ public interface Referable extends HasExtensions { /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/category * * @param category desired value for the property category. @@ -55,7 +58,7 @@ public interface Referable extends HasExtensions { /** * In case of identifiables this attribute is a short name of the element. In case of referable this * ID is an identifying string of the element within its name space. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @return Returns the String for the property idShort. @@ -66,7 +69,7 @@ public interface Referable extends HasExtensions { /** * In case of identifiables this attribute is a short name of the element. In case of referable this * ID is an identifying string of the element within its name space. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @param idShort desired value for the property idShort. @@ -75,7 +78,7 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/displayName * * @return Returns the List of LangStringNameTypes for the property displayNames. @@ -85,7 +88,7 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/displayName * * @param displayNames desired value for the property displayNames. @@ -94,7 +97,7 @@ public interface Referable extends HasExtensions { /** * Description or comments on the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/description * * @return Returns the List of LangStringTextTypes for the property descriptions. @@ -104,7 +107,7 @@ public interface Referable extends HasExtensions { /** * Description or comments on the element. - *

+ * * More information under https://admin-shell.io/aas/3/2/Referable/description * * @param descriptions desired value for the property descriptions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index 93d258da1..c22399452 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReference; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Reference to either a model element of the same or another AAS or to an external entity. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReference.class) + @KnownSubtypes.Type(value = DefaultReference.class) }) public interface Reference { /** * Type of the reference. - *

+ * * More information under https://admin-shell.io/aas/3/2/Reference/type * * @return Returns the ReferenceTypes for the property type. @@ -42,7 +44,7 @@ public interface Reference { /** * Type of the reference. - *

+ * * More information under https://admin-shell.io/aas/3/2/Reference/type * * @param type desired value for the property type. @@ -51,7 +53,7 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - *

+ * * More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId * * @return Returns the Reference for the property referredSemanticId. @@ -61,7 +63,7 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - *

+ * * More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId * * @param referredSemanticId desired value for the property referredSemanticId. @@ -70,7 +72,7 @@ public interface Reference { /** * Unique references in their name space. - *

+ * * More information under https://admin-shell.io/aas/3/2/Reference/keys * * @return Returns the List of Keys for the property keys. @@ -80,7 +82,7 @@ public interface Reference { /** * Unique references in their name space. - *

+ * * More information under https://admin-shell.io/aas/3/2/Reference/keys * * @param keys desired value for the property keys. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index 0f924304c..8d9cccd77 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReferenceElement; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,14 +28,14 @@ * the same or another AAS or a reference to an external object or entity. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReferenceElement.class) + @KnownSubtypes.Type(value = DefaultReferenceElement.class) }) public interface ReferenceElement extends DataElement { /** * Global reference to an external object or entity or a logical reference to another element within * the same or another AAS (i.e. a model reference to a Referable). - *

+ * * More information under https://admin-shell.io/aas/3/2/ReferenceElement/value * * @return Returns the Reference for the property value. @@ -44,7 +46,7 @@ public interface ReferenceElement extends DataElement { /** * Global reference to an external object or entity or a logical reference to another element within * the same or another AAS (i.e. a model reference to a Referable). - *

+ * * More information under https://admin-shell.io/aas/3/2/ReferenceElement/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index 22e1a7bca..9983b94fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -35,6 +38,6 @@ public enum ReferenceTypes { * Model reference. */ @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") - MODEL_REFERENCE + MODEL_REFERENCE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 7ec863bfb..8398fb728 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRelationshipElement; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,14 +28,14 @@ * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. - *

+ * * More information under https://admin-shell.io/aas/3/2/RelationshipElement/first * * @return Returns the Reference for the property first. @@ -43,7 +45,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. - *

+ * * More information under https://admin-shell.io/aas/3/2/RelationshipElement/first * * @param first desired value for the property first. @@ -52,7 +54,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. - *

+ * * More information under https://admin-shell.io/aas/3/2/RelationshipElement/second * * @return Returns the Reference for the property second. @@ -62,7 +64,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. - *

+ * * More information under https://admin-shell.io/aas/3/2/RelationshipElement/second * * @param second desired value for the property second. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 0a790235b..489d4be76 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResource; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,13 +28,13 @@ * absolute or relative path */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResource.class) + @KnownSubtypes.Type(value = DefaultResource.class) }) public interface Resource { /** * Path and name of the resource (with file extension). - *

+ * * More information under https://admin-shell.io/aas/3/2/Resource/path * * @return Returns the String for the property path. @@ -42,7 +44,7 @@ public interface Resource { /** * Path and name of the resource (with file extension). - *

+ * * More information under https://admin-shell.io/aas/3/2/Resource/path * * @param path desired value for the property path. @@ -51,7 +53,7 @@ public interface Resource { /** * Content type of the content of the file. - *

+ * * More information under https://admin-shell.io/aas/3/2/Resource/contentType * * @return Returns the String for the property contentType. @@ -61,7 +63,7 @@ public interface Resource { /** * Content type of the content of the file. - *

+ * * More information under https://admin-shell.io/aas/3/2/Resource/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index a50330de9..f9536ba6d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResult; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResult.class) + @KnownSubtypes.Type(value = DefaultResult.class) }) public interface Result { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java new file mode 100644 index 000000000..199d30145 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class) +}) +public interface SecurityAttributeObject { + + /** + * + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key + * + * @return Returns the String for the property key. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") + String getKey(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key + * + * @param key desired value for the property key. + */ + void setKey(String key); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") + String getValue(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type + * + * @return Returns the SecurityTypeEnum for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") + SecurityTypeEnum getType(); + + /** + * + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type + * + * @param type desired value for the property type. + */ + void setType(SecurityTypeEnum type); + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java new file mode 100644 index 000000000..b52310374 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + + + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSecurityTypeEnum.class) +}) +public interface SecurityTypeEnum { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index 9c990f205..458706d0f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,22 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSpecificAssetId; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A specific asset ID describes a generic supplementary identifying attribute of the asset. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) + @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) }) public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier - *

+ * * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name * * @return Returns the String for the property name. @@ -41,7 +43,7 @@ public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier - *

+ * * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name * * @param name desired value for the property name. @@ -50,7 +52,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. - *

+ * * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value * * @return Returns the String for the property value. @@ -60,7 +62,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. - *

+ * * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value * * @param value desired value for the property value. @@ -69,7 +71,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. - *

+ * * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId * * @return Returns the Reference for the property externalSubjectId. @@ -79,7 +81,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. - *

+ * * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId * * @param externalSubjectId desired value for the property externalSubjectId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index 3fe0ebf10..0376be54b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -35,6 +38,6 @@ public enum StateOfEvent { * Event is on */ @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") - ON + ON; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index 35648d75d..a9baad464 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodel; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A submodel defines a specific aspect of the asset represented by the AAS. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodel.class) + @KnownSubtypes.Type(value = DefaultSubmodel.class) }) public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { /** * A submodel consists of zero or more submodel elements. - *

+ * * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements * * @return Returns the List of SubmodelElements for the property submodelElements. @@ -42,7 +44,7 @@ public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiabl /** * A submodel consists of zero or more submodel elements. - *

+ * * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements * * @param submodelElements desired value for the property submodelElements. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index feb4c9bd0..d46ad5aed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,16 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) }) public interface SubmodelDescriptor extends Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index d8baaa2d5..cbf647736 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,21 +16,24 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A submodel element is an element suitable for the description and differentiation of assets. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) public interface SubmodelElement extends Referable, HasDataSpecification, HasSemantics, Qualifiable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index ecdb72bf2..e104b053c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,16 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementAttributes; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** - * - */ +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) }) public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index 665675922..61f3843b1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,11 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementCollection; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -27,13 +29,13 @@ * named values. It has a fixed number of submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) }) public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * * @return Returns the List of SubmodelElements for the property values. @@ -43,7 +45,7 @@ public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * * @param values desired value for the property values. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index e4bcb8175..c885cb683 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,25 +15,27 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementList; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A submodel element list is an ordered list of submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) }) public interface SubmodelElementList extends SubmodelElement { /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant * * @return Returns the boolean for the property orderRelevant. @@ -44,7 +46,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant * * @param orderRelevant desired value for the property orderRelevant. @@ -53,7 +55,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Semantic ID the submodel elements contained in the list match to. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement * * @return Returns the Reference for the property semanticIdListElement. @@ -63,7 +65,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Semantic ID the submodel elements contained in the list match to. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement * * @param semanticIdListElement desired value for the property semanticIdListElement. @@ -72,7 +74,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The submodel element type of the submodel elements contained in the list. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement * * @return Returns the AasSubmodelElements for the property typeValueListElement. @@ -82,7 +84,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The submodel element type of the submodel elements contained in the list. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement * * @param typeValueListElement desired value for the property typeValueListElement. @@ -91,7 +93,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The value type of the submodel element contained in the list. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement * * @return Returns the DataTypeDefXsd for the property valueTypeListElement. @@ -101,7 +103,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The value type of the submodel element contained in the list. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement * * @param valueTypeListElement desired value for the property valueTypeListElement. @@ -110,7 +112,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * * @return Returns the List of SubmodelElements for the property values. @@ -120,7 +122,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. - *

+ * * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * * @param values desired value for the property values. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 8dfb15e8b..36644fc0e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; + + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueList; - -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A set of value reference pairs. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueList.class) + @KnownSubtypes.Type(value = DefaultValueList.class) }) public interface ValueList { /** * A pair of a value together with its global unique id. - *

+ * * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs * * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. @@ -42,7 +44,7 @@ public interface ValueList { /** * A pair of a value together with its global unique id. - *

+ * * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs * * @param valueReferencePairs desired value for the property valueReferencePairs. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index b4ce5508b..5f1617d7e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,9 +16,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueReferencePair; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** @@ -26,13 +28,13 @@ * semantic. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueReferencePair.class) + @KnownSubtypes.Type(value = DefaultValueReferencePair.class) }) public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. - *

+ * * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value * * @return Returns the String for the property value. @@ -42,7 +44,7 @@ public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. - *

+ * * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value * * @param value desired value for the property value. @@ -51,7 +53,7 @@ public interface ValueReferencePair { /** * Global unique id of the value. - *

+ * * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId * * @return Returns the Reference for the property valueId. @@ -61,7 +63,7 @@ public interface ValueReferencePair { /** * Global unique id of the value. - *

+ * * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 412c61875..75948c97e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,8 +25,8 @@ * This annotation stores the IRI under which a certain element of a model is defined. Expected * behaviour when de-referencing the value of this annotation is a definition and further * information about this element. - * + * * @return IRI defining an element */ - String[] value() default {}; + public String[] value() default {}; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index 9c3b6268a..79431971e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,12 +25,12 @@ * This element stores the known sub-types, e.g. implementing classes of an interface, or extending * classes of a class. Note that this list can never be expected to be complete, as custom * implementations will not be included. - * + * * @return List of known implementing subtypes */ - KnownSubtypes.Type[] value(); + public KnownSubtypes.Type[] value(); - @interface Type { + public @interface Type { Class value(); String name() default ""; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index 5ab2438b7..e868b9378 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,20 +15,20 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; import javax.xml.datatype.XMLGregorianCalendar; -import java.util.List; + +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class AdministrativeInformationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for createdAt - * + * * @param createdAt desired value to be set * @return Builder object with new value for createdAt */ @@ -39,7 +39,7 @@ public B createdAt(XMLGregorianCalendar createdAt) { /** * This function allows setting a value for version - * + * * @param version desired value to be set * @return Builder object with new value for version */ @@ -50,7 +50,7 @@ public B version(String version) { /** * This function allows setting a value for revision - * + * * @param revision desired value to be set * @return Builder object with new value for revision */ @@ -61,7 +61,7 @@ public B revision(String revision) { /** * This function allows setting a value for creator - * + * * @param creator desired value to be set * @return Builder object with new value for creator */ @@ -72,7 +72,7 @@ public B creator(Reference creator) { /** * This function allows setting a value for templateId - * + * * @param templateId desired value to be set * @return Builder object with new value for templateId */ @@ -83,7 +83,7 @@ public B templateId(String templateId) { /** * This function allows setting a value for updatedAt - * + * * @param updatedAt desired value to be set * @return Builder object with new value for updatedAt */ @@ -94,7 +94,7 @@ public B updatedAt(XMLGregorianCalendar updatedAt) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -105,7 +105,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index 5e81decb6..b1494f581 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; -import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; -import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class AnnotatedRelationshipElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for annotations - * + * * @param annotations desired value to be set * @return Builder object with new value for annotations */ @@ -43,7 +38,7 @@ public B annotations(List annotations) { /** * This function allows adding a value to the List annotations - * + * * @param annotations desired value to be added * @return Builder object with new value for annotations */ @@ -54,7 +49,7 @@ public B annotations(DataElement annotations) { /** * This function allows setting a value for first - * + * * @param first desired value to be set * @return Builder object with new value for first */ @@ -65,7 +60,7 @@ public B first(Reference first) { /** * This function allows setting a value for second - * + * * @param second desired value to be set * @return Builder object with new value for second */ @@ -76,7 +71,7 @@ public B second(Reference second) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -87,7 +82,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -98,7 +93,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -109,7 +104,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -120,7 +115,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -131,7 +126,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -142,7 +137,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -153,7 +148,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -164,7 +159,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -175,7 +170,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -186,7 +181,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -197,7 +192,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -208,7 +203,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -219,7 +214,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -230,7 +225,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index 109573b68..a4c843713 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class AssetAdministrationShellBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for derivedFrom - * + * * @param derivedFrom desired value to be set * @return Builder object with new value for derivedFrom */ @@ -43,7 +38,7 @@ public B derivedFrom(Reference derivedFrom) { /** * This function allows setting a value for assetInformation - * + * * @param assetInformation desired value to be set * @return Builder object with new value for assetInformation */ @@ -54,7 +49,7 @@ public B assetInformation(AssetInformation assetInformation) { /** * This function allows setting a value for submodels - * + * * @param submodels desired value to be set * @return Builder object with new value for submodels */ @@ -65,7 +60,7 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels - * + * * @param submodels desired value to be added * @return Builder object with new value for submodels */ @@ -76,7 +71,7 @@ public B submodels(Reference submodels) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -87,7 +82,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -98,7 +93,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -109,7 +104,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -120,7 +115,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -131,7 +126,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -142,7 +137,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -153,7 +148,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -164,7 +159,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -175,7 +170,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -186,7 +181,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -197,7 +192,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index f769fa987..2afb4eca5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class AssetAdministrationShellDescriptorBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -43,7 +38,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for description - * + * * @param description desired value to be set * @return Builder object with new value for description */ @@ -54,7 +49,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for displayName - * + * * @param displayName desired value to be set * @return Builder object with new value for displayName */ @@ -65,7 +60,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for globalAssetId - * + * * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ @@ -76,7 +71,7 @@ public B globalAssetId(Reference globalAssetId) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -87,7 +82,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for identification - * + * * @param identification desired value to be set * @return Builder object with new value for identification */ @@ -98,7 +93,7 @@ public B identification(String identification) { /** * This function allows setting a value for specificAssetIds - * + * * @param specificAssetIds desired value to be set * @return Builder object with new value for specificAssetIds */ @@ -109,7 +104,7 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds - * + * * @param specificAssetIds desired value to be added * @return Builder object with new value for specificAssetIds */ @@ -120,7 +115,7 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { /** * This function allows setting a value for submodelDescriptors - * + * * @param submodelDescriptors desired value to be set * @return Builder object with new value for submodelDescriptors */ @@ -131,7 +126,7 @@ public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { /** * This function allows setting a value for endpoints - * + * * @param endpoints desired value to be set * @return Builder object with new value for endpoints */ @@ -142,7 +137,7 @@ public B endpoints(List endpoints) { /** * This function allows adding a value to the List endpoints - * + * * @param endpoints desired value to be added * @return Builder object with new value for endpoints */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java index 9d9592426..25fd67822 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,20 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; -import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; -import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class AssetAdministrationShellEnvironmentBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for assetAdministrationShells - * + * * @param assetAdministrationShells desired value to be set * @return Builder object with new value for assetAdministrationShells */ @@ -39,7 +38,7 @@ public B assetAdministrationShells(List assetAdministr /** * This function allows adding a value to the List assetAdministrationShells - * + * * @param assetAdministrationShells desired value to be added * @return Builder object with new value for assetAdministrationShells */ @@ -50,7 +49,7 @@ public B assetAdministrationShells(AssetAdministrationShell assetAdministrationS /** * This function allows setting a value for conceptDescriptions - * + * * @param conceptDescriptions desired value to be set * @return Builder object with new value for conceptDescriptions */ @@ -61,7 +60,7 @@ public B conceptDescriptions(List conceptDescriptions) { /** * This function allows adding a value to the List conceptDescriptions - * + * * @param conceptDescriptions desired value to be added * @return Builder object with new value for conceptDescriptions */ @@ -72,7 +71,7 @@ public B conceptDescriptions(ConceptDescription conceptDescriptions) { /** * This function allows setting a value for submodels - * + * * @param submodels desired value to be set * @return Builder object with new value for submodels */ @@ -83,7 +82,7 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels - * + * * @param submodels desired value to be added * @return Builder object with new value for submodels */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java new file mode 100644 index 000000000..f72a93dc0 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + + +import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; +import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; + + +public abstract class BaseOperationResultBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for executionState + * + * @param executionState desired value to be set + * @return Builder object with new value for executionState + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().setExecutionState(executionState); + return getSelf(); + } + + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index dd31c9bd2..389b0d7af 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -17,6 +17,6 @@ public interface Builder { - T build(); + public T build(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 5923c63c2..52994d156 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; -import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; -import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class DataSpecificationIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for preferredNames - * + * * @param preferredNames desired value to be set * @return Builder object with new value for preferredNames */ @@ -43,7 +38,7 @@ public B preferredNames(List preferredNames /** * This function allows adding a value to the List preferredNames - * + * * @param preferredName desired value to be added * @return Builder object with new value for preferredNames */ @@ -54,7 +49,7 @@ public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { /** * This function allows setting a value for shortNames - * + * * @param shortNames desired value to be set * @return Builder object with new value for shortNames */ @@ -65,7 +60,7 @@ public B shortNames(List shortNames) { /** * This function allows adding a value to the List shortNames - * + * * @param shortName desired value to be added * @return Builder object with new value for shortNames */ @@ -76,7 +71,7 @@ public B shortName(LangStringShortNameTypeIec61360 shortName) { /** * This function allows setting a value for unit - * + * * @param unit desired value to be set * @return Builder object with new value for unit */ @@ -87,7 +82,7 @@ public B unit(String unit) { /** * This function allows setting a value for unitId - * + * * @param unitId desired value to be set * @return Builder object with new value for unitId */ @@ -98,7 +93,7 @@ public B unitId(Reference unitId) { /** * This function allows setting a value for sourceOfDefinition - * + * * @param sourceOfDefinition desired value to be set * @return Builder object with new value for sourceOfDefinition */ @@ -109,7 +104,7 @@ public B sourceOfDefinition(String sourceOfDefinition) { /** * This function allows setting a value for symbol - * + * * @param symbol desired value to be set * @return Builder object with new value for symbol */ @@ -120,7 +115,7 @@ public B symbol(String symbol) { /** * This function allows setting a value for dataType - * + * * @param dataType desired value to be set * @return Builder object with new value for dataType */ @@ -131,7 +126,7 @@ public B dataType(DataTypeIec61360 dataType) { /** * This function allows setting a value for definitions - * + * * @param definitions desired value to be set * @return Builder object with new value for definitions */ @@ -142,7 +137,7 @@ public B definitions(List definitions) { /** * This function allows adding a value to the List definitions - * + * * @param definition desired value to be added * @return Builder object with new value for definitions */ @@ -153,7 +148,7 @@ public B definition(LangStringDefinitionTypeIec61360 definition) { /** * This function allows setting a value for valueFormat - * + * * @param valueFormat desired value to be set * @return Builder object with new value for valueFormat */ @@ -164,7 +159,7 @@ public B valueFormat(String valueFormat) { /** * This function allows setting a value for valueList - * + * * @param valueList desired value to be set * @return Builder object with new value for valueList */ @@ -175,7 +170,7 @@ public B valueList(ValueList valueList) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -186,7 +181,7 @@ public B value(String value) { /** * This function allows setting a value for levelType - * + * * @param levelType desired value to be set * @return Builder object with new value for levelType */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index 7069d6160..e6f8415bf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,17 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; -import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; + +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class EmbeddedDataSpecificationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for dataSpecification - * + * * @param dataSpecification desired value to be set * @return Builder object with new value for dataSpecification */ @@ -37,7 +37,7 @@ public B dataSpecification(Reference dataSpecification) { /** * This function allows setting a value for dataSpecificationContent - * + * * @param dataSpecificationContent desired value to be set * @return Builder object with new value for dataSpecificationContent */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index b52fe88bd..d00f6dc80 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; + +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class LangStringDefinitionTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +37,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index a014efc40..8c259259f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; + +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class LangStringPreferredNameTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +37,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 0fa7262db..7cc068d87 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,15 +16,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; + +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class LangStringShortNameTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +37,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index 177b41b95..4ace7ef90 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -15,8 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; + +import java.util.List; public abstract class ProtocolInformationBuilder> @@ -55,6 +57,28 @@ public B endpointProtocolVersion(String endpointProtocolVersion) { return getSelf(); } + /** + * This function allows setting a value for securityAttributes + * + * @param securityAttributes desired value to be set + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(List securityAttributes) { + getBuildingInstance().setSecurityAttributes(securityAttributes); + return getSelf(); + } + + /** + * This function allows adding a value to the List securityAttributes + * + * @param securityAttributes desired value to be added + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(SecurityAttributeObject securityAttributes) { + getBuildingInstance().getSecurityAttributes().add(securityAttributes); + return getSelf(); + } + /** * This function allows setting a value for subprotocol * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java new file mode 100644 index 000000000..52edbf25f --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + + +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + +public abstract class SecurityAttributeObjectBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for key + * + * @param key desired value to be set + * @return Builder object with new value for key + */ + public B key(String key) { + getBuildingInstance().setKey(key); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(SecurityTypeEnum type) { + getBuildingInstance().setType(type); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java new file mode 100644 index 000000000..1b554bca9 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + + +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; + + +public abstract class SecurityTypeEnumBuilder> + extends ExtendableBuilder { +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index c8b72694a..c44aa98ce 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.ModellingKind; -import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class SubmodelElementAttributesBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for kind - * + * * @param kind desired value to be set * @return Builder object with new value for kind */ @@ -43,7 +38,7 @@ public B kind(ModellingKind kind) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -54,7 +49,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -65,7 +60,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -76,7 +71,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -87,7 +82,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -98,7 +93,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -109,7 +104,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -120,7 +115,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -131,7 +126,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -142,7 +137,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -153,7 +148,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -164,7 +159,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -175,7 +170,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -186,7 +181,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -197,7 +192,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index a2b6e27d7..b698dcc1d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + + public abstract class SubmodelElementCollectionBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for values - * + * * @param values desired value to be set * @return Builder object with new value for values */ @@ -43,7 +38,7 @@ public B values(List values) { /** * This function allows adding a value to the List values - * + * * @param value desired value to be added * @return Builder object with new value for values */ @@ -54,7 +49,7 @@ public B value(SubmodelElement value) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -65,7 +60,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -76,7 +71,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayNames - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayNames */ @@ -87,7 +82,7 @@ public B displayNames(List displayNames) { /** * This function allows adding a value to the List displayNames - * + * * @param displayName desired value to be added * @return Builder object with new value for displayNames */ @@ -98,7 +93,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for descriptions - * + * * @param descriptions desired value to be set * @return Builder object with new value for descriptions */ @@ -109,7 +104,7 @@ public B descriptions(List descriptions) { /** * This function allows adding a value to the List descriptions - * + * * @param description desired value to be added * @return Builder object with new value for descriptions */ @@ -120,7 +115,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -131,7 +126,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -142,7 +137,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -153,7 +148,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -164,7 +159,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -175,7 +170,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -186,7 +181,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -197,7 +192,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -208,7 +203,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java new file mode 100644 index 000000000..b87b63bd3 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; +import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult + * + */ + +@IRI("aas:BaseOperationResult") +public class DefaultBaseOperationResult implements BaseOperationResult { + + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") + protected ExecutionState executionState; + + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") + protected boolean success; + + public DefaultBaseOperationResult() { + } + + @Override + public String toString() { + return "DefaultBaseOperationResult{" + + "executionState='" + executionState + "'," + + "success='" + success + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.executionState, + this.success); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; + return Objects.equals(this.executionState, other.executionState) && + Objects.equals(this.success, other.success); + } + } + + @Override + public ExecutionState getExecutionState() { + return executionState; + } + + @Override + public void setExecutionState(ExecutionState executionState) { + this.executionState = executionState; + } + + @Override + public boolean getSuccess() { + return success; + } + + @Override + public void setSuccess(boolean success) { + this.success = success; + } + + /** + * This builder class can be used to construct a DefaultBaseOperationResult bean. + */ + public static class Builder extends BaseOperationResultBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBaseOperationResult newBuildingInstance() { + return new DefaultBaseOperationResult(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index 41f09bfa5..2ff174fe1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -16,9 +16,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; @@ -39,6 +42,9 @@ public class DefaultProtocolInformation implements ProtocolInformation { @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") protected String endpointProtocolVersion; + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") + protected List securityAttributes = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") protected String subprotocol; @@ -57,6 +63,7 @@ public String toString() { + "endpointAddress='" + endpointAddress + "'," + "endpointProtocol='" + endpointProtocol + "'," + "endpointProtocolVersion='" + endpointProtocolVersion + "'," + + "securityAttributes='" + securityAttributes + "'," + "subprotocol='" + subprotocol + "'," + "subprotocolBody='" + subprotocolBody + "'," + "subprotocolBodyEncoding='" + subprotocolBodyEncoding + "'," @@ -68,6 +75,7 @@ public int hashCode() { return Objects.hash(this.endpointAddress, this.endpointProtocol, this.endpointProtocolVersion, + this.securityAttributes, this.subprotocol, this.subprotocolBody, this.subprotocolBodyEncoding); @@ -86,6 +94,7 @@ public boolean equals(Object obj) { return Objects.equals(this.endpointAddress, other.endpointAddress) && Objects.equals(this.endpointProtocol, other.endpointProtocol) && Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && + Objects.equals(this.securityAttributes, other.securityAttributes) && Objects.equals(this.subprotocol, other.subprotocol) && Objects.equals(this.subprotocolBody, other.subprotocolBody) && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding); @@ -122,6 +131,16 @@ public void setEndpointProtocolVersion(String endpointProtocolVersion) { this.endpointProtocolVersion = endpointProtocolVersion; } + @Override + public List getSecurityAttributes() { + return securityAttributes; + } + + @Override + public void setSecurityAttributes(List securityAttributes) { + this.securityAttributes = securityAttributes; + } + @Override public String getSubprotocol() { return subprotocol; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java new file mode 100644 index 000000000..c9bb0b39a --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityAttributeObjectBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject + * + */ + +@IRI("aas:SecurityAttributeObject") +public class DefaultSecurityAttributeObject implements SecurityAttributeObject { + + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") + protected String key; + + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") + protected SecurityTypeEnum type; + + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") + protected String value; + + public DefaultSecurityAttributeObject() { + } + + @Override + public String toString() { + return "DefaultSecurityAttributeObject{" + + "key='" + key + "'," + + "value='" + value + "'," + + "type='" + type + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.key, + this.value, + this.type); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; + return Objects.equals(this.key, other.key) && + Objects.equals(this.value, other.value) && + Objects.equals(this.type, other.type); + } + } + + @Override + public String getKey() { + return key; + } + + @Override + public void setKey(String key) { + this.key = key; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public SecurityTypeEnum getType() { + return type; + } + + @Override + public void setType(SecurityTypeEnum type) { + this.type = type; + } + + /** + * This builder class can be used to construct a DefaultSecurityAttributeObject bean. + */ + public static class Builder extends SecurityAttributeObjectBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSecurityAttributeObject newBuildingInstance() { + return new DefaultSecurityAttributeObject(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java new file mode 100644 index 000000000..ddc3fe1b1 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityTypeEnumBuilder; + +import java.util.Objects; + + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum + * + */ + +@IRI("aas:SecurityTypeEnum") +public class DefaultSecurityTypeEnum implements SecurityTypeEnum { + + public DefaultSecurityTypeEnum() { + } + + @Override + public String toString() { + return "DefaultSecurityTypeEnum{" + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } + return true; + } + + /** + * This builder class can be used to construct a DefaultSecurityTypeEnum bean. + */ + public static class Builder extends SecurityTypeEnumBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSecurityTypeEnum newBuildingInstance() { + return new DefaultSecurityTypeEnum(); + } + } +} From 40398c3063e118a713418e52ac89bc5399df266b Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Tue, 17 Mar 2026 17:18:28 +0100 Subject: [PATCH 04/12] apply spotless --- .../aas4j/v3/model/AasSubmodelElements.java | 163 ++--- .../aas4j/v3/model/AbstractLangString.java | 92 ++- .../v3/model/AdministrativeInformation.java | 244 +++---- .../model/AnnotatedRelationshipElement.java | 56 +- .../v3/model/AssetAdministrationShell.java | 122 ++-- .../AssetAdministrationShellDescriptor.java | 301 ++++---- .../AssetAdministrationShellEnvironment.java | 134 ++-- .../aas4j/v3/model/AssetInformation.java | 210 +++--- .../digitaltwin/aas4j/v3/model/AssetKind.java | 60 +- .../aas4j/v3/model/BaseOperationResult.java | 79 +- .../aas4j/v3/model/BasicEventElement.java | 342 +++++---- .../digitaltwin/aas4j/v3/model/Blob.java | 82 +-- .../aas4j/v3/model/Capability.java | 17 +- .../aas4j/v3/model/ConceptDescription.java | 50 +- .../v3/model/CustomDataSpecification.java | 17 +- .../aas4j/v3/model/DataElement.java | 25 +- .../v3/model/DataSpecificationContent.java | 17 +- .../v3/model/DataSpecificationIec61360.java | 429 ++++++----- .../aas4j/v3/model/DataTypeDefXsd.java | 280 ++++---- .../aas4j/v3/model/DataTypeIec61360.java | 237 +++--- .../aas4j/v3/model/Descriptor.java | 49 +- .../digitaltwin/aas4j/v3/model/Direction.java | 30 +- .../v3/model/EmbeddedDataSpecification.java | 92 ++- .../digitaltwin/aas4j/v3/model/Endpoint.java | 79 +- .../digitaltwin/aas4j/v3/model/Entity.java | 162 ++--- .../aas4j/v3/model/EntityType.java | 40 +- .../aas4j/v3/model/Environment.java | 121 ++-- .../aas4j/v3/model/EventElement.java | 21 +- .../aas4j/v3/model/EventPayload.java | 328 +++++---- .../aas4j/v3/model/ExecutionState.java | 55 +- .../digitaltwin/aas4j/v3/model/Extension.java | 154 ++-- .../digitaltwin/aas4j/v3/model/File.java | 86 +-- .../aas4j/v3/model/HasDataSpecification.java | 68 +- .../aas4j/v3/model/HasExtensions.java | 54 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 54 +- .../aas4j/v3/model/HasSemantics.java | 102 ++- .../aas4j/v3/model/Identifiable.java | 88 ++- .../digitaltwin/aas4j/v3/model/Key.java | 86 +-- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 237 +++--- .../aas4j/v3/model/LangString.java | 131 ++-- .../LangStringDefinitionTypeIec61360.java | 21 +- .../aas4j/v3/model/LangStringNameType.java | 21 +- .../LangStringPreferredNameTypeIec61360.java | 21 +- .../LangStringShortNameTypeIec61360.java | 21 +- .../aas4j/v3/model/LangStringTextType.java | 21 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 150 ++-- .../digitaltwin/aas4j/v3/model/Message.java | 129 ++-- .../aas4j/v3/model/MessageType.java | 48 +- .../digitaltwin/aas4j/v3/model/ModelType.java | 180 ++--- .../aas4j/v3/model/ModellingKind.java | 40 +- .../aas4j/v3/model/MultiLanguageProperty.java | 86 +-- .../digitaltwin/aas4j/v3/model/Operation.java | 120 ++-- .../aas4j/v3/model/OperationHandle.java | 79 +- .../aas4j/v3/model/OperationRequest.java | 129 ++-- .../aas4j/v3/model/OperationResult.java | 175 ++--- .../aas4j/v3/model/OperationVariable.java | 50 +- .../aas4j/v3/model/PackageDescription.java | 79 +- .../digitaltwin/aas4j/v3/model/Property.java | 120 ++-- .../aas4j/v3/model/ProtocolInformation.java | 243 +++---- .../aas4j/v3/model/Qualifiable.java | 56 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 202 +++--- .../aas4j/v3/model/QualifierKind.java | 38 +- .../digitaltwin/aas4j/v3/model/Range.java | 120 ++-- .../digitaltwin/aas4j/v3/model/Referable.java | 164 ++--- .../digitaltwin/aas4j/v3/model/Reference.java | 120 ++-- .../aas4j/v3/model/ReferenceElement.java | 54 +- .../aas4j/v3/model/ReferenceTypes.java | 30 +- .../aas4j/v3/model/RelationshipElement.java | 82 +-- .../digitaltwin/aas4j/v3/model/Resource.java | 82 +-- .../digitaltwin/aas4j/v3/model/Result.java | 79 +- .../v3/model/SecurityAttributeObject.java | 101 ++- .../aas4j/v3/model/SecurityTypeEnum.java | 20 +- .../aas4j/v3/model/SpecificAssetId.java | 120 ++-- .../aas4j/v3/model/StateOfEvent.java | 30 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 59 +- .../aas4j/v3/model/SubmodelDescriptor.java | 207 +++--- .../aas4j/v3/model/SubmodelElement.java | 34 +- .../v3/model/SubmodelElementAttributes.java | 52 +- .../v3/model/SubmodelElementCollection.java | 50 +- .../aas4j/v3/model/SubmodelElementList.java | 216 +++--- .../digitaltwin/aas4j/v3/model/ValueList.java | 54 +- .../aas4j/v3/model/ValueReferencePair.java | 82 +-- .../aas4j/v3/model/annotations/IRI.java | 22 +- .../v3/model/annotations/KnownSubtypes.java | 31 +- .../v3/model/builder/AbstractBuilder.java | 25 +- .../AdministrativeInformationBuilder.java | 172 +++-- .../AnnotatedRelationshipElementBuilder.java | 428 ++++++----- .../AssetAdministrationShellBuilder.java | 362 +++++----- ...tAdministrationShellDescriptorBuilder.java | 253 ++++--- ...AdministrationShellEnvironmentBuilder.java | 133 ++-- .../builder/AssetInformationBuilder.java | 129 ++-- .../builder/BaseOperationResultBuilder.java | 47 +- .../builder/BasicEventElementBuilder.java | 469 ++++++------ .../aas4j/v3/model/builder/BlobBuilder.java | 381 +++++----- .../aas4j/v3/model/builder/Builder.java | 3 +- .../v3/model/builder/CapabilityBuilder.java | 337 +++++---- .../builder/ConceptDescriptionBuilder.java | 317 ++++----- .../DataSpecificationIec61360Builder.java | 341 +++++---- .../v3/model/builder/DescriptorBuilder.java | 47 +- .../EmbeddedDataSpecificationBuilder.java | 54 +- .../v3/model/builder/EndpointBuilder.java | 45 +- .../aas4j/v3/model/builder/EntityBuilder.java | 427 ++++++----- .../v3/model/builder/EnvironmentBuilder.java | 127 ++-- .../v3/model/builder/EventPayloadBuilder.java | 166 ++--- .../v3/model/builder/ExtendableBuilder.java | 6 +- .../v3/model/builder/ExtensionBuilder.java | 167 +++-- .../aas4j/v3/model/builder/FileBuilder.java | 381 +++++----- .../aas4j/v3/model/builder/KeyBuilder.java | 45 +- ...ngStringDefinitionTypeIec61360Builder.java | 55 +- .../builder/LangStringNameTypeBuilder.java | 47 +- ...tringPreferredNameTypeIec61360Builder.java | 55 +- ...angStringShortNameTypeIec61360Builder.java | 55 +- .../builder/LangStringTextTypeBuilder.java | 47 +- .../v3/model/builder/LevelTypeBuilder.java | 85 ++- .../v3/model/builder/MessageBuilder.java | 85 ++- .../builder/MultiLanguagePropertyBuilder.java | 405 ++++++----- .../v3/model/builder/OperationBuilder.java | 427 ++++++----- .../model/builder/OperationHandleBuilder.java | 47 +- .../builder/OperationRequestBuilder.java | 89 ++- .../model/builder/OperationResultBuilder.java | 209 +++--- .../builder/OperationVariableBuilder.java | 27 +- .../builder/PackageDescriptionBuilder.java | 75 +- .../v3/model/builder/PropertyBuilder.java | 403 ++++++----- .../builder/ProtocolInformationBuilder.java | 169 +++-- .../v3/model/builder/QualifierBuilder.java | 167 +++-- .../aas4j/v3/model/builder/RangeBuilder.java | 403 ++++++----- .../v3/model/builder/ReferenceBuilder.java | 87 ++- .../builder/ReferenceElementBuilder.java | 361 +++++----- .../builder/RelationshipElementBuilder.java | 383 +++++----- .../v3/model/builder/ResourceBuilder.java | 45 +- .../aas4j/v3/model/builder/ResultBuilder.java | 73 +- .../SecurityAttributeObjectBuilder.java | 73 +- .../builder/SecurityTypeEnumBuilder.java | 8 +- .../model/builder/SpecificAssetIdBuilder.java | 129 ++-- .../v3/model/builder/SubmodelBuilder.java | 447 ++++++------ .../builder/SubmodelDescriptorBuilder.java | 169 +++-- .../SubmodelElementAttributesBuilder.java | 362 +++++----- .../SubmodelElementCollectionBuilder.java | 384 +++++----- .../builder/SubmodelElementListBuilder.java | 429 ++++++----- .../v3/model/builder/ValueListBuilder.java | 47 +- .../builder/ValueReferencePairBuilder.java | 47 +- .../DefaultAdministrativeInformation.java | 335 ++++----- .../DefaultAnnotatedRelationshipElement.java | 491 +++++++------ .../impl/DefaultAssetAdministrationShell.java | 455 ++++++------ ...ultAssetAdministrationShellDescriptor.java | 406 ++++++----- ...ltAssetAdministrationShellEnvironment.java | 190 ++--- .../model/impl/DefaultAssetInformation.java | 249 +++---- .../impl/DefaultBaseOperationResult.java | 133 ++-- .../model/impl/DefaultBasicEventElement.java | 672 +++++++++--------- .../aas4j/v3/model/impl/DefaultBlob.java | 458 ++++++------ .../v3/model/impl/DefaultCapability.java | 398 ++++++----- .../model/impl/DefaultConceptDescription.java | 403 ++++++----- .../DefaultDataSpecificationIec61360.java | 490 +++++++------ .../v3/model/impl/DefaultDescriptor.java | 103 ++- .../DefaultEmbeddedDataSpecification.java | 132 ++-- .../aas4j/v3/model/impl/DefaultEndpoint.java | 132 ++-- .../aas4j/v3/model/impl/DefaultEntity.java | 522 +++++++------- .../v3/model/impl/DefaultEnvironment.java | 179 +++-- .../v3/model/impl/DefaultEventPayload.java | 363 +++++----- .../aas4j/v3/model/impl/DefaultExtension.java | 285 ++++---- .../aas4j/v3/model/impl/DefaultFile.java | 454 ++++++------ .../aas4j/v3/model/impl/DefaultKey.java | 123 ++-- ...faultLangStringDefinitionTypeIec61360.java | 132 ++-- .../model/impl/DefaultLangStringNameType.java | 131 ++-- ...ltLangStringPreferredNameTypeIec61360.java | 150 ++-- ...efaultLangStringShortNameTypeIec61360.java | 132 ++-- .../model/impl/DefaultLangStringTextType.java | 131 ++-- .../aas4j/v3/model/impl/DefaultLevelType.java | 209 +++--- .../aas4j/v3/model/impl/DefaultMessage.java | 208 +++--- .../impl/DefaultMultiLanguageProperty.java | 455 ++++++------ .../aas4j/v3/model/impl/DefaultOperation.java | 488 +++++++------ .../v3/model/impl/DefaultOperationHandle.java | 132 ++-- .../model/impl/DefaultOperationRequest.java | 210 +++--- .../v3/model/impl/DefaultOperationResult.java | 250 +++---- .../model/impl/DefaultOperationVariable.java | 98 ++- .../model/impl/DefaultPackageDescription.java | 137 ++-- .../aas4j/v3/model/impl/DefaultProperty.java | 488 +++++++------ .../impl/DefaultProtocolInformation.java | 333 ++++----- .../aas4j/v3/model/impl/DefaultQualifier.java | 331 ++++----- .../aas4j/v3/model/impl/DefaultRange.java | 488 +++++++------ .../aas4j/v3/model/impl/DefaultReference.java | 164 +++-- .../model/impl/DefaultReferenceElement.java | 422 +++++------ .../impl/DefaultRelationshipElement.java | 455 ++++++------ .../aas4j/v3/model/impl/DefaultResource.java | 126 ++-- .../aas4j/v3/model/impl/DefaultResult.java | 129 ++-- .../impl/DefaultSecurityAttributeObject.java | 172 +++-- .../model/impl/DefaultSecurityTypeEnum.java | 70 +- .../v3/model/impl/DefaultSpecificAssetId.java | 249 +++---- .../aas4j/v3/model/impl/DefaultSubmodel.java | 522 +++++++------- .../model/impl/DefaultSubmodelDescriptor.java | 333 ++++----- .../DefaultSubmodelElementAttributes.java | 418 +++++------ .../DefaultSubmodelElementCollection.java | 421 +++++------ .../impl/DefaultSubmodelElementList.java | 559 ++++++++------- .../aas4j/v3/model/impl/DefaultValueList.java | 102 ++- .../model/impl/DefaultValueReferencePair.java | 131 ++-- 195 files changed, 17412 insertions(+), 17925 deletions(-) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index b5cd3625b..cd0f6b73d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,102 +15,79 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration of all possible elements of a 'SubmodelElementList'. - */ +/** Enumeration of all possible elements of a 'SubmodelElementList'. */ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") - BLOB, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") - CAPABILITY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") - DATA_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") - ENTITY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") - EVENT_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") - FILE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") - OPERATION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") - PROPERTY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") - RANGE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") - REFERENCE_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") - SUBMODEL_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") + BLOB, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") + CAPABILITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") + DATA_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") + ENTITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") + EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") + FILE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") + OPERATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") + PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") + RANGE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") + REFERENCE_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") + SUBMODEL_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + /** */ + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index 43f849ef8..67cb00cf4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,62 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Strings with language tags - */ +/** Strings with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringTextType.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringTextType.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) }) public interface AbstractLangString { - /** - * Language tag conforming to BCP 47 - * - * More information under https://admin-shell.io/aas/3/2/AbstractLangString/language - * - * @return Returns the String for the property language. - */ - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - String getLanguage(); - - /** - * Language tag conforming to BCP 47 - * - * More information under https://admin-shell.io/aas/3/2/AbstractLangString/language - * - * @param language desired value for the property language. - */ - void setLanguage(String language); + /** + * Language tag conforming to BCP 47 + * + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/language + * + * @return Returns the String for the property language. + */ + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + String getLanguage(); - /** - * Text in the 'language' - * - * More information under https://admin-shell.io/aas/3/2/AbstractLangString/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - String getText(); + /** + * Language tag conforming to BCP 47 + * + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/language + * + * @param language desired value for the property language. + */ + void setLanguage(String language); - /** - * Text in the 'language' - * - * More information under https://admin-shell.io/aas/3/2/AbstractLangString/text - * - * @param text desired value for the property text. - */ - void setText(String text); + /** + * Text in the 'language' + * + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + String getText(); + /** + * Text in the 'language' + * + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/text + * + * @param text desired value for the property text. + */ + void setText(String text); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 39bb109fa..71ec3c1fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,135 +15,127 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import javax.xml.datatype.XMLGregorianCalendar; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Administrative meta-information for an element like version information. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) -}) +/** Administrative meta-information for an element like version information. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAdministrativeInformation.class)}) public interface AdministrativeInformation extends HasDataSpecification { - /** - * The date and time when the element was created. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt - * - * @return Returns the XMLGregorianCalendar for the property createdAt. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") - XMLGregorianCalendar getCreatedAt(); - - /** - * The date and time when the element was created. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt - * - * @param createdAt desired value for the property createdAt. - */ - void setCreatedAt(XMLGregorianCalendar createdAt); - - /** - * Version of the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version - * - * @return Returns the String for the property version. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") - String getVersion(); - - /** - * Version of the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version - * - * @param version desired value for the property version. - */ - void setVersion(String version); - - /** - * Revision of the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision - * - * @return Returns the String for the property revision. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") - String getRevision(); - - /** - * Revision of the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision - * - * @param revision desired value for the property revision. - */ - void setRevision(String revision); - - /** - * The subject ID of the subject responsible for making the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator - * - * @return Returns the Reference for the property creator. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") - Reference getCreator(); - - /** - * The subject ID of the subject responsible for making the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator - * - * @param creator desired value for the property creator. - */ - void setCreator(Reference creator); - - /** - * Identifier of the template that guided the creation of the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId - * - * @return Returns the String for the property templateId. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") - String getTemplateId(); - - /** - * Identifier of the template that guided the creation of the element. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId - * - * @param templateId desired value for the property templateId. - */ - void setTemplateId(String templateId); - - /** - * The date and time when the element was last updated. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt - * - * @return Returns the XMLGregorianCalendar for the property updatedAt. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") - XMLGregorianCalendar getUpdatedAt(); - - /** - * The date and time when the element was last updated. - * - * More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt - * - * @param updatedAt desired value for the property updatedAt. - */ - void setUpdatedAt(XMLGregorianCalendar updatedAt); - + /** + * The date and time when the element was created. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt + * + * @return Returns the XMLGregorianCalendar for the property createdAt. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") + XMLGregorianCalendar getCreatedAt(); + + /** + * The date and time when the element was created. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt + * + * @param createdAt desired value for the property createdAt. + */ + void setCreatedAt(XMLGregorianCalendar createdAt); + + /** + * Version of the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version + * + * @return Returns the String for the property version. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") + String getVersion(); + + /** + * Version of the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version + * + * @param version desired value for the property version. + */ + void setVersion(String version); + + /** + * Revision of the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision + * + * @return Returns the String for the property revision. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") + String getRevision(); + + /** + * Revision of the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision + * + * @param revision desired value for the property revision. + */ + void setRevision(String revision); + + /** + * The subject ID of the subject responsible for making the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator + * + * @return Returns the Reference for the property creator. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") + Reference getCreator(); + + /** + * The subject ID of the subject responsible for making the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator + * + * @param creator desired value for the property creator. + */ + void setCreator(Reference creator); + + /** + * Identifier of the template that guided the creation of the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId + * + * @return Returns the String for the property templateId. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") + String getTemplateId(); + + /** + * Identifier of the template that guided the creation of the element. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId + * + * @param templateId desired value for the property templateId. + */ + void setTemplateId(String templateId); + + /** + * The date and time when the element was last updated. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt + * + * @return Returns the XMLGregorianCalendar for the property updatedAt. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") + XMLGregorianCalendar getUpdatedAt(); + + /** + * The date and time when the element was last updated. + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt + * + * @param updatedAt desired value for the property updatedAt. + */ + void setUpdatedAt(XMLGregorianCalendar updatedAt); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index a84addefe..0ae2a3c87 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,42 +16,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * An annotated relationship element is a relationship element that can be annotated with additional * data elements. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class)}) public interface AnnotatedRelationshipElement extends RelationshipElement { - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - * - * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations - * - * @return Returns the List of DataElements for the property annotations. - */ - @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") - List getAnnotations(); - - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - * - * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations - * - * @param annotations desired value for the property annotations. - */ - void setAnnotations(List annotations); - + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + *

More information under + * https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations + * + * @return Returns the List of DataElements for the property annotations. + */ + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") + List getAnnotations(); + + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + *

More information under + * https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations + * + * @param annotations desired value for the property annotations. + */ + void setAnnotations(List annotations); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index 5e5dc7a19..4071e2571 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,77 +16,71 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An asset administration shell. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) -}) +/** An asset administration shell. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class)}) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { - /** - * The reference to the AAS the AAS was derived from. - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom - * - * @return Returns the Reference for the property derivedFrom. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") - Reference getDerivedFrom(); - - /** - * The reference to the AAS the AAS was derived from. - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom - * - * @param derivedFrom desired value for the property derivedFrom. - */ - void setDerivedFrom(Reference derivedFrom); + /** + * The reference to the AAS the AAS was derived from. + * + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom + * + * @return Returns the Reference for the property derivedFrom. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") + Reference getDerivedFrom(); - /** - * Meta-information about the asset the AAS is representing. - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation - * - * @return Returns the AssetInformation for the property assetInformation. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") - AssetInformation getAssetInformation(); + /** + * The reference to the AAS the AAS was derived from. + * + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom + * + * @param derivedFrom desired value for the property derivedFrom. + */ + void setDerivedFrom(Reference derivedFrom); - /** - * Meta-information about the asset the AAS is representing. - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation - * - * @param assetInformation desired value for the property assetInformation. - */ - void setAssetInformation(AssetInformation assetInformation); + /** + * Meta-information about the asset the AAS is representing. + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation + * + * @return Returns the AssetInformation for the property assetInformation. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") + AssetInformation getAssetInformation(); - /** - * References to submodels of the AAS. - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels - * - * @return Returns the List of References for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") - List getSubmodels(); + /** + * Meta-information about the asset the AAS is representing. + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation + * + * @param assetInformation desired value for the property assetInformation. + */ + void setAssetInformation(AssetInformation assetInformation); - /** - * References to submodels of the AAS. - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * References to submodels of the AAS. + * + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels + * + * @return Returns the List of References for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") + List getSubmodels(); + /** + * References to submodels of the AAS. + * + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index cd2ddb245..1e743d5fa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,169 +16,148 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class)}) public interface AssetAdministrationShellDescriptor extends Descriptor { - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description - * - * @return Returns the LangStringTextType for the property description. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") - LangStringTextType getDescription(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description - * - * @param description desired value for the property description. - */ - void setDescription(LangStringTextType description); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName - * - * @return Returns the LangStringNameType for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") - LangStringNameType getDisplayName(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName - * - * @param displayName desired value for the property displayName. - */ - void setDisplayName(LangStringNameType displayName); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId - * - * @return Returns the Reference for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") - Reference getGlobalAssetId(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(Reference globalAssetId); - - /** - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") - String getIdShort(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification - * - * @return Returns the String for the property identification. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") - String getIdentification(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification - * - * @param identification desired value for the property identification. - */ - void setIdentification(String identification); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") - List getSpecificAssetIds(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @return Returns the SubmodelDescriptor for the property submodelDescriptors. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") - SubmodelDescriptor getSubmodelDescriptors(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @param submodelDescriptors desired value for the property submodelDescriptors. - */ - void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors); - + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description + * + * @return Returns the LangStringTextType for the property description. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") + LangStringTextType getDescription(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description + * + * @param description desired value for the property description. + */ + void setDescription(LangStringTextType description); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName + * + * @return Returns the LangStringNameType for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + LangStringNameType getDisplayName(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName + * + * @param displayName desired value for the property displayName. + */ + void setDisplayName(LangStringNameType displayName); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId + * + * @return Returns the Reference for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + Reference getGlobalAssetId(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(Reference globalAssetId); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") + String getIdShort(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification + * + * @return Returns the String for the property identification. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") + String getIdentification(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification + * + * @param identification desired value for the property identification. + */ + void setIdentification(String identification); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") + List getSpecificAssetIds(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @return Returns the SubmodelDescriptor for the property submodelDescriptors. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") + SubmodelDescriptor getSubmodelDescriptors(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @param submodelDescriptors desired value for the property submodelDescriptors. + */ + void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java index 23f84da45..eac1e50b0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,83 +16,77 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Container for the sets of different identifiables. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class) -}) +/** Container for the sets of different identifiables. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class)}) public interface AssetAdministrationShellEnvironment { - /** - * Asset administration shell - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells - * - * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") - List getAssetAdministrationShells(); - - /** - * Asset administration shell - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells - * - * @param assetAdministrationShells desired value for the property assetAdministrationShells. - */ - void setAssetAdministrationShells(List assetAdministrationShells); + /** + * Asset administration shell + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells + * + * @return Returns the List of AssetAdministrationShells for the property + * assetAdministrationShells. + */ + @IRI( + "https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") + List getAssetAdministrationShells(); - /** - * Concept description - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions - * - * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") - List getConceptDescriptions(); + /** + * Asset administration shell + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells + * + * @param assetAdministrationShells desired value for the property assetAdministrationShells. + */ + void setAssetAdministrationShells(List assetAdministrationShells); - /** - * Concept description - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions - * - * @param conceptDescriptions desired value for the property conceptDescriptions. - */ - void setConceptDescriptions(List conceptDescriptions); + /** + * Concept description + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions + * + * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") + List getConceptDescriptions(); - /** - * Submodel - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels - * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") - List getSubmodels(); + /** + * Concept description + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions + * + * @param conceptDescriptions desired value for the property conceptDescriptions. + */ + void setConceptDescriptions(List conceptDescriptions); - /** - * Submodel - * - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * Submodel + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") + List getSubmodels(); + /** + * Submodel + * + *

More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 9ac8301d6..4d71fb2c4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,120 +16,114 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetInformation.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetInformation.class)}) public interface AssetInformation { - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind - * - * @return Returns the AssetKind for the property assetKind. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") - AssetKind getAssetKind(); - - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind - * - * @param assetKind desired value for the property assetKind. - */ - void setAssetKind(AssetKind assetKind); - - /** - * Global identifier of the asset the AAS is representing. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") - String getGlobalAssetId(); - - /** - * Global identifier of the asset the AAS is representing. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") - List getSpecificAssetIds(); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset - * under consideration as identified by 'globalAssetId'. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType - * - * @return Returns the String for the property assetType. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") - String getAssetType(); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset - * under consideration as identified by 'globalAssetId'. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType - * - * @param assetType desired value for the property assetType. - */ - void setAssetType(String assetType); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail - * - * @return Returns the Resource for the property defaultThumbnail. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") - Resource getDefaultThumbnail(); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - * - * More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail - * - * @param defaultThumbnail desired value for the property defaultThumbnail. - */ - void setDefaultThumbnail(Resource defaultThumbnail); - + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind + * + * @return Returns the AssetKind for the property assetKind. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") + AssetKind getAssetKind(); + + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind + * + * @param assetKind desired value for the property assetKind. + */ + void setAssetKind(AssetKind assetKind); + + /** + * Global identifier of the asset the AAS is representing. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") + String getGlobalAssetId(); + + /** + * Global identifier of the asset the AAS is representing. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") + List getSpecificAssetIds(); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the + * asset under consideration as identified by 'globalAssetId'. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType + * + * @return Returns the String for the property assetType. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") + String getAssetType(); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the + * asset under consideration as identified by 'globalAssetId'. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType + * + * @param assetType desired value for the property assetType. + */ + void setAssetType(String assetType); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail + * + * @return Returns the Resource for the property defaultThumbnail. + */ + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") + Resource getDefaultThumbnail(); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail + * + * @param defaultThumbnail desired value for the property defaultThumbnail. + */ + void setDefaultThumbnail(Resource defaultThumbnail); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index b7e4f4f26..3ee888865 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,47 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration for denoting whether an asset is a type asset or an instance asset. - */ +/** Enumeration for denoting whether an asset is a type asset or an instance asset. */ @IRI("aas:AssetKind") public enum AssetKind { - /** - * Batch - */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Batch") - BATCH, - - /** - * Instance asset - */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Instance") - INSTANCE, - - /** - * Neither a type asset nor an instance asset nor a role asset - */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/NotApplicable") - NOT_APPLICABLE, - - /** - * Role asset - */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Role") - ROLE, - - /** - * Type asset - */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") - TYPE; + /** Batch */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Batch") + BATCH, + + /** Instance asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Instance") + INSTANCE, + + /** Neither a type asset nor an instance asset nor a role asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/NotApplicable") + NOT_APPLICABLE, + + /** Role asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Role") + ROLE, + /** Type asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") + TYPE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java index 1dca6f679..338825682 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,53 +15,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBaseOperationResult.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBaseOperationResult.class)}) public interface BaseOperationResult { - /** - * - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState - * - * @return Returns the ExecutionState for the property executionState. - */ - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") - ExecutionState getExecutionState(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState - * - * @param executionState desired value for the property executionState. - */ - void setExecutionState(ExecutionState executionState); - - /** - * - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success - * - * @return Returns the boolean for the property success. - */ - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") - boolean getSuccess(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success - * - * @param success desired value for the property success. - */ - void setSuccess(boolean success); - + /** + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState + * + * @return Returns the ExecutionState for the property executionState. + */ + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") + ExecutionState getExecutionState(); + + /** + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState + * + * @param executionState desired value for the property executionState. + */ + void setExecutionState(ExecutionState executionState); + + /** + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") + boolean getSuccess(); + + /** + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 24811b13b..8209646f4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,182 +15,176 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A basic event element. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBasicEventElement.class) -}) +/** A basic event element. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBasicEventElement.class)}) public interface BasicEventElement extends EventElement { - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed - * - * @return Returns the Reference for the property observed. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") - Reference getObserved(); - - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed - * - * @param observed desired value for the property observed. - */ - void setObserved(Reference observed); - - /** - * Direction of event. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction - * - * @return Returns the Direction for the property direction. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") - Direction getDirection(); - - /** - * Direction of event. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction - * - * @param direction desired value for the property direction. - */ - void setDirection(Direction direction); - - /** - * State of event. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/state - * - * @return Returns the StateOfEvent for the property state. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") - StateOfEvent getState(); - - /** - * State of event. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/state - * - * @param state desired value for the property state. - */ - void setState(StateOfEvent state); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic - * - * @return Returns the String for the property messageTopic. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") - String getMessageTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic - * - * @param messageTopic desired value for the property messageTopic. - */ - void setMessageTopic(String messageTopic); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker - * - * @return Returns the Reference for the property messageBroker. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") - Reference getMessageBroker(); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker - * - * @param messageBroker desired value for the property messageBroker. - */ - void setMessageBroker(Reference messageBroker); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate - * - * @return Returns the String for the property lastUpdate. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") - String getLastUpdate(); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate - * - * @param lastUpdate desired value for the property lastUpdate. - */ - void setLastUpdate(String lastUpdate); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the respective - * Referable can handle input events. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval - * - * @return Returns the String for the property minInterval. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") - String getMinInterval(); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the respective - * Referable can handle input events. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval - * - * @param minInterval desired value for the property minInterval. - */ - void setMinInterval(String minInterval); - - /** - * For input direction: not applicable. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval - * - * @return Returns the String for the property maxInterval. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") - String getMaxInterval(); - - /** - * For input direction: not applicable. - * - * More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval - * - * @param maxInterval desired value for the property maxInterval. - */ - void setMaxInterval(String maxInterval); - + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed + * + * @return Returns the Reference for the property observed. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") + Reference getObserved(); + + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed + * + * @param observed desired value for the property observed. + */ + void setObserved(Reference observed); + + /** + * Direction of event. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction + * + * @return Returns the Direction for the property direction. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") + Direction getDirection(); + + /** + * Direction of event. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction + * + * @param direction desired value for the property direction. + */ + void setDirection(Direction direction); + + /** + * State of event. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/state + * + * @return Returns the StateOfEvent for the property state. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") + StateOfEvent getState(); + + /** + * State of event. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/state + * + * @param state desired value for the property state. + */ + void setState(StateOfEvent state); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic + * + * @return Returns the String for the property messageTopic. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") + String getMessageTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic + * + * @param messageTopic desired value for the property messageTopic. + */ + void setMessageTopic(String messageTopic); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker + * + * @return Returns the Reference for the property messageBroker. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") + Reference getMessageBroker(); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker + * + * @param messageBroker desired value for the property messageBroker. + */ + void setMessageBroker(Reference messageBroker); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output + * direction). + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate + * + * @return Returns the String for the property lastUpdate. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") + String getLastUpdate(); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output + * direction). + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate + * + * @param lastUpdate desired value for the property lastUpdate. + */ + void setLastUpdate(String lastUpdate); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the + * respective Referable can handle input events. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval + * + * @return Returns the String for the property minInterval. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") + String getMinInterval(); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the + * respective Referable can handle input events. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval + * + * @param minInterval desired value for the property minInterval. + */ + void setMinInterval(String minInterval); + + /** + * For input direction: not applicable. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval + * + * @return Returns the String for the property maxInterval. + */ + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") + String getMaxInterval(); + + /** + * For input direction: not applicable. + * + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval + * + * @param maxInterval desired value for the property maxInterval. + */ + void setMaxInterval(String maxInterval); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index 03590ef1a..c177a90d1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,59 +15,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A 'Blob' is a data element that represents a file that is contained with its source code in the * value attribute. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBlob.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBlob.class)}) public interface Blob extends DataElement { - /** - * The value of the 'Blob' instance of a blob data element. - * - * More information under https://admin-shell.io/aas/3/2/Blob/value - * - * @return Returns the byte[] for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Blob/value") - byte[] getValue(); - - /** - * The value of the 'Blob' instance of a blob data element. - * - * More information under https://admin-shell.io/aas/3/2/Blob/value - * - * @param value desired value for the property value. - */ - void setValue(byte[] value); + /** + * The value of the 'Blob' instance of a blob data element. + * + *

More information under https://admin-shell.io/aas/3/2/Blob/value + * + * @return Returns the byte[] for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Blob/value") + byte[] getValue(); - /** - * Content type of the content of the 'Blob'. - * - * More information under https://admin-shell.io/aas/3/2/Blob/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") - String getContentType(); + /** + * The value of the 'Blob' instance of a blob data element. + * + *

More information under https://admin-shell.io/aas/3/2/Blob/value + * + * @param value desired value for the property value. + */ + void setValue(byte[] value); - /** - * Content type of the content of the 'Blob'. - * - * More information under https://admin-shell.io/aas/3/2/Blob/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Content type of the content of the 'Blob'. + * + *

More information under https://admin-shell.io/aas/3/2/Blob/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") + String getContentType(); + /** + * Content type of the content of the 'Blob'. + * + *

More information under https://admin-shell.io/aas/3/2/Blob/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 2c95a1693..5a7064394 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,20 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultCapability.class) -}) -public interface Capability extends SubmodelElement { - -} +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultCapability.class)}) +public interface Capability extends SubmodelElement {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 6a8db6f5d..43c2ae0c8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,40 +16,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * The semantics of a property or other elements that may have a semantic description is defined by * a concept description. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultConceptDescription.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultConceptDescription.class)}) public interface ConceptDescription extends HasDataSpecification, Identifiable { - /** - * Reference to an external definition the concept is compatible to or was derived from. - * - * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf - * - * @return Returns the List of References for the property isCaseOfs. - */ - @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") - List getIsCaseOfs(); - - /** - * Reference to an external definition the concept is compatible to or was derived from. - * - * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf - * - * @param isCaseOfs desired value for the property isCaseOfs. - */ - void setIsCaseOfs(List isCaseOfs); - + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf + * + * @return Returns the List of References for the property isCaseOfs. + */ + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") + List getIsCaseOfs(); + + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf + * + * @param isCaseOfs desired value for the property isCaseOfs. + */ + void setIsCaseOfs(List isCaseOfs); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java index 157943973..f093cd8c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,20 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A custom data specification is a user-defined extension of the standard data specification * content. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultCustomDataSpecification.class) -}) -public interface CustomDataSpecification extends DataSpecificationContent { - -} +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultCustomDataSpecification.class)}) +public interface CustomDataSpecification extends DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 09247fef1..4159c0612 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,24 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) -public interface DataElement extends SubmodelElement { - -} +public interface DataElement extends SubmodelElement {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 2fcc9a5c4..6545d5282 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,22 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * Data specification content is part of a data specification template and defines which additional * attributes shall be added to the element instance that references the data specification template * and meta information about the template itself. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class), - @KnownSubtypes.Type(value = CustomDataSpecification.class) + @KnownSubtypes.Type(value = DataSpecificationIec61360.class), + @KnownSubtypes.Type(value = CustomDataSpecification.class) }) -public interface DataSpecificationContent { - -} +public interface DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index 3651f3cdc..fba067a43 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,251 +16,248 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class)}) public interface DataSpecificationIec61360 extends DataSpecificationContent { - /** - * Preferred name - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName - * - * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredNames. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") - List getPreferredNames(); - - /** - * Preferred name - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName - * - * @param preferredNames desired value for the property preferredNames. - */ - void setPreferredNames(List preferredNames); + /** + * Preferred name + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName + * + * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property + * preferredNames. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") + List getPreferredNames(); - /** - * Short name - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName - * - * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") - List getShortNames(); + /** + * Preferred name + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName + * + * @param preferredNames desired value for the property preferredNames. + */ + void setPreferredNames(List preferredNames); - /** - * Short name - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName - * - * @param shortNames desired value for the property shortNames. - */ - void setShortNames(List shortNames); + /** + * Short name + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName + * + * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") + List getShortNames(); - /** - * Unit - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit - * - * @return Returns the String for the property unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") - String getUnit(); + /** + * Short name + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName + * + * @param shortNames desired value for the property shortNames. + */ + void setShortNames(List shortNames); - /** - * Unit - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit - * - * @param unit desired value for the property unit. - */ - void setUnit(String unit); + /** + * Unit + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit + * + * @return Returns the String for the property unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") + String getUnit(); - /** - * Unique unit id - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId - * - * @return Returns the Reference for the property unitId. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") - Reference getUnitId(); + /** + * Unit + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit + * + * @param unit desired value for the property unit. + */ + void setUnit(String unit); - /** - * Unique unit id - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId - * - * @param unitId desired value for the property unitId. - */ - void setUnitId(Reference unitId); + /** + * Unique unit id + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId + * + * @return Returns the Reference for the property unitId. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") + Reference getUnitId(); - /** - * Source of definition - * - * More information under - * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition - * - * @return Returns the String for the property sourceOfDefinition. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") - String getSourceOfDefinition(); + /** + * Unique unit id + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId + * + * @param unitId desired value for the property unitId. + */ + void setUnitId(Reference unitId); - /** - * Source of definition - * - * More information under - * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition - * - * @param sourceOfDefinition desired value for the property sourceOfDefinition. - */ - void setSourceOfDefinition(String sourceOfDefinition); + /** + * Source of definition + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition + * + * @return Returns the String for the property sourceOfDefinition. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") + String getSourceOfDefinition(); - /** - * Symbol - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol - * - * @return Returns the String for the property symbol. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") - String getSymbol(); + /** + * Source of definition + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition + * + * @param sourceOfDefinition desired value for the property sourceOfDefinition. + */ + void setSourceOfDefinition(String sourceOfDefinition); - /** - * Symbol - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol - * - * @param symbol desired value for the property symbol. - */ - void setSymbol(String symbol); + /** + * Symbol + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol + * + * @return Returns the String for the property symbol. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") + String getSymbol(); - /** - * Data Type - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType - * - * @return Returns the DataTypeIec61360 for the property dataType. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") - DataTypeIec61360 getDataType(); + /** + * Symbol + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol + * + * @param symbol desired value for the property symbol. + */ + void setSymbol(String symbol); - /** - * Data Type - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType - * - * @param dataType desired value for the property dataType. - */ - void setDataType(DataTypeIec61360 dataType); + /** + * Data Type + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType + * + * @return Returns the DataTypeIec61360 for the property dataType. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") + DataTypeIec61360 getDataType(); - /** - * Definition in different languages - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition - * - * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") - List getDefinitions(); + /** + * Data Type + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType + * + * @param dataType desired value for the property dataType. + */ + void setDataType(DataTypeIec61360 dataType); - /** - * Definition in different languages - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition - * - * @param definitions desired value for the property definitions. - */ - void setDefinitions(List definitions); + /** + * Definition in different languages + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition + * + * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") + List getDefinitions(); - /** - * Value Format - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat - * - * @return Returns the String for the property valueFormat. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") - String getValueFormat(); + /** + * Definition in different languages + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition + * + * @param definitions desired value for the property definitions. + */ + void setDefinitions(List definitions); - /** - * Value Format - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat - * - * @param valueFormat desired value for the property valueFormat. - */ - void setValueFormat(String valueFormat); + /** + * Value Format + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat + * + * @return Returns the String for the property valueFormat. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") + String getValueFormat(); - /** - * List of allowed values - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList - * - * @return Returns the ValueList for the property valueList. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") - ValueList getValueList(); + /** + * Value Format + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat + * + * @param valueFormat desired value for the property valueFormat. + */ + void setValueFormat(String valueFormat); - /** - * List of allowed values - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList - * - * @param valueList desired value for the property valueList. - */ - void setValueList(ValueList valueList); + /** + * List of allowed values + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList + * + * @return Returns the ValueList for the property valueList. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") + ValueList getValueList(); - /** - * Value - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") - String getValue(); + /** + * List of allowed values + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList + * + * @param valueList desired value for the property valueList. + */ + void setValueList(ValueList valueList); - /** - * Value - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Value + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") + String getValue(); - /** - * Set of levels. - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType - * - * @return Returns the LevelType for the property levelType. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") - LevelType getLevelType(); + /** + * Value + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Set of levels. - * - * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType - * - * @param levelType desired value for the property levelType. - */ - void setLevelType(LevelType levelType); + /** + * Set of levels. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType + * + * @return Returns the LevelType for the property levelType. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") + LevelType getLevelType(); + /** + * Set of levels. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType + * + * @param levelType desired value for the property levelType. + */ + void setLevelType(LevelType levelType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index 57a614256..3c684ddee 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,167 +15,131 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration listing all XSD anySimpleTypes - */ +/** Enumeration listing all XSD anySimpleTypes */ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") - ANY_URI, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") - BASE64BINARY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") - BOOLEAN, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") - BYTE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") - DATE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") - DATE_TIME, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") - DECIMAL, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") - DOUBLE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") - DURATION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") - FLOAT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") - GDAY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") - GMONTH, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") - GMONTH_DAY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") - GYEAR, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") - GYEAR_MONTH, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") - HEX_BINARY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") - INT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") - INTEGER, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") - LONG, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") - NEGATIVE_INTEGER, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") - NON_NEGATIVE_INTEGER, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") - NON_POSITIVE_INTEGER, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") - POSITIVE_INTEGER, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") - SHORT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") - STRING, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") - TIME, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") - UNSIGNED_BYTE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") - UNSIGNED_INT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") - UNSIGNED_LONG, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") - UNSIGNED_SHORT; + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") + ANY_URI, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") + BASE64BINARY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") + BOOLEAN, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") + BYTE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") + DATE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") + DATE_TIME, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") + DECIMAL, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") + DOUBLE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") + DURATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") + FLOAT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") + GDAY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") + GMONTH, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") + GMONTH_DAY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") + GYEAR, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") + GYEAR_MONTH, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") + HEX_BINARY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") + INT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") + INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") + LONG, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") + NEGATIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") + NON_NEGATIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") + NON_POSITIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") + POSITIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") + SHORT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") + STRING, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") + TIME, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") + UNSIGNED_BYTE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") + UNSIGNED_INT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") + UNSIGNED_LONG, + /** */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") + UNSIGNED_SHORT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index beee50db7..2940c37a9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,138 +15,115 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ +/** */ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { - /** - * values containing the content of a file. Values may be binaries. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Blob") - BLOB, - - /** - * values representing truth of logic or Boolean algebra (TRUE, FALSE) - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Boolean") - BOOLEAN, - - /** - * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from IEC - * 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Date") - DATE, - - /** - * values containing an address to a file. The values are of type URI and can represent an absolute - * or relative path. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/File") - FILE, - - /** - * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C - * Recommendation 28:2014) - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Html") - HTML, - - /** - * values containing values of type INTEGER but are no currencies or measures - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCount") - INTEGER_COUNT, - - /** - * values containing values of type INTEGER that are currencies - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCurrency") - INTEGER_CURRENCY, - - /** - * values containing values that are measure of type INTEGER. In addition such a value comes with a - * physical unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerMeasure") - INTEGER_MEASURE, - - /** - * values conforming to ISO/IEC 11179 series global identifier sequences - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Irdi") - IRDI, - - /** - * values containing values of type STRING conformant to Rfc 3987 - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Iri") - IRI, - - /** - * values containing values of type rational - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Rational") - RATIONAL, - - /** - * values containing values of type rational. In addition such a value comes with a physical unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RationalMeasure") - RATIONAL_MEASURE, - - /** - * values containing numbers that can be written as a terminating or non-terminating decimal; a - * rational or irrational number but are no currencies or measures - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCount") - REAL_COUNT, - - /** - * values containing values of type REAL that are currencies - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCurrency") - REAL_CURRENCY, - - /** - * values containing values that are measures of type REAL. In addition such a value comes with a - * physical unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealMeasure") - REAL_MEASURE, - - /** - * values consisting of sequence of characters but cannot be translated into other languages - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/String") - STRING, - - /** - * values containing string but shall be represented as different string in different languages - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/StringTranslatable") - STRING_TRANSLATABLE, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Time") - TIME, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") - TIMESTAMP; - + /** values containing the content of a file. Values may be binaries. */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Blob") + BLOB, + + /** values representing truth of logic or Boolean algebra (TRUE, FALSE) */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Boolean") + BOOLEAN, + + /** + * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from + * IEC 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Date") + DATE, + + /** + * values containing an address to a file. The values are of type URI and can represent an + * absolute or relative path. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/File") + FILE, + + /** + * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C + * Recommendation 28:2014) + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Html") + HTML, + + /** values containing values of type INTEGER but are no currencies or measures */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCount") + INTEGER_COUNT, + + /** values containing values of type INTEGER that are currencies */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCurrency") + INTEGER_CURRENCY, + + /** + * values containing values that are measure of type INTEGER. In addition such a value comes with + * a physical unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerMeasure") + INTEGER_MEASURE, + + /** values conforming to ISO/IEC 11179 series global identifier sequences */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Irdi") + IRDI, + + /** values containing values of type STRING conformant to Rfc 3987 */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Iri") + IRI, + + /** values containing values of type rational */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Rational") + RATIONAL, + + /** + * values containing values of type rational. In addition such a value comes with a physical unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RationalMeasure") + RATIONAL_MEASURE, + + /** + * values containing numbers that can be written as a terminating or non-terminating decimal; a + * rational or irrational number but are no currencies or measures + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCount") + REAL_COUNT, + + /** values containing values of type REAL that are currencies */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCurrency") + REAL_CURRENCY, + + /** + * values containing values that are measures of type REAL. In addition such a value comes with a + * physical unit. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealMeasure") + REAL_MEASURE, + + /** values consisting of sequence of characters but cannot be translated into other languages */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/String") + STRING, + + /** + * values containing string but shall be represented as different string in different languages + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/StringTranslatable") + STRING_TRANSLATABLE, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Time") + TIME, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") + TIMESTAMP; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index 60e800d97..f284c2114 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,38 +16,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ +/** */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDescriptor.class), - @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), - @KnownSubtypes.Type(value = SubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultDescriptor.class), + @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), + @KnownSubtypes.Type(value = SubmodelDescriptor.class) }) public interface Descriptor { - /** - * - * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints - * - * @return Returns the List of Endpoints for the property endpoints. - */ - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - List getEndpoints(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); - + /** + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints + * + * @return Returns the List of Endpoints for the property endpoints. + */ + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + List getEndpoints(); + + /** + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints + * + * @param endpoints desired value for the property endpoints. + */ + void setEndpoints(List endpoints); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index 2f68b2d0c..b91704e2a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Direction - */ +/** Direction */ @IRI("aas:Direction") public enum Direction { - /** - * Input direction. - */ - @IRI("https://admin-shell.io/aas/3/2/Direction/Input") - INPUT, - - /** - * Output direction - */ - @IRI("https://admin-shell.io/aas/3/2/Direction/Output") - OUTPUT; + /** Input direction. */ + @IRI("https://admin-shell.io/aas/3/2/Direction/Input") + INPUT, + /** Output direction */ + @IRI("https://admin-shell.io/aas/3/2/Direction/Output") + OUTPUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 6eeff35c2..951a36f6f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,60 +15,54 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Embed the content of a data specification. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) -}) +/** Embed the content of a data specification. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class)}) public interface EmbeddedDataSpecification { - /** - * Reference to the data specification - * - * More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification - * - * @return Returns the Reference for the property dataSpecification. - */ - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") - Reference getDataSpecification(); - - /** - * Reference to the data specification - * - * More information under https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification - * - * @param dataSpecification desired value for the property dataSpecification. - */ - void setDataSpecification(Reference dataSpecification); + /** + * Reference to the data specification + * + *

More information under + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification + * + * @return Returns the Reference for the property dataSpecification. + */ + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") + Reference getDataSpecification(); - /** - * Actual content of the data specification - * - * More information under - * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent - * - * @return Returns the DataSpecificationContent for the property dataSpecificationContent. - */ - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") - DataSpecificationContent getDataSpecificationContent(); + /** + * Reference to the data specification + * + *

More information under + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification + * + * @param dataSpecification desired value for the property dataSpecification. + */ + void setDataSpecification(Reference dataSpecification); - /** - * Actual content of the data specification - * - * More information under - * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent - * - * @param dataSpecificationContent desired value for the property dataSpecificationContent. - */ - void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); + /** + * Actual content of the data specification + * + *

More information under + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent + * + * @return Returns the DataSpecificationContent for the property dataSpecificationContent. + */ + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") + DataSpecificationContent getDataSpecificationContent(); + /** + * Actual content of the data specification + * + *

More information under + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent + * + * @param dataSpecificationContent desired value for the property dataSpecificationContent. + */ + void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index 8a4ed2dcb..87aec35b5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,53 +15,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEndpoint.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEndpoint.class)}) public interface Endpoint { - /** - * - * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface - * - * @return Returns the String for the property _interface. - */ - @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") - String get_interface(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface - * - * @param _interface desired value for the property _interface. - */ - void set_interface(String _interface); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation - * - * @return Returns the ProtocolInformation for the property protocolInformation. - */ - @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") - ProtocolInformation getProtocolInformation(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation - * - * @param protocolInformation desired value for the property protocolInformation. - */ - void setProtocolInformation(ProtocolInformation protocolInformation); - + /** + * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface + * + * @return Returns the String for the property _interface. + */ + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") + String get_interface(); + + /** + * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface + * + * @param _interface desired value for the property _interface. + */ + void set_interface(String _interface); + + /** + * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation + * + * @return Returns the ProtocolInformation for the property protocolInformation. + */ + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") + ProtocolInformation getProtocolInformation(); + + /** + * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation + * + * @param protocolInformation desired value for the property protocolInformation. + */ + void setProtocolInformation(ProtocolInformation protocolInformation); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index 69ae62a28..a59efc8af 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,100 +16,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An entity is a submodel element that is used to model entities. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEntity.class) -}) +/** An entity is a submodel element that is used to model entities. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEntity.class)}) public interface Entity extends SubmodelElement { - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - * - * More information under https://admin-shell.io/aas/3/2/Entity/statements - * - * @return Returns the List of SubmodelElements for the property statements. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/statements") - List getStatements(); - - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - * - * More information under https://admin-shell.io/aas/3/2/Entity/statements - * - * @param statements desired value for the property statements. - */ - void setStatements(List statements); + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/statements + * + * @return Returns the List of SubmodelElements for the property statements. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") + List getStatements(); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - * - * More information under https://admin-shell.io/aas/3/2/Entity/entityType - * - * @return Returns the EntityType for the property entityType. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") - EntityType getEntityType(); + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/statements + * + * @param statements desired value for the property statements. + */ + void setStatements(List statements); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - * - * More information under https://admin-shell.io/aas/3/2/Entity/entityType - * - * @param entityType desired value for the property entityType. - */ - void setEntityType(EntityType entityType); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/entityType + * + * @return Returns the EntityType for the property entityType. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") + EntityType getEntityType(); - /** - * Global identifier of the asset the entity is representing. - * - * More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") - String getGlobalAssetId(); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/entityType + * + * @param entityType desired value for the property entityType. + */ + void setEntityType(EntityType entityType); - /** - * Global identifier of the asset the entity is representing. - * - * More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); + /** + * Global identifier of the asset the entity is representing. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") + String getGlobalAssetId(); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset represented - * by the Asset Administration Shell. - * - * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") - List getSpecificAssetIds(); + /** + * Global identifier of the asset the entity is representing. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset represented - * by the Asset Administration Shell. - * - * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset + * represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") + List getSpecificAssetIds(); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset + * represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 1f9883f34..205b764ce 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,25 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. - */ +/** Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. */ @IRI("aas:EntityType") public enum EntityType { - /** - * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/2/EntityType/CoManagedEntity") - CO_MANAGED_ENTITY, - - /** - * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") - SELF_MANAGED_ENTITY; - + /** + * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/2/EntityType/CoManagedEntity") + CO_MANAGED_ENTITY, + + /** + * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") + SELF_MANAGED_ENTITY; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index d3f42d474..d94c87b4a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,77 +16,70 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Container for the sets of different identifiables. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEnvironment.class) -}) +/** Container for the sets of different identifiables. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEnvironment.class)}) public interface Environment { - /** - * Asset administration shell - * - * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells - * - * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. - */ - @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") - List getAssetAdministrationShells(); - - /** - * Asset administration shell - * - * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells - * - * @param assetAdministrationShells desired value for the property assetAdministrationShells. - */ - void setAssetAdministrationShells(List assetAdministrationShells); + /** + * Asset administration shell + * + *

More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells + * + * @return Returns the List of AssetAdministrationShells for the property + * assetAdministrationShells. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") + List getAssetAdministrationShells(); - /** - * Submodel - * - * More information under https://admin-shell.io/aas/3/2/Environment/submodels - * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") - List getSubmodels(); + /** + * Asset administration shell + * + *

More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells + * + * @param assetAdministrationShells desired value for the property assetAdministrationShells. + */ + void setAssetAdministrationShells(List assetAdministrationShells); - /** - * Submodel - * - * More information under https://admin-shell.io/aas/3/2/Environment/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * Submodel + * + *

More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") + List getSubmodels(); - /** - * Concept description - * - * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions - * - * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. - */ - @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") - List getConceptDescriptions(); + /** + * Submodel + * + *

More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); - /** - * Concept description - * - * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions - * - * @param conceptDescriptions desired value for the property conceptDescriptions. - */ - void setConceptDescriptions(List conceptDescriptions); + /** + * Concept description + * + *

More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions + * + * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") + List getConceptDescriptions(); + /** + * Concept description + * + *

More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions + * + * @param conceptDescriptions desired value for the property conceptDescriptions. + */ + void setConceptDescriptions(List conceptDescriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index f0d1f1ebd..8737e21b0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,19 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An event element. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = BasicEventElement.class) -}) -public interface EventElement extends SubmodelElement { - -} +/** An event element. */ +@KnownSubtypes({@KnownSubtypes.Type(value = BasicEventElement.class)}) +public interface EventElement extends SubmodelElement {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index cd0b0411a..79c7507c4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,176 +15,168 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Defines the necessary information of an event instance sent out or received. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEventPayload.class) -}) +/** Defines the necessary information of an event instance sent out or received. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEventPayload.class)}) public interface EventPayload { - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/source - * - * @return Returns the Reference for the property source. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") - Reference getSource(); - - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/source - * - * @param source desired value for the property source. - */ - void setSource(Reference source); - - /** - * 'semanticId' of the source event element, if available - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId - * - * @return Returns the Reference for the property sourceSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") - Reference getSourceSemanticId(); - - /** - * 'semanticId' of the source event element, if available - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId - * - * @param sourceSemanticId desired value for the property sourceSemanticId. - */ - void setSourceSemanticId(Reference sourceSemanticId); - - /** - * Reference to the referable, which defines the scope of the event. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference - * - * @return Returns the Reference for the property observableReference. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") - Reference getObservableReference(); - - /** - * Reference to the referable, which defines the scope of the event. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference - * - * @param observableReference desired value for the property observableReference. - */ - void setObservableReference(Reference observableReference); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId - * - * @return Returns the Reference for the property observableSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") - Reference getObservableSemanticId(); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId - * - * @param observableSemanticId desired value for the property observableSemanticId. - */ - void setObservableSemanticId(Reference observableSemanticId); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/topic - * - * @return Returns the String for the property topic. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") - String getTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/topic - * - * @param topic desired value for the property topic. - */ - void setTopic(String topic); - - /** - * Subject, who/which initiated the creation. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId - * - * @return Returns the Reference for the property subjectId. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") - Reference getSubjectId(); - - /** - * Subject, who/which initiated the creation. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId - * - * @param subjectId desired value for the property subjectId. - */ - void setSubjectId(Reference subjectId); - - /** - * Timestamp in UTC, when this event was triggered. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp - * - * @return Returns the String for the property timeStamp. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") - String getTimeStamp(); - - /** - * Timestamp in UTC, when this event was triggered. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp - * - * @param timeStamp desired value for the property timeStamp. - */ - void setTimeStamp(String timeStamp); - - /** - * Event specific payload. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/payload - * - * @return Returns the byte[] for the property payload. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") - byte[] getPayload(); - - /** - * Event specific payload. - * - * More information under https://admin-shell.io/aas/3/2/EventPayload/payload - * - * @param payload desired value for the property payload. - */ - void setPayload(byte[] payload); - + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/source + * + * @return Returns the Reference for the property source. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") + Reference getSource(); + + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/source + * + * @param source desired value for the property source. + */ + void setSource(Reference source); + + /** + * 'semanticId' of the source event element, if available + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId + * + * @return Returns the Reference for the property sourceSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") + Reference getSourceSemanticId(); + + /** + * 'semanticId' of the source event element, if available + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId + * + * @param sourceSemanticId desired value for the property sourceSemanticId. + */ + void setSourceSemanticId(Reference sourceSemanticId); + + /** + * Reference to the referable, which defines the scope of the event. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference + * + * @return Returns the Reference for the property observableReference. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") + Reference getObservableReference(); + + /** + * Reference to the referable, which defines the scope of the event. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference + * + * @param observableReference desired value for the property observableReference. + */ + void setObservableReference(Reference observableReference); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId + * + * @return Returns the Reference for the property observableSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") + Reference getObservableSemanticId(); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId + * + * @param observableSemanticId desired value for the property observableSemanticId. + */ + void setObservableSemanticId(Reference observableSemanticId); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/topic + * + * @return Returns the String for the property topic. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") + String getTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/topic + * + * @param topic desired value for the property topic. + */ + void setTopic(String topic); + + /** + * Subject, who/which initiated the creation. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId + * + * @return Returns the Reference for the property subjectId. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") + Reference getSubjectId(); + + /** + * Subject, who/which initiated the creation. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId + * + * @param subjectId desired value for the property subjectId. + */ + void setSubjectId(Reference subjectId); + + /** + * Timestamp in UTC, when this event was triggered. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp + * + * @return Returns the String for the property timeStamp. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") + String getTimeStamp(); + + /** + * Timestamp in UTC, when this event was triggered. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp + * + * @param timeStamp desired value for the property timeStamp. + */ + void setTimeStamp(String timeStamp); + + /** + * Event specific payload. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/payload + * + * @return Returns the byte[] for the property payload. + */ + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") + byte[] getPayload(); + + /** + * Event specific payload. + * + *

More information under https://admin-shell.io/aas/3/2/EventPayload/payload + * + * @param payload desired value for the property payload. + */ + void setPayload(byte[] payload); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index 69ecdc356..d69020975 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,46 +15,35 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ +/** */ @IRI("aas:ExecutionState") public enum ExecutionState { - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") - CANCELED, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") - COMPLETED, + /** */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") + CANCELED, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") - FAILED, + /** */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") + COMPLETED, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") - INITIATED, + /** */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") + FAILED, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") - RUNNING, + /** */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") + INITIATED, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Timeout") - TIMEOUT; + /** */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") + RUNNING, + /** */ + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Timeout") + TIMEOUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index d246f4d8b..e238a0ba7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,96 +16,88 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Single extension of an element. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultExtension.class) -}) +/** Single extension of an element. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultExtension.class)}) public interface Extension extends HasSemantics { - /** - * Name of the extension. - * - * More information under https://admin-shell.io/aas/3/2/Extension/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/name") - String getName(); - - /** - * Name of the extension. - * - * More information under https://admin-shell.io/aas/3/2/Extension/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * Name of the extension. + * + *

More information under https://admin-shell.io/aas/3/2/Extension/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/name") + String getName(); - /** - * Type of the value of the extension. - * - * More information under https://admin-shell.io/aas/3/2/Extension/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") - DataTypeDefXsd getValueType(); + /** + * Name of the extension. + * + *

More information under https://admin-shell.io/aas/3/2/Extension/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * Type of the value of the extension. - * - * More information under https://admin-shell.io/aas/3/2/Extension/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Type of the value of the extension. + * + *

More information under https://admin-shell.io/aas/3/2/Extension/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") + DataTypeDefXsd getValueType(); - /** - * Value of the extension - * - * More information under https://admin-shell.io/aas/3/2/Extension/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/value") - String getValue(); + /** + * Type of the value of the extension. + * + *

More information under https://admin-shell.io/aas/3/2/Extension/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Value of the extension - * - * More information under https://admin-shell.io/aas/3/2/Extension/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Value of the extension + * + *

More information under https://admin-shell.io/aas/3/2/Extension/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/value") + String getValue(); - /** - * Reference to an element the extension refers to. - * - * More information under https://admin-shell.io/aas/3/2/Extension/refersTo - * - * @return Returns the List of References for the property refersTos. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") - List getRefersTos(); + /** + * Value of the extension + * + *

More information under https://admin-shell.io/aas/3/2/Extension/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Reference to an element the extension refers to. - * - * More information under https://admin-shell.io/aas/3/2/Extension/refersTo - * - * @param refersTos desired value for the property refersTos. - */ - void setRefersTos(List refersTos); + /** + * Reference to an element the extension refers to. + * + *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo + * + * @return Returns the List of References for the property refersTos. + */ + @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") + List getRefersTos(); + /** + * Reference to an element the extension refers to. + * + *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo + * + * @param refersTos desired value for the property refersTos. + */ + void setRefersTos(List refersTos); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index d1d1f2b42..f59c283a2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,58 +15,50 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A File is a data element that represents an address to a file (a locator). - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultFile.class) -}) +/** A File is a data element that represents an address to a file (a locator). */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultFile.class)}) public interface File extends DataElement { - /** - * Path and name of the referenced file (with file extension). - * - * More information under https://admin-shell.io/aas/3/2/File/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/File/value") - String getValue(); - - /** - * Path and name of the referenced file (with file extension). - * - * More information under https://admin-shell.io/aas/3/2/File/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Path and name of the referenced file (with file extension). + * + *

More information under https://admin-shell.io/aas/3/2/File/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/File/value") + String getValue(); - /** - * Content type of the content of the file. - * - * More information under https://admin-shell.io/aas/3/2/File/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/2/File/contentType") - String getContentType(); + /** + * Path and name of the referenced file (with file extension). + * + *

More information under https://admin-shell.io/aas/3/2/File/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Content type of the content of the file. - * - * More information under https://admin-shell.io/aas/3/2/File/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/2/File/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/2/File/contentType") + String getContentType(); + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/2/File/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index c7a40f367..9c6c4d16c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,47 +16,41 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Element that can be extended by using data specification templates. - */ +/** Element that can be extended by using data specification templates. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface HasDataSpecification { - /** - * Embedded data specification. - * - * More information under - * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications - * - * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. - */ - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - List getEmbeddedDataSpecifications(); - - /** - * Embedded data specification. - * - * More information under - * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. - */ - void setEmbeddedDataSpecifications(List embeddedDataSpecifications); - + /** + * Embedded data specification. + * + *

More information under + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications + * + * @return Returns the List of EmbeddedDataSpecifications for the property + * embeddedDataSpecifications. + */ + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + List getEmbeddedDataSpecifications(); + + /** + * Embedded data specification. + * + *

More information under + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. + */ + void setEmbeddedDataSpecifications(List embeddedDataSpecifications); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 37b4acb31..09ef5cab0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,39 +16,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Element that can be extended by proprietary extensions. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = Referable.class) -}) +/** Element that can be extended by proprietary extensions. */ +@KnownSubtypes({@KnownSubtypes.Type(value = Referable.class)}) public interface HasExtensions { - /** - * An extension of the element. - * - * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions - * - * @return Returns the List of Extensions for the property extensions. - */ - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - List getExtensions(); - - /** - * An extension of the element. - * - * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions - * - * @param extensions desired value for the property extensions. - */ - void setExtensions(List extensions); - + /** + * An extension of the element. + * + *

More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions + * + * @return Returns the List of Extensions for the property extensions. + */ + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + List getExtensions(); + + /** + * An extension of the element. + * + *

More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions + * + * @param extensions desired value for the property extensions. + */ + void setExtensions(List extensions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index b416c2c17..a1bdb82e4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,39 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An element with a kind is an element that can either represent a template or an instance. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class) -}) +/** An element with a kind is an element that can either represent a template or an instance. */ +@KnownSubtypes({@KnownSubtypes.Type(value = Submodel.class)}) public interface HasKind { - /** - * Kind of the element: either template or instance. - * - * More information under https://admin-shell.io/aas/3/2/HasKind/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") - ModellingKind getKind(); - - /** - * Kind of the element: either template or instance. - * - * More information under https://admin-shell.io/aas/3/2/HasKind/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); - + /** + * Kind of the element: either template or instance. + * + *

More information under https://admin-shell.io/aas/3/2/HasKind/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") + ModellingKind getKind(); + + /** + * Kind of the element: either template or instance. + * + *

More information under https://admin-shell.io/aas/3/2/HasKind/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index 6635cca24..cec3a4366 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,67 +16,61 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Element that can have a semantic definition plus some supplemental semantic definitions. - */ +/** Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element or - * also main semantic ID of the element. - * - * More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - Reference getSemanticId(); - - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element or - * also main semantic ID of the element. - * - * More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element + * or also main semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + Reference getSemanticId(); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - * - * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds - * - * @return Returns the List of References for the property supplementalSemanticIds. - */ - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - List getSupplementalSemanticIds(); + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element + * or also main semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - * - * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds - * - * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. - */ - void setSupplementalSemanticIds(List supplementalSemanticIds); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds + * + * @return Returns the List of References for the property supplementalSemanticIds. + */ + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + List getSupplementalSemanticIds(); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds + * + * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. + */ + void setSupplementalSemanticIds(List supplementalSemanticIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index c5a49b6e4..5c07cc6dd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,60 +15,54 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An element that has a globally unique identifier. - */ +/** An element that has a globally unique identifier. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { - /** - * Administrative information of an identifiable element. - * - * More information under https://admin-shell.io/aas/3/2/Identifiable/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - AdministrativeInformation getAdministration(); - - /** - * Administrative information of an identifiable element. - * - * More information under https://admin-shell.io/aas/3/2/Identifiable/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); + /** + * Administrative information of an identifiable element. + * + *

More information under https://admin-shell.io/aas/3/2/Identifiable/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + AdministrativeInformation getAdministration(); - /** - * The globally unique identification of the element. - * - * More information under https://admin-shell.io/aas/3/2/Identifiable/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - String getId(); + /** + * Administrative information of an identifiable element. + * + *

More information under https://admin-shell.io/aas/3/2/Identifiable/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); - /** - * The globally unique identification of the element. - * - * More information under https://admin-shell.io/aas/3/2/Identifiable/id - * - * @param id desired value for the property id. - */ - void setId(String id); + /** + * The globally unique identification of the element. + * + *

More information under https://admin-shell.io/aas/3/2/Identifiable/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + String getId(); + /** + * The globally unique identification of the element. + * + *

More information under https://admin-shell.io/aas/3/2/Identifiable/id + * + * @param id desired value for the property id. + */ + void setId(String id); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index 166a5341b..7ce4ebf01 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,58 +15,50 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A key is a reference to an element by its ID. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultKey.class) -}) +/** A key is a reference to an element by its ID. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultKey.class)}) public interface Key { - /** - * Denotes which kind of entity is referenced. - * - * More information under https://admin-shell.io/aas/3/2/Key/type - * - * @return Returns the KeyTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/Key/type") - KeyTypes getType(); - - /** - * Denotes which kind of entity is referenced. - * - * More information under https://admin-shell.io/aas/3/2/Key/type - * - * @param type desired value for the property type. - */ - void setType(KeyTypes type); + /** + * Denotes which kind of entity is referenced. + * + *

More information under https://admin-shell.io/aas/3/2/Key/type + * + * @return Returns the KeyTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/Key/type") + KeyTypes getType(); - /** - * The key value, for example an IRDI or an URI - * - * More information under https://admin-shell.io/aas/3/2/Key/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Key/value") - String getValue(); + /** + * Denotes which kind of entity is referenced. + * + *

More information under https://admin-shell.io/aas/3/2/Key/type + * + * @param type desired value for the property type. + */ + void setType(KeyTypes type); - /** - * The key value, for example an IRDI or an URI - * - * More information under https://admin-shell.io/aas/3/2/Key/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The key value, for example an IRDI or an URI + * + *

More information under https://admin-shell.io/aas/3/2/Key/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Key/value") + String getValue(); + /** + * The key value, for example an IRDI or an URI + * + *

More information under https://admin-shell.io/aas/3/2/Key/value + * + * @param value desired value for the property value. + */ + void setValue(String value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index 56c5c4954..4399c6f75 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,148 +15,107 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration of different key value types within a key. - */ +/** Enumeration of different key value types within a key. */ @IRI("aas:KeyTypes") public enum KeyTypes { - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") - BLOB, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") - CAPABILITY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** - * Data element. - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") - DATA_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") - ENTITY, - - /** - * Event. - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") - EVENT_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") - FILE, - - /** - * Bookmark or a similar local identifier of a subordinate part of a primary resource - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") - FRAGMENT_REFERENCE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") - GLOBAL_REFERENCE, - - /** - * Identifiable. - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Identifiable") - IDENTIFIABLE, - - /** - * Property with a value that can be provided in multiple languages - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") - OPERATION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") - PROPERTY, - - /** - * Range with min and max - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") - RANGE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") - REFERABLE, - - /** - * Reference - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ReferenceElement") - REFERENCE_ELEMENT, - - /** - * Relationship - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") - SUBMODEL, - - /** - * Submodel Element - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElement") - SUBMODEL_ELEMENT, - - /** - * Struct of Submodel Elements - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** - * List of Submodel Elements - */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") + BLOB, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") + CAPABILITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** Data element. */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") + DATA_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") + ENTITY, + + /** Event. */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") + EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") + FILE, + + /** Bookmark or a similar local identifier of a subordinate part of a primary resource */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") + FRAGMENT_REFERENCE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") + GLOBAL_REFERENCE, + + /** Identifiable. */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Identifiable") + IDENTIFIABLE, + + /** Property with a value that can be provided in multiple languages */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") + OPERATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") + PROPERTY, + + /** Range with min and max */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") + RANGE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") + REFERABLE, + + /** Reference */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ReferenceElement") + REFERENCE_ELEMENT, + + /** Relationship */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") + SUBMODEL, + + /** Submodel Element */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElement") + SUBMODEL_ELEMENT, + + /** Struct of Submodel Elements */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + /** List of Submodel Elements */ + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index b88b19636..a89545443 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,80 +17,77 @@ import java.io.Serializable; import java.util.Objects; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - @IRI("rdf:langString") public class LangString implements Serializable { - private String language = null; - private String value = null; - - public LangString() { - super(); - } - - public LangString(String valueAndLanguage) { - if (valueAndLanguage.contains("@")) { - String[] splitString = valueAndLanguage.split("@"); - this.value = splitString[0]; - this.language = splitString[1]; - } else { - this.value = valueAndLanguage; - } - } + private String language = null; + private String value = null; - public LangString(String value, String language) { - this.value = value; - this.language = language; - } + public LangString() { + super(); + } - public String getLanguage() { - return language; + public LangString(String valueAndLanguage) { + if (valueAndLanguage.contains("@")) { + String[] splitString = valueAndLanguage.split("@"); + this.value = splitString[0]; + this.language = splitString[1]; + } else { + this.value = valueAndLanguage; } - - public void setLanguage(String language) { - this.language = language; + } + + public LangString(String value, String language) { + this.value = value; + this.language = language; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + LangString other = (LangString) obj; + return Objects.equals(this.language, other.language) + && Objects.equals(this.value, other.value); } - - public String getValue() { - return value; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.value); + } + + @Override + public String toString() { + String result = this.value; + if (this.language != null && !this.language.isEmpty()) { + return "\"" + result + "\"@" + this.language; } - - public void setValue(String value) { - this.value = value; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - LangString other = (LangString) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.value, other.value); - } - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.value); - } - - @Override - public String toString() { - String result = this.value; - if (this.language != null && !this.language.isEmpty()) { - return "\"" + result + "\"@" + this.language; - } - return result; - } - + return result; + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index f9b31845d..7ea87c13b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,19 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * String with length 1023 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) -}) -public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { - -} +/** String with length 1023 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class)}) +public interface LangStringDefinitionTypeIec61360 extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 5bf87106c..02cc9ba44 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,19 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * String with length 128 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringNameType.class) -}) -public interface LangStringNameType extends AbstractLangString { - -} +/** String with length 128 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringNameType.class)}) +public interface LangStringNameType extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index be86f5c0d..7377fc32e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,19 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * String with length 255 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) -}) -public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { - -} +/** String with length 255 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class)}) +public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index 0a58632ae..c8bc2543f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,19 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * String with length 18 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) -}) -public interface LangStringShortNameTypeIec61360 extends AbstractLangString { - -} +/** String with length 18 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class)}) +public interface LangStringShortNameTypeIec61360 extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index db2e0ee28..5010e4868 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,19 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * String with length 1023 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringTextType.class) -}) -public interface LangStringTextType extends AbstractLangString { - -} +/** String with length 1023 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringTextType.class)}) +public interface LangStringTextType extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index 05afd12f0..d42b91c84 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,97 +15,91 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and * MAX. True means that the value is available, false means the value is not available. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLevelType.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLevelType.class)}) public interface LevelType { - /** - * Minimum of the value - * - * More information under https://admin-shell.io/aas/3/2/LevelType/min - * - * @return Returns the boolean for the property min. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/min") - boolean getMin(); - - /** - * Minimum of the value - * - * More information under https://admin-shell.io/aas/3/2/LevelType/min - * - * @param min desired value for the property min. - */ - void setMin(boolean min); + /** + * Minimum of the value + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/min + * + * @return Returns the boolean for the property min. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") + boolean getMin(); - /** - * Nominal value (value as designated) - * - * More information under https://admin-shell.io/aas/3/2/LevelType/nom - * - * @return Returns the boolean for the property nom. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") - boolean getNom(); + /** + * Minimum of the value + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/min + * + * @param min desired value for the property min. + */ + void setMin(boolean min); - /** - * Nominal value (value as designated) - * - * More information under https://admin-shell.io/aas/3/2/LevelType/nom - * - * @param nom desired value for the property nom. - */ - void setNom(boolean nom); + /** + * Nominal value (value as designated) + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/nom + * + * @return Returns the boolean for the property nom. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") + boolean getNom(); - /** - * Value as typically present - * - * More information under https://admin-shell.io/aas/3/2/LevelType/typ - * - * @return Returns the boolean for the property typ. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") - boolean getTyp(); + /** + * Nominal value (value as designated) + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/nom + * + * @param nom desired value for the property nom. + */ + void setNom(boolean nom); - /** - * Value as typically present - * - * More information under https://admin-shell.io/aas/3/2/LevelType/typ - * - * @param typ desired value for the property typ. - */ - void setTyp(boolean typ); + /** + * Value as typically present + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/typ + * + * @return Returns the boolean for the property typ. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") + boolean getTyp(); - /** - * Maximum of the value - * - * More information under https://admin-shell.io/aas/3/2/LevelType/max - * - * @return Returns the boolean for the property max. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/max") - boolean getMax(); + /** + * Value as typically present + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/typ + * + * @param typ desired value for the property typ. + */ + void setTyp(boolean typ); - /** - * Maximum of the value - * - * More information under https://admin-shell.io/aas/3/2/LevelType/max - * - * @param max desired value for the property max. - */ - void setMax(boolean max); + /** + * Maximum of the value + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/max + * + * @return Returns the boolean for the property max. + */ + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") + boolean getMax(); + /** + * Maximum of the value + * + *

More information under https://admin-shell.io/aas/3/2/LevelType/max + * + * @param max desired value for the property max. + */ + void setMax(boolean max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index e8f98ce3d..309085169 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,87 +15,72 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMessage.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMessage.class)}) public interface Message { - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/code - * - * @return Returns the String for the property code. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/code") - String getCode(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/code - * - * @param code desired value for the property code. - */ - void setCode(String code); + /** + * More information under https://admin-shell.io/aas/3/2/Message/code + * + * @return Returns the String for the property code. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/code") + String getCode(); - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/messageType - * - * @return Returns the MessageType for the property messageType. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/messageType") - MessageType getMessageType(); + /** + * More information under https://admin-shell.io/aas/3/2/Message/code + * + * @param code desired value for the property code. + */ + void setCode(String code); - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/messageType - * - * @param messageType desired value for the property messageType. - */ - void setMessageType(MessageType messageType); + /** + * More information under https://admin-shell.io/aas/3/2/Message/messageType + * + * @return Returns the MessageType for the property messageType. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") + MessageType getMessageType(); - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/text") - String getText(); + /** + * More information under https://admin-shell.io/aas/3/2/Message/messageType + * + * @param messageType desired value for the property messageType. + */ + void setMessageType(MessageType messageType); - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/text - * - * @param text desired value for the property text. - */ - void setText(String text); + /** + * More information under https://admin-shell.io/aas/3/2/Message/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/text") + String getText(); - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/timestamp - * - * @return Returns the String for the property timestamp. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") - String getTimestamp(); + /** + * More information under https://admin-shell.io/aas/3/2/Message/text + * + * @param text desired value for the property text. + */ + void setText(String text); - /** - * - * More information under https://admin-shell.io/aas/3/2/Message/timestamp - * - * @param timestamp desired value for the property timestamp. - */ - void setTimestamp(String timestamp); + /** + * More information under https://admin-shell.io/aas/3/2/Message/timestamp + * + * @return Returns the String for the property timestamp. + */ + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") + String getTimestamp(); + /** + * More information under https://admin-shell.io/aas/3/2/Message/timestamp + * + * @param timestamp desired value for the property timestamp. + */ + void setTimestamp(String timestamp); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java index 3f9ac260e..66d903f1e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,41 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ +/** */ @IRI("aas:MessageType") public enum MessageType { - /** - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") - ERROR, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") - EXCEPTION, + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") + ERROR, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") - INFO, + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") + EXCEPTION, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") - UNDEFINED, + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") + INFO, - /** - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") - WARNING; + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") + UNDEFINED, + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") + WARNING; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index dca23dee2..a6616fae9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,111 +15,87 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ +/** */ @IRI("aas:ModelType") public enum ModelType { - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") - BLOB, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") - CAPABILITY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") - ENTITY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/File") - FILE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") - OPERATION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") - PROPERTY, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") - QUALIFIER, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") - RANGE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") - REFERENCE, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") - REFERENCE_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") - SUBMODEL, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** - */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") + BLOB, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") + CAPABILITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") + ENTITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/File") + FILE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") + OPERATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") + PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") + QUALIFIER, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") + RANGE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") + REFERENCE, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") + REFERENCE_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") + SUBMODEL, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + /** */ + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 7312a6e1b..2fb7a65cc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,25 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration for denoting whether an element is a template or an instance. - */ +/** Enumeration for denoting whether an element is a template or an instance. */ @IRI("aas:ModellingKind") public enum ModellingKind { - /** - * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a - * corresponding element template. - */ - @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Instance") - INSTANCE, - - /** - * Specification of the common features of a structured element in sufficient detail that such a - * instance can be instantiated using it - */ - @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") - TEMPLATE; - + /** + * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a + * corresponding element template. + */ + @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Instance") + INSTANCE, + + /** + * Specification of the common features of a structured element in sufficient detail that such a + * instance can be instantiated using it + */ + @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") + TEMPLATE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 88a0ab462..909eb3097 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,58 +16,50 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A property is a data element that has a multi-language value. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) -}) +/** A property is a data element that has a multi-language value. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class)}) public interface MultiLanguageProperty extends DataElement { - /** - * The value of the property instance. - * - * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value - * - * @return Returns the List of LangStringTextTypes for the property values. - */ - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") - List getValues(); - - /** - * The value of the property instance. - * - * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value - * - * @param values desired value for the property values. - */ - void setValues(List values); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value + * + * @return Returns the List of LangStringTextTypes for the property values. + */ + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") + List getValues(); - /** - * Reference to the global unique ID of a coded value. - * - * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") - Reference getValueId(); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value + * + * @param values desired value for the property values. + */ + void setValues(List values); - /** - * Reference to the global unique ID of a coded value. - * - * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") + Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index 5e36aa7bd..cd872c284 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,77 +16,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An operation is a submodel element with input and output variables. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperation.class) -}) +/** An operation is a submodel element with input and output variables. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperation.class)}) public interface Operation extends SubmodelElement { - /** - * Input parameter of the operation. - * - * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables - * - * @return Returns the List of OperationVariables for the property inputVariables. - */ - @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") - List getInputVariables(); - - /** - * Input parameter of the operation. - * - * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables - * - * @param inputVariables desired value for the property inputVariables. - */ - void setInputVariables(List inputVariables); + /** + * Input parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/2/Operation/inputVariables + * + * @return Returns the List of OperationVariables for the property inputVariables. + */ + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") + List getInputVariables(); - /** - * Output parameter of the operation. - * - * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables - * - * @return Returns the List of OperationVariables for the property outputVariables. - */ - @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") - List getOutputVariables(); + /** + * Input parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/2/Operation/inputVariables + * + * @param inputVariables desired value for the property inputVariables. + */ + void setInputVariables(List inputVariables); - /** - * Output parameter of the operation. - * - * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables - * - * @param outputVariables desired value for the property outputVariables. - */ - void setOutputVariables(List outputVariables); + /** + * Output parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/2/Operation/outputVariables + * + * @return Returns the List of OperationVariables for the property outputVariables. + */ + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") + List getOutputVariables(); - /** - * Parameter that is input and output of the operation. - * - * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables - * - * @return Returns the List of OperationVariables for the property inoutputVariables. - */ - @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") - List getInoutputVariables(); + /** + * Output parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/2/Operation/outputVariables + * + * @param outputVariables desired value for the property outputVariables. + */ + void setOutputVariables(List outputVariables); - /** - * Parameter that is input and output of the operation. - * - * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables - * - * @param inoutputVariables desired value for the property inoutputVariables. - */ - void setInoutputVariables(List inoutputVariables); + /** + * Parameter that is input and output of the operation. + * + *

More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables + * + * @return Returns the List of OperationVariables for the property inoutputVariables. + */ + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") + List getInoutputVariables(); + /** + * Parameter that is input and output of the operation. + * + *

More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables + * + * @param inoutputVariables desired value for the property inoutputVariables. + */ + void setInoutputVariables(List inoutputVariables); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index 5f1634ec8..78b5de4df 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,53 +15,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationHandle.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationHandle.class)}) public interface OperationHandle { - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId - * - * @return Returns the String for the property handleId. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") - String getHandleId(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId - * - * @param handleId desired value for the property handleId. - */ - void setHandleId(String handleId); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId - * - * @return Returns the String for the property requestId. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") - String getRequestId(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId - * - * @param requestId desired value for the property requestId. - */ - void setRequestId(String requestId); - + /** + * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId + * + * @return Returns the String for the property handleId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") + String getHandleId(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId + * + * @param handleId desired value for the property handleId. + */ + void setHandleId(String handleId); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId + * + * @return Returns the String for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") + String getRequestId(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId + * + * @param requestId desired value for the property requestId. + */ + void setRequestId(String requestId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 2399c47c7..5fb63a9be 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,87 +16,72 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.math.BigInteger; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationRequest.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) public interface OperationRequest { - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments - * - * @return Returns the OperationVariable for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") - OperationVariable getInoutputArguments(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(OperationVariable inoutputArguments); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments + * + * @return Returns the OperationVariable for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + OperationVariable getInoutputArguments(); - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments - * - * @return Returns the OperationVariable for the property inputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") - OperationVariable getInputArguments(); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(OperationVariable inoutputArguments); - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments - * - * @param inputArguments desired value for the property inputArguments. - */ - void setInputArguments(OperationVariable inputArguments); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments + * + * @return Returns the OperationVariable for the property inputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") + OperationVariable getInputArguments(); - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId - * - * @return Returns the String for the property requestId. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") - String getRequestId(); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments + * + * @param inputArguments desired value for the property inputArguments. + */ + void setInputArguments(OperationVariable inputArguments); - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId - * - * @param requestId desired value for the property requestId. - */ - void setRequestId(String requestId); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId + * + * @return Returns the String for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") + String getRequestId(); - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout - * - * @return Returns the BigInteger for the property timeout. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") - BigInteger getTimeout(); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId + * + * @param requestId desired value for the property requestId. + */ + void setRequestId(String requestId); - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout - * - * @param timeout desired value for the property timeout. - */ - void setTimeout(BigInteger timeout); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout + * + * @return Returns the BigInteger for the property timeout. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + BigInteger getTimeout(); + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout + * + * @param timeout desired value for the property timeout. + */ + void setTimeout(BigInteger timeout); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index c02eaf901..0c9c2c490 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,104 +16,87 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationResult.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationResult.class)}) public interface OperationResult { - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult - * - * @return Returns the List of Results for the property executionResults. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") - List getExecutionResults(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult - * - * @param executionResults desired value for the property executionResults. - */ - void setExecutionResults(List executionResults); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState - * - * @return Returns the List of ExecutionStates for the property executionStates. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") - List getExecutionStates(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState - * - * @param executionStates desired value for the property executionStates. - */ - void setExecutionStates(List executionStates); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments - * - * @return Returns the List of OperationVariables for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") - List getInoutputArguments(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(List inoutputArguments); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments - * - * @return Returns the List of OperationVariables for the property outputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") - List getOutputArguments(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments - * - * @param outputArguments desired value for the property outputArguments. - */ - void setOutputArguments(List outputArguments); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId - * - * @return Returns the List of Strings for the property requestIds. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") - List getRequestIds(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId - * - * @param requestIds desired value for the property requestIds. - */ - void setRequestIds(List requestIds); - + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @return Returns the List of Results for the property executionResults. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + List getExecutionResults(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @param executionResults desired value for the property executionResults. + */ + void setExecutionResults(List executionResults); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @return Returns the List of ExecutionStates for the property executionStates. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + List getExecutionStates(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @param executionStates desired value for the property executionStates. + */ + void setExecutionStates(List executionStates); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments + * + * @return Returns the List of OperationVariables for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") + List getInoutputArguments(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(List inoutputArguments); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments + * + * @return Returns the List of OperationVariables for the property outputArguments. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") + List getOutputArguments(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments + * + * @param outputArguments desired value for the property outputArguments. + */ + void setOutputArguments(List outputArguments); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @return Returns the List of Strings for the property requestIds. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") + List getRequestIds(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @param requestIds desired value for the property requestIds. + */ + void setRequestIds(List requestIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index c2bdafc5f..3e4331ca2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,40 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationVariable.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationVariable.class)}) public interface OperationVariable { - /** - * Describes an argument or result of an operation via a submodel element - * - * More information under https://admin-shell.io/aas/3/2/OperationVariable/value - * - * @return Returns the SubmodelElement for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") - SubmodelElement getValue(); - - /** - * Describes an argument or result of an operation via a submodel element - * - * More information under https://admin-shell.io/aas/3/2/OperationVariable/value - * - * @param value desired value for the property value. - */ - void setValue(SubmodelElement value); - + /** + * Describes an argument or result of an operation via a submodel element + * + *

More information under https://admin-shell.io/aas/3/2/OperationVariable/value + * + * @return Returns the SubmodelElement for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") + SubmodelElement getValue(); + + /** + * Describes an argument or result of an operation via a submodel element + * + *

More information under https://admin-shell.io/aas/3/2/OperationVariable/value + * + * @param value desired value for the property value. + */ + void setValue(SubmodelElement value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index e554f5a20..8921c4615 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,53 +16,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultPackageDescription.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultPackageDescription.class)}) public interface PackageDescription { - /** - * - * More information under https://admin-shell.io/aas/3/2/PackageDescription/items - * - * @return Returns the List of Strings for the property items. - */ - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") - List getItems(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/PackageDescription/items - * - * @param items desired value for the property items. - */ - void setItems(List items); - - /** - * - * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId - * - * @return Returns the String for the property packageId. - */ - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") - String getPackageId(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId - * - * @param packageId desired value for the property packageId. - */ - void setPackageId(String packageId); - + /** + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items + * + * @return Returns the List of Strings for the property items. + */ + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") + List getItems(); + + /** + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items + * + * @param items desired value for the property items. + */ + void setItems(List items); + + /** + * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId + * + * @return Returns the String for the property packageId. + */ + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") + String getPackageId(); + + /** + * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId + * + * @param packageId desired value for the property packageId. + */ + void setPackageId(String packageId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index a325bc076..cda8f888b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,77 +15,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A property is a data element that has a single value. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProperty.class) -}) +/** A property is a data element that has a single value. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProperty.class)}) public interface Property extends DataElement { - /** - * Data type of the value - * - * More information under https://admin-shell.io/aas/3/2/Property/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Property/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the value - * - * More information under https://admin-shell.io/aas/3/2/Property/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Data type of the value + * + *

More information under https://admin-shell.io/aas/3/2/Property/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") + DataTypeDefXsd getValueType(); - /** - * The value of the property instance. - * - * More information under https://admin-shell.io/aas/3/2/Property/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Property/value") - String getValue(); + /** + * Data type of the value + * + *

More information under https://admin-shell.io/aas/3/2/Property/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * The value of the property instance. - * - * More information under https://admin-shell.io/aas/3/2/Property/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/2/Property/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Property/value") + String getValue(); - /** - * Reference to the global unique ID of a coded value. - * - * More information under https://admin-shell.io/aas/3/2/Property/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/Property/valueId") - Reference getValueId(); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/2/Property/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Reference to the global unique ID of a coded value. - * - * More information under https://admin-shell.io/aas/3/2/Property/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/2/Property/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") + Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/2/Property/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index 10d3bc88a..a111f948c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,138 +16,121 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProtocolInformation.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProtocolInformation.class)}) public interface ProtocolInformation { - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress - * - * @return Returns the String for the property endpointAddress. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") - String getEndpointAddress(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress - * - * @param endpointAddress desired value for the property endpointAddress. - */ - void setEndpointAddress(String endpointAddress); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol - * - * @return Returns the String for the property endpointProtocol. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") - String getEndpointProtocol(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol - * - * @param endpointProtocol desired value for the property endpointProtocol. - */ - void setEndpointProtocol(String endpointProtocol); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion - * - * @return Returns the String for the property endpointProtocolVersion. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") - String getEndpointProtocolVersion(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion - * - * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. - */ - void setEndpointProtocolVersion(String endpointProtocolVersion); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes - * - * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") - List getSecurityAttributes(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes - * - * @param securityAttributes desired value for the property securityAttributes. - */ - void setSecurityAttributes(List securityAttributes); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol - * - * @return Returns the String for the property subprotocol. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") - String getSubprotocol(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol - * - * @param subprotocol desired value for the property subprotocol. - */ - void setSubprotocol(String subprotocol); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody - * - * @return Returns the String for the property subprotocolBody. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") - String getSubprotocolBody(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody - * - * @param subprotocolBody desired value for the property subprotocolBody. - */ - void setSubprotocolBody(String subprotocolBody); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding - * - * @return Returns the String for the property subprotocolBodyEncoding. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") - String getSubprotocolBodyEncoding(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. - */ - void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); - + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress + * + * @return Returns the String for the property endpointAddress. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") + String getEndpointAddress(); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress + * + * @param endpointAddress desired value for the property endpointAddress. + */ + void setEndpointAddress(String endpointAddress); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol + * + * @return Returns the String for the property endpointProtocol. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") + String getEndpointProtocol(); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol + * + * @param endpointProtocol desired value for the property endpointProtocol. + */ + void setEndpointProtocol(String endpointProtocol); + + /** + * More information under + * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion + * + * @return Returns the String for the property endpointProtocolVersion. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") + String getEndpointProtocolVersion(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion + * + * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. + */ + void setEndpointProtocolVersion(String endpointProtocolVersion); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes + * + * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") + List getSecurityAttributes(); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes + * + * @param securityAttributes desired value for the property securityAttributes. + */ + void setSecurityAttributes(List securityAttributes); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol + * + * @return Returns the String for the property subprotocol. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") + String getSubprotocol(); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol + * + * @param subprotocol desired value for the property subprotocol. + */ + void setSubprotocol(String subprotocol); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody + * + * @return Returns the String for the property subprotocolBody. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") + String getSubprotocolBody(); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody + * + * @param subprotocolBody desired value for the property subprotocolBody. + */ + void setSubprotocolBody(String subprotocolBody); + + /** + * More information under + * https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding + * + * @return Returns the String for the property subprotocolBodyEncoding. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") + String getSubprotocolBodyEncoding(); + + /** + * More information under + * https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. + */ + void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index bc5cf933f..00b13c6b6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,41 +16,35 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * The value of a qualifiable element may be further qualified by one or more qualifiers. - */ +/** The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface Qualifiable { - /** - * Additional qualification of a qualifiable element. - * - * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers - * - * @return Returns the List of Qualifiers for the property qualifiers. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - List getQualifiers(); - - /** - * Additional qualification of a qualifiable element. - * - * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers - * - * @param qualifiers desired value for the property qualifiers. - */ - void setQualifiers(List qualifiers); - + /** + * Additional qualification of a qualifiable element. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers + * + * @return Returns the List of Qualifiers for the property qualifiers. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + List getQualifiers(); + + /** + * Additional qualification of a qualifiable element. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers + * + * @param qualifiers desired value for the property qualifiers. + */ + void setQualifiers(List qualifiers); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index 376b51ed3..a14d44dab 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,116 +15,110 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultQualifier.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultQualifier.class)}) public interface Qualifier extends HasSemantics { - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/kind - * - * @return Returns the QualifierKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") - QualifierKind getKind(); - - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/kind - * - * @param kind desired value for the property kind. - */ - void setKind(QualifierKind kind); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/type - * - * @return Returns the String for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") - String getType(); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/type - * - * @param type desired value for the property type. - */ - void setType(String type); - - /** - * Data type of the qualifier value. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the qualifier value. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); - - /** - * The qualifier value is the value of the qualifier. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") - String getValue(); - - /** - * The qualifier value is the value of the qualifier. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Reference to the global unique ID of a coded value. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") - Reference getValueId(); - - /** - * Reference to the global unique ID of a coded value. - * - * More information under https://admin-shell.io/aas/3/2/Qualifier/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); - + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/kind + * + * @return Returns the QualifierKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") + QualifierKind getKind(); + + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/kind + * + * @param kind desired value for the property kind. + */ + void setKind(QualifierKind kind); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/type + * + * @return Returns the String for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") + String getType(); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/type + * + * @param type desired value for the property type. + */ + void setType(String type); + + /** + * Data type of the qualifier value. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the qualifier value. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); + + /** + * The qualifier value is the value of the qualifier. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") + String getValue(); + + /** + * The qualifier value is the value of the qualifier. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") + Reference getValueId(); + + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index bccc1745b..81cc9a551 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,35 +15,23 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Enumeration for kinds of qualifiers. - */ +/** Enumeration for kinds of qualifiers. */ @IRI("aas:QualifierKind") public enum QualifierKind { - /** - * qualifies the semantic definition the element is referring to ('semanticId') - */ - @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ConceptQualifier") - CONCEPT_QUALIFIER, - - /** - * qualifies the elements within a specific submodel on concept level. - */ - @IRI("https://admin-shell.io/aas/3/2/QualifierKind/TemplateQualifier") - TEMPLATE_QUALIFIER, + /** qualifies the semantic definition the element is referring to ('semanticId') */ + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ConceptQualifier") + CONCEPT_QUALIFIER, - /** - * qualifies the value of the element and can change during run-time. - */ - @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") - VALUE_QUALIFIER; + /** qualifies the elements within a specific submodel on concept level. */ + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/TemplateQualifier") + TEMPLATE_QUALIFIER, + /** qualifies the value of the element and can change during run-time. */ + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") + VALUE_QUALIFIER; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index abeba8f60..27dc5c88e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,77 +15,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A range data element is a data element that defines a range with min and max. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRange.class) -}) +/** A range data element is a data element that defines a range with min and max. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultRange.class)}) public interface Range extends DataElement { - /** - * Data type of the min und max - * - * More information under https://admin-shell.io/aas/3/2/Range/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Range/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the min und max - * - * More information under https://admin-shell.io/aas/3/2/Range/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Data type of the min und max + * + *

More information under https://admin-shell.io/aas/3/2/Range/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") + DataTypeDefXsd getValueType(); - /** - * The minimum value of the range. - * - * More information under https://admin-shell.io/aas/3/2/Range/min - * - * @return Returns the String for the property min. - */ - @IRI("https://admin-shell.io/aas/3/2/Range/min") - String getMin(); + /** + * Data type of the min und max + * + *

More information under https://admin-shell.io/aas/3/2/Range/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * The minimum value of the range. - * - * More information under https://admin-shell.io/aas/3/2/Range/min - * - * @param min desired value for the property min. - */ - void setMin(String min); + /** + * The minimum value of the range. + * + *

More information under https://admin-shell.io/aas/3/2/Range/min + * + * @return Returns the String for the property min. + */ + @IRI("https://admin-shell.io/aas/3/2/Range/min") + String getMin(); - /** - * The maximum value of the range. - * - * More information under https://admin-shell.io/aas/3/2/Range/max - * - * @return Returns the String for the property max. - */ - @IRI("https://admin-shell.io/aas/3/2/Range/max") - String getMax(); + /** + * The minimum value of the range. + * + *

More information under https://admin-shell.io/aas/3/2/Range/min + * + * @param min desired value for the property min. + */ + void setMin(String min); - /** - * The maximum value of the range. - * - * More information under https://admin-shell.io/aas/3/2/Range/max - * - * @param max desired value for the property max. - */ - void setMax(String max); + /** + * The maximum value of the range. + * + *

More information under https://admin-shell.io/aas/3/2/Range/max + * + * @return Returns the String for the property max. + */ + @IRI("https://admin-shell.io/aas/3/2/Range/max") + String getMax(); + /** + * The maximum value of the range. + * + *

More information under https://admin-shell.io/aas/3/2/Range/max + * + * @param max desired value for the property max. + */ + void setMax(String max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index 7c2103ccc..04c7cf02e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,102 +16,96 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * An element that is referable by its 'idShort'. - */ +/** An element that is referable by its 'idShort'. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Identifiable.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - * - * More information under https://admin-shell.io/aas/3/2/Referable/category - * - * @return Returns the String for the property category. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - String getCategory(); - - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - * - * More information under https://admin-shell.io/aas/3/2/Referable/category - * - * @param category desired value for the property category. - */ - void setCategory(String category); + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/category + * + * @return Returns the String for the property category. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + String getCategory(); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable this - * ID is an identifying string of the element within its name space. - * - * More information under https://admin-shell.io/aas/3/2/Referable/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - String getIdShort(); + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/category + * + * @param category desired value for the property category. + */ + void setCategory(String category); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable this - * ID is an identifying string of the element within its name space. - * - * More information under https://admin-shell.io/aas/3/2/Referable/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable + * this ID is an identifying string of the element within its name space. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + String getIdShort(); - /** - * Display name. Can be provided in several languages. - * - * More information under https://admin-shell.io/aas/3/2/Referable/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayNames. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - List getDisplayNames(); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable + * this ID is an identifying string of the element within its name space. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); - /** - * Display name. Can be provided in several languages. - * - * More information under https://admin-shell.io/aas/3/2/Referable/displayName - * - * @param displayNames desired value for the property displayNames. - */ - void setDisplayNames(List displayNames); + /** + * Display name. Can be provided in several languages. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/displayName + * + * @return Returns the List of LangStringNameTypes for the property displayNames. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + List getDisplayNames(); - /** - * Description or comments on the element. - * - * More information under https://admin-shell.io/aas/3/2/Referable/description - * - * @return Returns the List of LangStringTextTypes for the property descriptions. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - List getDescriptions(); + /** + * Display name. Can be provided in several languages. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/displayName + * + * @param displayNames desired value for the property displayNames. + */ + void setDisplayNames(List displayNames); - /** - * Description or comments on the element. - * - * More information under https://admin-shell.io/aas/3/2/Referable/description - * - * @param descriptions desired value for the property descriptions. - */ - void setDescriptions(List descriptions); + /** + * Description or comments on the element. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/description + * + * @return Returns the List of LangStringTextTypes for the property descriptions. + */ + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + List getDescriptions(); + /** + * Description or comments on the element. + * + *

More information under https://admin-shell.io/aas/3/2/Referable/description + * + * @param descriptions desired value for the property descriptions. + */ + void setDescriptions(List descriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index c22399452..a791107d6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,77 +16,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Reference to either a model element of the same or another AAS or to an external entity. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReference.class) -}) +/** Reference to either a model element of the same or another AAS or to an external entity. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReference.class)}) public interface Reference { - /** - * Type of the reference. - * - * More information under https://admin-shell.io/aas/3/2/Reference/type - * - * @return Returns the ReferenceTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/Reference/type") - ReferenceTypes getType(); - - /** - * Type of the reference. - * - * More information under https://admin-shell.io/aas/3/2/Reference/type - * - * @param type desired value for the property type. - */ - void setType(ReferenceTypes type); + /** + * Type of the reference. + * + *

More information under https://admin-shell.io/aas/3/2/Reference/type + * + * @return Returns the ReferenceTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/Reference/type") + ReferenceTypes getType(); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * - * More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId - * - * @return Returns the Reference for the property referredSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") - Reference getReferredSemanticId(); + /** + * Type of the reference. + * + *

More information under https://admin-shell.io/aas/3/2/Reference/type + * + * @param type desired value for the property type. + */ + void setType(ReferenceTypes type); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * - * More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId - * - * @param referredSemanticId desired value for the property referredSemanticId. - */ - void setReferredSemanticId(Reference referredSemanticId); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + *

More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId + * + * @return Returns the Reference for the property referredSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") + Reference getReferredSemanticId(); - /** - * Unique references in their name space. - * - * More information under https://admin-shell.io/aas/3/2/Reference/keys - * - * @return Returns the List of Keys for the property keys. - */ - @IRI("https://admin-shell.io/aas/3/2/Reference/keys") - List getKeys(); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + *

More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId + * + * @param referredSemanticId desired value for the property referredSemanticId. + */ + void setReferredSemanticId(Reference referredSemanticId); - /** - * Unique references in their name space. - * - * More information under https://admin-shell.io/aas/3/2/Reference/keys - * - * @param keys desired value for the property keys. - */ - void setKeys(List keys); + /** + * Unique references in their name space. + * + *

More information under https://admin-shell.io/aas/3/2/Reference/keys + * + * @return Returns the List of Keys for the property keys. + */ + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") + List getKeys(); + /** + * Unique references in their name space. + * + *

More information under https://admin-shell.io/aas/3/2/Reference/keys + * + * @param keys desired value for the property keys. + */ + void setKeys(List keys); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index 8d9cccd77..f9e45f978 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,42 +15,36 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A reference element is a data element that defines a logical reference to another element within * the same or another AAS or a reference to an external object or entity. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReferenceElement.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReferenceElement.class)}) public interface ReferenceElement extends DataElement { - /** - * Global reference to an external object or entity or a logical reference to another element within - * the same or another AAS (i.e. a model reference to a Referable). - * - * More information under https://admin-shell.io/aas/3/2/ReferenceElement/value - * - * @return Returns the Reference for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") - Reference getValue(); - - /** - * Global reference to an external object or entity or a logical reference to another element within - * the same or another AAS (i.e. a model reference to a Referable). - * - * More information under https://admin-shell.io/aas/3/2/ReferenceElement/value - * - * @param value desired value for the property value. - */ - void setValue(Reference value); - + /** + * Global reference to an external object or entity or a logical reference to another element + * within the same or another AAS (i.e. a model reference to a Referable). + * + *

More information under https://admin-shell.io/aas/3/2/ReferenceElement/value + * + * @return Returns the Reference for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") + Reference getValue(); + + /** + * Global reference to an external object or entity or a logical reference to another element + * within the same or another AAS (i.e. a model reference to a Referable). + * + *

More information under https://admin-shell.io/aas/3/2/ReferenceElement/value + * + * @param value desired value for the property value. + */ + void setValue(Reference value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index 9983b94fc..52a003433 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * Reference types - */ +/** Reference types */ @IRI("aas:ReferenceTypes") public enum ReferenceTypes { - /** - * External reference. - */ - @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ExternalReference") - EXTERNAL_REFERENCE, - - /** - * Model reference. - */ - @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") - MODEL_REFERENCE; + /** External reference. */ + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ExternalReference") + EXTERNAL_REFERENCE, + /** Model reference. */ + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") + MODEL_REFERENCE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 8398fb728..3aaebe24e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,60 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { - /** - * Reference to the first element in the relationship taking the role of the subject. - * - * More information under https://admin-shell.io/aas/3/2/RelationshipElement/first - * - * @return Returns the Reference for the property first. - */ - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") - Reference getFirst(); - - /** - * Reference to the first element in the relationship taking the role of the subject. - * - * More information under https://admin-shell.io/aas/3/2/RelationshipElement/first - * - * @param first desired value for the property first. - */ - void setFirst(Reference first); + /** + * Reference to the first element in the relationship taking the role of the subject. + * + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/first + * + * @return Returns the Reference for the property first. + */ + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") + Reference getFirst(); - /** - * Reference to the second element in the relationship taking the role of the object. - * - * More information under https://admin-shell.io/aas/3/2/RelationshipElement/second - * - * @return Returns the Reference for the property second. - */ - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") - Reference getSecond(); + /** + * Reference to the first element in the relationship taking the role of the subject. + * + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/first + * + * @param first desired value for the property first. + */ + void setFirst(Reference first); - /** - * Reference to the second element in the relationship taking the role of the object. - * - * More information under https://admin-shell.io/aas/3/2/RelationshipElement/second - * - * @param second desired value for the property second. - */ - void setSecond(Reference second); + /** + * Reference to the second element in the relationship taking the role of the object. + * + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/second + * + * @return Returns the Reference for the property second. + */ + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") + Reference getSecond(); + /** + * Reference to the second element in the relationship taking the role of the object. + * + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/second + * + * @param second desired value for the property second. + */ + void setSecond(Reference second); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 489d4be76..98f8acaaf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,59 +15,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * Resource represents an address to a file (a locator). The value is an URI that can represent an * absolute or relative path */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResource.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResource.class)}) public interface Resource { - /** - * Path and name of the resource (with file extension). - * - * More information under https://admin-shell.io/aas/3/2/Resource/path - * - * @return Returns the String for the property path. - */ - @IRI("https://admin-shell.io/aas/3/2/Resource/path") - String getPath(); - - /** - * Path and name of the resource (with file extension). - * - * More information under https://admin-shell.io/aas/3/2/Resource/path - * - * @param path desired value for the property path. - */ - void setPath(String path); + /** + * Path and name of the resource (with file extension). + * + *

More information under https://admin-shell.io/aas/3/2/Resource/path + * + * @return Returns the String for the property path. + */ + @IRI("https://admin-shell.io/aas/3/2/Resource/path") + String getPath(); - /** - * Content type of the content of the file. - * - * More information under https://admin-shell.io/aas/3/2/Resource/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") - String getContentType(); + /** + * Path and name of the resource (with file extension). + * + *

More information under https://admin-shell.io/aas/3/2/Resource/path + * + * @param path desired value for the property path. + */ + void setPath(String path); - /** - * Content type of the content of the file. - * - * More information under https://admin-shell.io/aas/3/2/Resource/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/2/Resource/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") + String getContentType(); + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/2/Resource/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index f9536ba6d..40d6d30d9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,53 +16,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResult.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResult.class)}) public interface Result { - /** - * - * More information under https://admin-shell.io/aas/3/2/Result/messages - * - * @return Returns the List of Messages for the property messages. - */ - @IRI("https://admin-shell.io/aas/3/2/Result/messages") - List getMessages(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Result/messages - * - * @param messages desired value for the property messages. - */ - void setMessages(List messages); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Result/success - * - * @return Returns the boolean for the property success. - */ - @IRI("https://admin-shell.io/aas/3/2/Result/success") - boolean getSuccess(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/Result/success - * - * @param success desired value for the property success. - */ - void setSuccess(boolean success); - + /** + * More information under https://admin-shell.io/aas/3/2/Result/messages + * + * @return Returns the List of Messages for the property messages. + */ + @IRI("https://admin-shell.io/aas/3/2/Result/messages") + List getMessages(); + + /** + * More information under https://admin-shell.io/aas/3/2/Result/messages + * + * @param messages desired value for the property messages. + */ + void setMessages(List messages); + + /** + * More information under https://admin-shell.io/aas/3/2/Result/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/2/Result/success") + boolean getSuccess(); + + /** + * More information under https://admin-shell.io/aas/3/2/Result/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java index 199d30145..28d92e9ec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,70 +15,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class)}) public interface SecurityAttributeObject { - /** - * - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key - * - * @return Returns the String for the property key. - */ - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") - String getKey(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key - * - * @param key desired value for the property key. - */ - void setKey(String key); + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key + * + * @return Returns the String for the property key. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") + String getKey(); - /** - * - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") - String getValue(); + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key + * + * @param key desired value for the property key. + */ + void setKey(String key); - /** - * - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") + String getValue(); - /** - * - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type - * - * @return Returns the SecurityTypeEnum for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") - SecurityTypeEnum getType(); + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type - * - * @param type desired value for the property type. - */ - void setType(SecurityTypeEnum type); + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type + * + * @return Returns the SecurityTypeEnum for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") + SecurityTypeEnum getType(); + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type + * + * @param type desired value for the property type. + */ + void setType(SecurityTypeEnum type); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java index b52310374..90abf6034 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSecurityTypeEnum.class) -}) -public interface SecurityTypeEnum { - -} +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityTypeEnum.class)}) +public interface SecurityTypeEnum {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index 458706d0f..b6ad6a35d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,77 +15,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A specific asset ID describes a generic supplementary identifying attribute of the asset. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) -}) +/** A specific asset ID describes a generic supplementary identifying attribute of the asset. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSpecificAssetId.class)}) public interface SpecificAssetId extends HasSemantics { - /** - * Name of the identifier - * - * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") - String getName(); - - /** - * Name of the identifier - * - * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * Name of the identifier + * + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") + String getName(); - /** - * The value of the specific asset identifier with the corresponding name. - * - * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") - String getValue(); + /** + * Name of the identifier + * + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * The value of the specific asset identifier with the corresponding name. - * - * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The value of the specific asset identifier with the corresponding name. + * + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") + String getValue(); - /** - * The (external) subject the key belongs to or has meaning to. - * - * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId - * - * @return Returns the Reference for the property externalSubjectId. - */ - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") - Reference getExternalSubjectId(); + /** + * The value of the specific asset identifier with the corresponding name. + * + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The (external) subject the key belongs to or has meaning to. - * - * More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId - * - * @param externalSubjectId desired value for the property externalSubjectId. - */ - void setExternalSubjectId(Reference externalSubjectId); + /** + * The (external) subject the key belongs to or has meaning to. + * + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId + * + * @return Returns the Reference for the property externalSubjectId. + */ + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") + Reference getExternalSubjectId(); + /** + * The (external) subject the key belongs to or has meaning to. + * + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId + * + * @param externalSubjectId desired value for the property externalSubjectId. + */ + void setExternalSubjectId(Reference externalSubjectId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index 0376be54b..0877dcee3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +15,19 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * State of an event - */ +/** State of an event */ @IRI("aas:StateOfEvent") public enum StateOfEvent { - /** - * Event is off. - */ - @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/Off") - OFF, - - /** - * Event is on - */ - @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") - ON; + /** Event is off. */ + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/Off") + OFF, + /** Event is on */ + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") + ON; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index a9baad464..9540448bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,39 +16,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A submodel defines a specific aspect of the asset represented by the AAS. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodel.class) -}) -public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { - - /** - * A submodel consists of zero or more submodel elements. - * - * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements - * - * @return Returns the List of SubmodelElements for the property submodelElements. - */ - @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") - List getSubmodelElements(); - - /** - * A submodel consists of zero or more submodel elements. - * - * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements - * - * @param submodelElements desired value for the property submodelElements. - */ - void setSubmodelElements(List submodelElements); - +/** A submodel defines a specific aspect of the asset represented by the AAS. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodel.class)}) +public interface Submodel + extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { + + /** + * A submodel consists of zero or more submodel elements. + * + *

More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements + * + * @return Returns the List of SubmodelElements for the property submodelElements. + */ + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") + List getSubmodelElements(); + + /** + * A submodel consists of zero or more submodel elements. + * + *

More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements + * + * @param submodelElements desired value for the property submodelElements. + */ + void setSubmodelElements(List submodelElements); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index d46ad5aed..c6a3ea9ed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,121 +15,102 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class)}) public interface SubmodelDescriptor extends Descriptor { - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description - * - * @return Returns the LangStringTextType for the property description. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") - LangStringTextType getDescription(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description - * - * @param description desired value for the property description. - */ - void setDescription(LangStringTextType description); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName - * - * @return Returns the LangStringNameType for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") - LangStringNameType getDisplayName(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName - * - * @param displayName desired value for the property displayName. - */ - void setDisplayName(LangStringNameType displayName); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") - String getIdShort(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification - * - * @return Returns the String for the property identification. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") - String getIdentification(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification - * - * @param identification desired value for the property identification. - */ - void setIdentification(String identification); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") - Reference getSemanticId(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); - + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description + * + * @return Returns the LangStringTextType for the property description. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") + LangStringTextType getDescription(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description + * + * @param description desired value for the property description. + */ + void setDescription(LangStringTextType description); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName + * + * @return Returns the LangStringNameType for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") + LangStringNameType getDisplayName(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName + * + * @param displayName desired value for the property displayName. + */ + void setDisplayName(LangStringNameType displayName); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") + String getIdShort(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification + * + * @return Returns the String for the property identification. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") + String getIdentification(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification + * + * @param identification desired value for the property identification. + */ + void setIdentification(String identification); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + Reference getSemanticId(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index cbf647736..af5d2a612 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,26 +15,20 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A submodel element is an element suitable for the description and differentiation of assets. - */ +/** A submodel element is an element suitable for the description and differentiation of assets. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) -public interface SubmodelElement extends Referable, HasDataSpecification, HasSemantics, Qualifiable { - -} +public interface SubmodelElement + extends Referable, HasDataSpecification, HasSemantics, Qualifiable {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index e104b053c..1105a18a0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,36 +15,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** -*/ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) -}) -public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") - ModellingKind getKind(); - - /** - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); - +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class)}) +public interface SubmodelElementAttributes + extends Referable, HasDataSpecification, HasSemantics, Qualifiable { + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") + ModellingKind getKind(); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index 61f3843b1..a2f221fe5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,40 +16,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class)}) public interface SubmodelElementCollection extends SubmodelElement { - /** - * Submodel element contained in the collection. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value - * - * @return Returns the List of SubmodelElements for the property values. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") - List getValues(); - - /** - * Submodel element contained in the collection. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value - * - * @param values desired value for the property values. - */ - void setValues(List values); - + /** + * Submodel element contained in the collection. + * + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value + * + * @return Returns the List of SubmodelElements for the property values. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") + List getValues(); + + /** + * Submodel element contained in the collection. + * + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value + * + * @param values desired value for the property values. + */ + void setValues(List values); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index c885cb683..3e3eead9d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,117 +16,115 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A submodel element list is an ordered list of submodel elements. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) -}) +/** A submodel element list is an ordered list of submodel elements. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementList.class)}) public interface SubmodelElementList extends SubmodelElement { - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant - * - * @return Returns the boolean for the property orderRelevant. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") - boolean getOrderRelevant(); - - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant - * - * @param orderRelevant desired value for the property orderRelevant. - */ - void setOrderRelevant(boolean orderRelevant); - - /** - * Semantic ID the submodel elements contained in the list match to. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement - * - * @return Returns the Reference for the property semanticIdListElement. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") - Reference getSemanticIdListElement(); - - /** - * Semantic ID the submodel elements contained in the list match to. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement - * - * @param semanticIdListElement desired value for the property semanticIdListElement. - */ - void setSemanticIdListElement(Reference semanticIdListElement); - - /** - * The submodel element type of the submodel elements contained in the list. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement - * - * @return Returns the AasSubmodelElements for the property typeValueListElement. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") - AasSubmodelElements getTypeValueListElement(); - - /** - * The submodel element type of the submodel elements contained in the list. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement - * - * @param typeValueListElement desired value for the property typeValueListElement. - */ - void setTypeValueListElement(AasSubmodelElements typeValueListElement); - - /** - * The value type of the submodel element contained in the list. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement - * - * @return Returns the DataTypeDefXsd for the property valueTypeListElement. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") - DataTypeDefXsd getValueTypeListElement(); - - /** - * The value type of the submodel element contained in the list. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement - * - * @param valueTypeListElement desired value for the property valueTypeListElement. - */ - void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); - - /** - * Submodel element contained in the list. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value - * - * @return Returns the List of SubmodelElements for the property values. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") - List getValues(); - - /** - * Submodel element contained in the list. - * - * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value - * - * @param values desired value for the property values. - */ - void setValues(List values); - + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant + * + * @return Returns the boolean for the property orderRelevant. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") + boolean getOrderRelevant(); + + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant + * + * @param orderRelevant desired value for the property orderRelevant. + */ + void setOrderRelevant(boolean orderRelevant); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + *

More information under + * https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement + * + * @return Returns the Reference for the property semanticIdListElement. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") + Reference getSemanticIdListElement(); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + *

More information under + * https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement + * + * @param semanticIdListElement desired value for the property semanticIdListElement. + */ + void setSemanticIdListElement(Reference semanticIdListElement); + + /** + * The submodel element type of the submodel elements contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement + * + * @return Returns the AasSubmodelElements for the property typeValueListElement. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") + AasSubmodelElements getTypeValueListElement(); + + /** + * The submodel element type of the submodel elements contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement + * + * @param typeValueListElement desired value for the property typeValueListElement. + */ + void setTypeValueListElement(AasSubmodelElements typeValueListElement); + + /** + * The value type of the submodel element contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement + * + * @return Returns the DataTypeDefXsd for the property valueTypeListElement. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") + DataTypeDefXsd getValueTypeListElement(); + + /** + * The value type of the submodel element contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement + * + * @param valueTypeListElement desired value for the property valueTypeListElement. + */ + void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); + + /** + * Submodel element contained in the list. + * + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value + * + * @return Returns the List of SubmodelElements for the property values. + */ + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") + List getValues(); + + /** + * Submodel element contained in the list. + * + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value + * + * @param values desired value for the property values. + */ + void setValues(List values); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 36644fc0e..6a76b732c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,39 +16,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -/** - * A set of value reference pairs. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueList.class) -}) +/** A set of value reference pairs. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueList.class)}) public interface ValueList { - /** - * A pair of a value together with its global unique id. - * - * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs - * - * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. - */ - @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") - List getValueReferencePairs(); - - /** - * A pair of a value together with its global unique id. - * - * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs - * - * @param valueReferencePairs desired value for the property valueReferencePairs. - */ - void setValueReferencePairs(List valueReferencePairs); - + /** + * A pair of a value together with its global unique id. + * + *

More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs + * + * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. + */ + @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") + List getValueReferencePairs(); + + /** + * A pair of a value together with its global unique id. + * + *

More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs + * + * @param valueReferencePairs desired value for the property valueReferencePairs. + */ + void setValueReferencePairs(List valueReferencePairs); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index 5f1617d7e..6c7cb64e1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,59 +15,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - /** * A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueReferencePair.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueReferencePair.class)}) public interface ValueReferencePair { - /** - * The value of the referenced concept definition of the value in 'valueId'. - * - * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") - String getValue(); - - /** - * The value of the referenced concept definition of the value in 'valueId'. - * - * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") + String getValue(); - /** - * Global unique id of the value. - * - * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") - Reference getValueId(); + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Global unique id of the value. - * - * More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * Global unique id of the value. + * + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") + Reference getValueId(); + /** + * Global unique id of the value. + * + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 75948c97e..6a677f067 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,12 +21,12 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface IRI { - /** - * This annotation stores the IRI under which a certain element of a model is defined. Expected - * behaviour when de-referencing the value of this annotation is a definition and further - * information about this element. - * - * @return IRI defining an element - */ - public String[] value() default {}; + /** + * This annotation stores the IRI under which a certain element of a model is defined. Expected + * behaviour when de-referencing the value of this annotation is a definition and further + * information about this element. + * + * @return IRI defining an element + */ + public String[] value() default {}; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index 79431971e..be6835d2e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,19 +21,18 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface KnownSubtypes { - /** - * This element stores the known sub-types, e.g. implementing classes of an interface, or extending - * classes of a class. Note that this list can never be expected to be complete, as custom - * implementations will not be included. - * - * @return List of known implementing subtypes - */ - public KnownSubtypes.Type[] value(); + /** + * This element stores the known sub-types, e.g. implementing classes of an interface, or + * extending classes of a class. Note that this list can never be expected to be complete, as + * custom implementations will not be included. + * + * @return List of known implementing subtypes + */ + public KnownSubtypes.Type[] value(); - public @interface Type { - Class value(); - - String name() default ""; - } + public @interface Type { + Class value(); + String name() default ""; + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index 57413d4c0..8d821c7a5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -17,21 +17,20 @@ public abstract class AbstractBuilder implements Builder { - private final T buildingInstance; + private final T buildingInstance; - protected AbstractBuilder() { - buildingInstance = newBuildingInstance(); - } + protected AbstractBuilder() { + buildingInstance = newBuildingInstance(); + } - protected abstract T newBuildingInstance(); + protected abstract T newBuildingInstance(); - protected T getBuildingInstance() { - return buildingInstance; - } - - @Override - public T build() { - return buildingInstance; - } + protected T getBuildingInstance() { + return buildingInstance; + } + @Override + public T build() { + return buildingInstance; + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index e868b9378..35952c801 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,101 +16,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - import javax.xml.datatype.XMLGregorianCalendar; - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class AdministrativeInformationBuilder> +public abstract class AdministrativeInformationBuilder< + T extends AdministrativeInformation, B extends AdministrativeInformationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for createdAt - * - * @param createdAt desired value to be set - * @return Builder object with new value for createdAt - */ - public B createdAt(XMLGregorianCalendar createdAt) { - getBuildingInstance().setCreatedAt(createdAt); - return getSelf(); - } + /** + * This function allows setting a value for createdAt + * + * @param createdAt desired value to be set + * @return Builder object with new value for createdAt + */ + public B createdAt(XMLGregorianCalendar createdAt) { + getBuildingInstance().setCreatedAt(createdAt); + return getSelf(); + } - /** - * This function allows setting a value for version - * - * @param version desired value to be set - * @return Builder object with new value for version - */ - public B version(String version) { - getBuildingInstance().setVersion(version); - return getSelf(); - } + /** + * This function allows setting a value for version + * + * @param version desired value to be set + * @return Builder object with new value for version + */ + public B version(String version) { + getBuildingInstance().setVersion(version); + return getSelf(); + } - /** - * This function allows setting a value for revision - * - * @param revision desired value to be set - * @return Builder object with new value for revision - */ - public B revision(String revision) { - getBuildingInstance().setRevision(revision); - return getSelf(); - } + /** + * This function allows setting a value for revision + * + * @param revision desired value to be set + * @return Builder object with new value for revision + */ + public B revision(String revision) { + getBuildingInstance().setRevision(revision); + return getSelf(); + } - /** - * This function allows setting a value for creator - * - * @param creator desired value to be set - * @return Builder object with new value for creator - */ - public B creator(Reference creator) { - getBuildingInstance().setCreator(creator); - return getSelf(); - } + /** + * This function allows setting a value for creator + * + * @param creator desired value to be set + * @return Builder object with new value for creator + */ + public B creator(Reference creator) { + getBuildingInstance().setCreator(creator); + return getSelf(); + } - /** - * This function allows setting a value for templateId - * - * @param templateId desired value to be set - * @return Builder object with new value for templateId - */ - public B templateId(String templateId) { - getBuildingInstance().setTemplateId(templateId); - return getSelf(); - } + /** + * This function allows setting a value for templateId + * + * @param templateId desired value to be set + * @return Builder object with new value for templateId + */ + public B templateId(String templateId) { + getBuildingInstance().setTemplateId(templateId); + return getSelf(); + } - /** - * This function allows setting a value for updatedAt - * - * @param updatedAt desired value to be set - * @return Builder object with new value for updatedAt - */ - public B updatedAt(XMLGregorianCalendar updatedAt) { - getBuildingInstance().setUpdatedAt(updatedAt); - return getSelf(); - } + /** + * This function allows setting a value for updatedAt + * + * @param updatedAt desired value to be set + * @return Builder object with new value for updatedAt + */ + public B updatedAt(XMLGregorianCalendar updatedAt) { + getBuildingInstance().setUpdatedAt(updatedAt); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index b1494f581..a4e3ec131 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,221 +16,219 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class AnnotatedRelationshipElementBuilder> +public abstract class AnnotatedRelationshipElementBuilder< + T extends AnnotatedRelationshipElement, B extends AnnotatedRelationshipElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for annotations - * - * @param annotations desired value to be set - * @return Builder object with new value for annotations - */ - public B annotations(List annotations) { - getBuildingInstance().setAnnotations(annotations); - return getSelf(); - } - - /** - * This function allows adding a value to the List annotations - * - * @param annotations desired value to be added - * @return Builder object with new value for annotations - */ - public B annotations(DataElement annotations) { - getBuildingInstance().getAnnotations().add(annotations); - return getSelf(); - } - - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for annotations + * + * @param annotations desired value to be set + * @return Builder object with new value for annotations + */ + public B annotations(List annotations) { + getBuildingInstance().setAnnotations(annotations); + return getSelf(); + } + + /** + * This function allows adding a value to the List annotations + * + * @param annotations desired value to be added + * @return Builder object with new value for annotations + */ + public B annotations(DataElement annotations) { + getBuildingInstance().getAnnotations().add(annotations); + return getSelf(); + } + + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index a4c843713..ba12a7fe3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,188 +16,186 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class AssetAdministrationShellBuilder> +public abstract class AssetAdministrationShellBuilder< + T extends AssetAdministrationShell, B extends AssetAdministrationShellBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for derivedFrom - * - * @param derivedFrom desired value to be set - * @return Builder object with new value for derivedFrom - */ - public B derivedFrom(Reference derivedFrom) { - getBuildingInstance().setDerivedFrom(derivedFrom); - return getSelf(); - } - - /** - * This function allows setting a value for assetInformation - * - * @param assetInformation desired value to be set - * @return Builder object with new value for assetInformation - */ - public B assetInformation(AssetInformation assetInformation) { - getBuildingInstance().setAssetInformation(assetInformation); - return getSelf(); - } - - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Reference submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for derivedFrom + * + * @param derivedFrom desired value to be set + * @return Builder object with new value for derivedFrom + */ + public B derivedFrom(Reference derivedFrom) { + getBuildingInstance().setDerivedFrom(derivedFrom); + return getSelf(); + } + + /** + * This function allows setting a value for assetInformation + * + * @param assetInformation desired value to be set + * @return Builder object with new value for assetInformation + */ + public B assetInformation(AssetInformation assetInformation) { + getBuildingInstance().setAssetInformation(assetInformation); + return getSelf(); + } + + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Reference submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index 2afb4eca5..de5a3ec40 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,133 +16,132 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class AssetAdministrationShellDescriptorBuilder> +public abstract class AssetAdministrationShellDescriptorBuilder< + T extends AssetAdministrationShellDescriptor, + B extends AssetAdministrationShellDescriptorBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(Reference globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for identification - * - * @param identification desired value to be set - * @return Builder object with new value for identification - */ - public B identification(String identification) { - getBuildingInstance().setIdentification(identification); - return getSelf(); - } - - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } - - /** - * This function allows setting a value for submodelDescriptors - * - * @param submodelDescriptors desired value to be set - * @return Builder object with new value for submodelDescriptors - */ - public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { - getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param description desired value to be set + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().setDescription(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayName desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().setDisplayName(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(Reference globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for identification + * + * @param identification desired value to be set + * @return Builder object with new value for identification + */ + public B identification(String identification) { + getBuildingInstance().setIdentification(identification); + return getSelf(); + } + + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } + + /** + * This function allows setting a value for submodelDescriptors + * + * @param submodelDescriptors desired value to be set + * @return Builder object with new value for submodelDescriptors + */ + public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { + getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java index 25fd67822..7d22a5ef2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,78 +16,77 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class AssetAdministrationShellEnvironmentBuilder> +public abstract class AssetAdministrationShellEnvironmentBuilder< + T extends AssetAdministrationShellEnvironment, + B extends AssetAdministrationShellEnvironmentBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for assetAdministrationShells - * - * @param assetAdministrationShells desired value to be set - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(List assetAdministrationShells) { - getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows setting a value for assetAdministrationShells + * + * @param assetAdministrationShells desired value to be set + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(List assetAdministrationShells) { + getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows adding a value to the List assetAdministrationShells - * - * @param assetAdministrationShells desired value to be added - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows adding a value to the List assetAdministrationShells + * + * @param assetAdministrationShells desired value to be added + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows setting a value for conceptDescriptions - * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); - return getSelf(); - } + /** + * This function allows setting a value for conceptDescriptions + * + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List conceptDescriptions - * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List conceptDescriptions + * + * @param conceptDescriptions desired value to be added + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(ConceptDescription conceptDescriptions) { + getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + return getSelf(); + } - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Submodel submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 150e5e502..43e5cf704 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -15,80 +15,79 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import java.util.List; - - -public abstract class AssetInformationBuilder> - extends ExtendableBuilder { +public abstract class AssetInformationBuilder< + T extends AssetInformation, B extends AssetInformationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } + /** + * This function allows setting a value for assetKind + * + * @param assetKind desired value to be set + * @return Builder object with new value for assetKind + */ + public B assetKind(AssetKind assetKind) { + getBuildingInstance().setAssetKind(assetKind); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } + /** + * This function allows setting a value for assetType + * + * @param assetType desired value to be set + * @return Builder object with new value for assetType + */ + public B assetType(String assetType) { + getBuildingInstance().setAssetType(assetType); + return getSelf(); + } - /** - * This function allows setting a value for defaultThumbnail - * - * @param defaultThumbnail desired value to be set - * @return Builder object with new value for defaultThumbnail - */ - public B defaultThumbnail(Resource defaultThumbnail) { - getBuildingInstance().setDefaultThumbnail(defaultThumbnail); - return getSelf(); - } + /** + * This function allows setting a value for defaultThumbnail + * + * @param defaultThumbnail desired value to be set + * @return Builder object with new value for defaultThumbnail + */ + public B defaultThumbnail(Resource defaultThumbnail) { + getBuildingInstance().setDefaultThumbnail(defaultThumbnail); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java index f72a93dc0..f6372fd11 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; +public abstract class BaseOperationResultBuilder< + T extends BaseOperationResult, B extends BaseOperationResultBuilder> + extends ExtendableBuilder { -public abstract class BaseOperationResultBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for executionState - * - * @param executionState desired value to be set - * @return Builder object with new value for executionState - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().setExecutionState(executionState); - return getSelf(); - } + /** + * This function allows setting a value for executionState + * + * @param executionState desired value to be set + * @return Builder object with new value for executionState + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().setExecutionState(executionState); + return getSelf(); + } - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index a4406e40d..4011cc2a7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -25,262 +26,260 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.StateOfEvent; -import java.util.List; - - -public abstract class BasicEventElementBuilder> - extends ExtendableBuilder { +public abstract class BasicEventElementBuilder< + T extends BasicEventElement, B extends BasicEventElementBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for observed - * - * @param observed desired value to be set - * @return Builder object with new value for observed - */ - public B observed(Reference observed) { - getBuildingInstance().setObserved(observed); - return getSelf(); - } + /** + * This function allows setting a value for observed + * + * @param observed desired value to be set + * @return Builder object with new value for observed + */ + public B observed(Reference observed) { + getBuildingInstance().setObserved(observed); + return getSelf(); + } - /** - * This function allows setting a value for direction - * - * @param direction desired value to be set - * @return Builder object with new value for direction - */ - public B direction(Direction direction) { - getBuildingInstance().setDirection(direction); - return getSelf(); - } + /** + * This function allows setting a value for direction + * + * @param direction desired value to be set + * @return Builder object with new value for direction + */ + public B direction(Direction direction) { + getBuildingInstance().setDirection(direction); + return getSelf(); + } - /** - * This function allows setting a value for state - * - * @param state desired value to be set - * @return Builder object with new value for state - */ - public B state(StateOfEvent state) { - getBuildingInstance().setState(state); - return getSelf(); - } + /** + * This function allows setting a value for state + * + * @param state desired value to be set + * @return Builder object with new value for state + */ + public B state(StateOfEvent state) { + getBuildingInstance().setState(state); + return getSelf(); + } - /** - * This function allows setting a value for messageTopic - * - * @param messageTopic desired value to be set - * @return Builder object with new value for messageTopic - */ - public B messageTopic(String messageTopic) { - getBuildingInstance().setMessageTopic(messageTopic); - return getSelf(); - } + /** + * This function allows setting a value for messageTopic + * + * @param messageTopic desired value to be set + * @return Builder object with new value for messageTopic + */ + public B messageTopic(String messageTopic) { + getBuildingInstance().setMessageTopic(messageTopic); + return getSelf(); + } - /** - * This function allows setting a value for messageBroker - * - * @param messageBroker desired value to be set - * @return Builder object with new value for messageBroker - */ - public B messageBroker(Reference messageBroker) { - getBuildingInstance().setMessageBroker(messageBroker); - return getSelf(); - } + /** + * This function allows setting a value for messageBroker + * + * @param messageBroker desired value to be set + * @return Builder object with new value for messageBroker + */ + public B messageBroker(Reference messageBroker) { + getBuildingInstance().setMessageBroker(messageBroker); + return getSelf(); + } - /** - * This function allows setting a value for lastUpdate - * - * @param lastUpdate desired value to be set - * @return Builder object with new value for lastUpdate - */ - public B lastUpdate(String lastUpdate) { - getBuildingInstance().setLastUpdate(lastUpdate); - return getSelf(); - } + /** + * This function allows setting a value for lastUpdate + * + * @param lastUpdate desired value to be set + * @return Builder object with new value for lastUpdate + */ + public B lastUpdate(String lastUpdate) { + getBuildingInstance().setLastUpdate(lastUpdate); + return getSelf(); + } - /** - * This function allows setting a value for minInterval - * - * @param minInterval desired value to be set - * @return Builder object with new value for minInterval - */ - public B minInterval(String minInterval) { - getBuildingInstance().setMinInterval(minInterval); - return getSelf(); - } + /** + * This function allows setting a value for minInterval + * + * @param minInterval desired value to be set + * @return Builder object with new value for minInterval + */ + public B minInterval(String minInterval) { + getBuildingInstance().setMinInterval(minInterval); + return getSelf(); + } - /** - * This function allows setting a value for maxInterval - * - * @param maxInterval desired value to be set - * @return Builder object with new value for maxInterval - */ - public B maxInterval(String maxInterval) { - getBuildingInstance().setMaxInterval(maxInterval); - return getSelf(); - } + /** + * This function allows setting a value for maxInterval + * + * @param maxInterval desired value to be set + * @return Builder object with new value for maxInterval + */ + public B maxInterval(String maxInterval) { + getBuildingInstance().setMaxInterval(maxInterval); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index f598c14b4..9a474ff81 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -23,195 +24,193 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class BlobBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(byte[] value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class BlobBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(byte[] value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index 389b0d7af..979dc6f0a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -17,6 +17,5 @@ public interface Builder { - public T build(); - + public T build(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index 99dfe503f..7b97bb23a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -23,173 +24,171 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class CapabilityBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class CapabilityBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 016467724..1f798ed5b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -23,163 +24,161 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class ConceptDescriptionBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for isCaseOfs - * - * @param isCaseOfs desired value to be set - * @return Builder object with new value for isCaseOfs - */ - public B isCaseOfs(List isCaseOfs) { - getBuildingInstance().setIsCaseOfs(isCaseOfs); - return getSelf(); - } - - /** - * This function allows adding a value to the List isCaseOfs - * - * @param isCaseOf desired value to be added - * @return Builder object with new value for isCaseOfs - */ - public B isCaseOf(Reference isCaseOf) { - getBuildingInstance().getIsCaseOfs().add(isCaseOf); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class ConceptDescriptionBuilder< + T extends ConceptDescription, B extends ConceptDescriptionBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for isCaseOfs + * + * @param isCaseOfs desired value to be set + * @return Builder object with new value for isCaseOfs + */ + public B isCaseOfs(List isCaseOfs) { + getBuildingInstance().setIsCaseOfs(isCaseOfs); + return getSelf(); + } + + /** + * This function allows adding a value to the List isCaseOfs + * + * @param isCaseOf desired value to be added + * @return Builder object with new value for isCaseOfs + */ + public B isCaseOf(Reference isCaseOf) { + getBuildingInstance().getIsCaseOfs().add(isCaseOf); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 52994d156..0b05932d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,178 +16,175 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class DataSpecificationIec61360Builder> +public abstract class DataSpecificationIec61360Builder< + T extends DataSpecificationIec61360, B extends DataSpecificationIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for preferredNames - * - * @param preferredNames desired value to be set - * @return Builder object with new value for preferredNames - */ - public B preferredNames(List preferredNames) { - getBuildingInstance().setPreferredNames(preferredNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List preferredNames - * - * @param preferredName desired value to be added - * @return Builder object with new value for preferredNames - */ - public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { - getBuildingInstance().getPreferredNames().add(preferredName); - return getSelf(); - } - - /** - * This function allows setting a value for shortNames - * - * @param shortNames desired value to be set - * @return Builder object with new value for shortNames - */ - public B shortNames(List shortNames) { - getBuildingInstance().setShortNames(shortNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List shortNames - * - * @param shortName desired value to be added - * @return Builder object with new value for shortNames - */ - public B shortName(LangStringShortNameTypeIec61360 shortName) { - getBuildingInstance().getShortNames().add(shortName); - return getSelf(); - } - - /** - * This function allows setting a value for unit - * - * @param unit desired value to be set - * @return Builder object with new value for unit - */ - public B unit(String unit) { - getBuildingInstance().setUnit(unit); - return getSelf(); - } - - /** - * This function allows setting a value for unitId - * - * @param unitId desired value to be set - * @return Builder object with new value for unitId - */ - public B unitId(Reference unitId) { - getBuildingInstance().setUnitId(unitId); - return getSelf(); - } - - /** - * This function allows setting a value for sourceOfDefinition - * - * @param sourceOfDefinition desired value to be set - * @return Builder object with new value for sourceOfDefinition - */ - public B sourceOfDefinition(String sourceOfDefinition) { - getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); - return getSelf(); - } - - /** - * This function allows setting a value for symbol - * - * @param symbol desired value to be set - * @return Builder object with new value for symbol - */ - public B symbol(String symbol) { - getBuildingInstance().setSymbol(symbol); - return getSelf(); - } - - /** - * This function allows setting a value for dataType - * - * @param dataType desired value to be set - * @return Builder object with new value for dataType - */ - public B dataType(DataTypeIec61360 dataType) { - getBuildingInstance().setDataType(dataType); - return getSelf(); - } - - /** - * This function allows setting a value for definitions - * - * @param definitions desired value to be set - * @return Builder object with new value for definitions - */ - public B definitions(List definitions) { - getBuildingInstance().setDefinitions(definitions); - return getSelf(); - } - - /** - * This function allows adding a value to the List definitions - * - * @param definition desired value to be added - * @return Builder object with new value for definitions - */ - public B definition(LangStringDefinitionTypeIec61360 definition) { - getBuildingInstance().getDefinitions().add(definition); - return getSelf(); - } - - /** - * This function allows setting a value for valueFormat - * - * @param valueFormat desired value to be set - * @return Builder object with new value for valueFormat - */ - public B valueFormat(String valueFormat) { - getBuildingInstance().setValueFormat(valueFormat); - return getSelf(); - } - - /** - * This function allows setting a value for valueList - * - * @param valueList desired value to be set - * @return Builder object with new value for valueList - */ - public B valueList(ValueList valueList) { - getBuildingInstance().setValueList(valueList); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for levelType - * - * @param levelType desired value to be set - * @return Builder object with new value for levelType - */ - public B levelType(LevelType levelType) { - getBuildingInstance().setLevelType(levelType); - return getSelf(); - } - + /** + * This function allows setting a value for preferredNames + * + * @param preferredNames desired value to be set + * @return Builder object with new value for preferredNames + */ + public B preferredNames(List preferredNames) { + getBuildingInstance().setPreferredNames(preferredNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List preferredNames + * + * @param preferredName desired value to be added + * @return Builder object with new value for preferredNames + */ + public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { + getBuildingInstance().getPreferredNames().add(preferredName); + return getSelf(); + } + + /** + * This function allows setting a value for shortNames + * + * @param shortNames desired value to be set + * @return Builder object with new value for shortNames + */ + public B shortNames(List shortNames) { + getBuildingInstance().setShortNames(shortNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List shortNames + * + * @param shortName desired value to be added + * @return Builder object with new value for shortNames + */ + public B shortName(LangStringShortNameTypeIec61360 shortName) { + getBuildingInstance().getShortNames().add(shortName); + return getSelf(); + } + + /** + * This function allows setting a value for unit + * + * @param unit desired value to be set + * @return Builder object with new value for unit + */ + public B unit(String unit) { + getBuildingInstance().setUnit(unit); + return getSelf(); + } + + /** + * This function allows setting a value for unitId + * + * @param unitId desired value to be set + * @return Builder object with new value for unitId + */ + public B unitId(Reference unitId) { + getBuildingInstance().setUnitId(unitId); + return getSelf(); + } + + /** + * This function allows setting a value for sourceOfDefinition + * + * @param sourceOfDefinition desired value to be set + * @return Builder object with new value for sourceOfDefinition + */ + public B sourceOfDefinition(String sourceOfDefinition) { + getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); + return getSelf(); + } + + /** + * This function allows setting a value for symbol + * + * @param symbol desired value to be set + * @return Builder object with new value for symbol + */ + public B symbol(String symbol) { + getBuildingInstance().setSymbol(symbol); + return getSelf(); + } + + /** + * This function allows setting a value for dataType + * + * @param dataType desired value to be set + * @return Builder object with new value for dataType + */ + public B dataType(DataTypeIec61360 dataType) { + getBuildingInstance().setDataType(dataType); + return getSelf(); + } + + /** + * This function allows setting a value for definitions + * + * @param definitions desired value to be set + * @return Builder object with new value for definitions + */ + public B definitions(List definitions) { + getBuildingInstance().setDefinitions(definitions); + return getSelf(); + } + + /** + * This function allows adding a value to the List definitions + * + * @param definition desired value to be added + * @return Builder object with new value for definitions + */ + public B definition(LangStringDefinitionTypeIec61360 definition) { + getBuildingInstance().getDefinitions().add(definition); + return getSelf(); + } + + /** + * This function allows setting a value for valueFormat + * + * @param valueFormat desired value to be set + * @return Builder object with new value for valueFormat + */ + public B valueFormat(String valueFormat) { + getBuildingInstance().setValueFormat(valueFormat); + return getSelf(); + } + + /** + * This function allows setting a value for valueList + * + * @param valueList desired value to be set + * @return Builder object with new value for valueList + */ + public B valueList(ValueList valueList) { + getBuildingInstance().setValueList(valueList); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for levelType + * + * @param levelType desired value to be set + * @return Builder object with new value for levelType + */ + public B levelType(LevelType levelType) { + getBuildingInstance().setLevelType(levelType); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java index aafdc8623..24815abf5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import java.util.List; - - -public abstract class DescriptorBuilder> extends ExtendableBuilder { +public abstract class DescriptorBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index e6f8415bf..e8176462e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,34 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class EmbeddedDataSpecificationBuilder> +public abstract class EmbeddedDataSpecificationBuilder< + T extends EmbeddedDataSpecification, B extends EmbeddedDataSpecificationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for dataSpecification - * - * @param dataSpecification desired value to be set - * @return Builder object with new value for dataSpecification - */ - public B dataSpecification(Reference dataSpecification) { - getBuildingInstance().setDataSpecification(dataSpecification); - return getSelf(); - } - - /** - * This function allows setting a value for dataSpecificationContent - * - * @param dataSpecificationContent desired value to be set - * @return Builder object with new value for dataSpecificationContent - */ - public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecification + * + * @param dataSpecification desired value to be set + * @return Builder object with new value for dataSpecification + */ + public B dataSpecification(Reference dataSpecification) { + getBuildingInstance().setDataSpecification(dataSpecification); + return getSelf(); + } + + /** + * This function allows setting a value for dataSpecificationContent + * + * @param dataSpecificationContent desired value to be set + * @return Builder object with new value for dataSpecificationContent + */ + public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java index 0464ce542..0a11733b7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; +public abstract class EndpointBuilder> + extends ExtendableBuilder { -public abstract class EndpointBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for _interface - * - * @param _interface desired value to be set - * @return Builder object with new value for _interface - */ - public B _interface(String _interface) { - getBuildingInstance().set_interface(_interface); - return getSelf(); - } + /** + * This function allows setting a value for _interface + * + * @param _interface desired value to be set + * @return Builder object with new value for _interface + */ + public B _interface(String _interface) { + getBuildingInstance().set_interface(_interface); + return getSelf(); + } - /** - * This function allows setting a value for protocolInformation - * - * @param protocolInformation desired value to be set - * @return Builder object with new value for protocolInformation - */ - public B protocolInformation(ProtocolInformation protocolInformation) { - getBuildingInstance().setProtocolInformation(protocolInformation); - return getSelf(); - } + /** + * This function allows setting a value for protocolInformation + * + * @param protocolInformation desired value to be set + * @return Builder object with new value for protocolInformation + */ + public B protocolInformation(ProtocolInformation protocolInformation) { + getBuildingInstance().setProtocolInformation(protocolInformation); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index 3a42d949a..a27877fbe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -26,239 +27,237 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -import java.util.List; - - -public abstract class EntityBuilder> extends ExtendableBuilder { +public abstract class EntityBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for statements - * - * @param statements desired value to be set - * @return Builder object with new value for statements - */ - public B statements(List statements) { - getBuildingInstance().setStatements(statements); - return getSelf(); - } + /** + * This function allows setting a value for statements + * + * @param statements desired value to be set + * @return Builder object with new value for statements + */ + public B statements(List statements) { + getBuildingInstance().setStatements(statements); + return getSelf(); + } - /** - * This function allows adding a value to the List statements - * - * @param statements desired value to be added - * @return Builder object with new value for statements - */ - public B statements(SubmodelElement statements) { - getBuildingInstance().getStatements().add(statements); - return getSelf(); - } + /** + * This function allows adding a value to the List statements + * + * @param statements desired value to be added + * @return Builder object with new value for statements + */ + public B statements(SubmodelElement statements) { + getBuildingInstance().getStatements().add(statements); + return getSelf(); + } - /** - * This function allows setting a value for entityType - * - * @param entityType desired value to be set - * @return Builder object with new value for entityType - */ - public B entityType(EntityType entityType) { - getBuildingInstance().setEntityType(entityType); - return getSelf(); - } + /** + * This function allows setting a value for entityType + * + * @param entityType desired value to be set + * @return Builder object with new value for entityType + */ + public B entityType(EntityType entityType) { + getBuildingInstance().setEntityType(entityType); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 14f48bda5..448376be1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -15,79 +15,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; -import java.util.List; - - -public abstract class EnvironmentBuilder> extends ExtendableBuilder { +public abstract class EnvironmentBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for assetAdministrationShells - * - * @param assetAdministrationShells desired value to be set - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(List assetAdministrationShells) { - getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows setting a value for assetAdministrationShells + * + * @param assetAdministrationShells desired value to be set + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(List assetAdministrationShells) { + getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows adding a value to the List assetAdministrationShells - * - * @param assetAdministrationShells desired value to be added - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows adding a value to the List assetAdministrationShells + * + * @param assetAdministrationShells desired value to be added + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Submodel submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } - /** - * This function allows setting a value for conceptDescriptions - * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); - return getSelf(); - } + /** + * This function allows setting a value for conceptDescriptions + * + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List conceptDescriptions - * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List conceptDescriptions + * + * @param conceptDescriptions desired value to be added + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(ConceptDescription conceptDescriptions) { + getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index abf55f73d..ea78983d4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -15,98 +15,98 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +public abstract class EventPayloadBuilder< + T extends EventPayload, B extends EventPayloadBuilder> + extends ExtendableBuilder { -public abstract class EventPayloadBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for source - * - * @param source desired value to be set - * @return Builder object with new value for source - */ - public B source(Reference source) { - getBuildingInstance().setSource(source); - return getSelf(); - } + /** + * This function allows setting a value for source + * + * @param source desired value to be set + * @return Builder object with new value for source + */ + public B source(Reference source) { + getBuildingInstance().setSource(source); + return getSelf(); + } - /** - * This function allows setting a value for sourceSemanticId - * - * @param sourceSemanticId desired value to be set - * @return Builder object with new value for sourceSemanticId - */ - public B sourceSemanticId(Reference sourceSemanticId) { - getBuildingInstance().setSourceSemanticId(sourceSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for sourceSemanticId + * + * @param sourceSemanticId desired value to be set + * @return Builder object with new value for sourceSemanticId + */ + public B sourceSemanticId(Reference sourceSemanticId) { + getBuildingInstance().setSourceSemanticId(sourceSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for observableReference - * - * @param observableReference desired value to be set - * @return Builder object with new value for observableReference - */ - public B observableReference(Reference observableReference) { - getBuildingInstance().setObservableReference(observableReference); - return getSelf(); - } + /** + * This function allows setting a value for observableReference + * + * @param observableReference desired value to be set + * @return Builder object with new value for observableReference + */ + public B observableReference(Reference observableReference) { + getBuildingInstance().setObservableReference(observableReference); + return getSelf(); + } - /** - * This function allows setting a value for observableSemanticId - * - * @param observableSemanticId desired value to be set - * @return Builder object with new value for observableSemanticId - */ - public B observableSemanticId(Reference observableSemanticId) { - getBuildingInstance().setObservableSemanticId(observableSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for observableSemanticId + * + * @param observableSemanticId desired value to be set + * @return Builder object with new value for observableSemanticId + */ + public B observableSemanticId(Reference observableSemanticId) { + getBuildingInstance().setObservableSemanticId(observableSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for topic - * - * @param topic desired value to be set - * @return Builder object with new value for topic - */ - public B topic(String topic) { - getBuildingInstance().setTopic(topic); - return getSelf(); - } + /** + * This function allows setting a value for topic + * + * @param topic desired value to be set + * @return Builder object with new value for topic + */ + public B topic(String topic) { + getBuildingInstance().setTopic(topic); + return getSelf(); + } - /** - * This function allows setting a value for subjectId - * - * @param subjectId desired value to be set - * @return Builder object with new value for subjectId - */ - public B subjectId(Reference subjectId) { - getBuildingInstance().setSubjectId(subjectId); - return getSelf(); - } + /** + * This function allows setting a value for subjectId + * + * @param subjectId desired value to be set + * @return Builder object with new value for subjectId + */ + public B subjectId(Reference subjectId) { + getBuildingInstance().setSubjectId(subjectId); + return getSelf(); + } - /** - * This function allows setting a value for timeStamp - * - * @param timeStamp desired value to be set - * @return Builder object with new value for timeStamp - */ - public B timeStamp(String timeStamp) { - getBuildingInstance().setTimeStamp(timeStamp); - return getSelf(); - } + /** + * This function allows setting a value for timeStamp + * + * @param timeStamp desired value to be set + * @return Builder object with new value for timeStamp + */ + public B timeStamp(String timeStamp) { + getBuildingInstance().setTimeStamp(timeStamp); + return getSelf(); + } - /** - * This function allows setting a value for payload - * - * @param payload desired value to be set - * @return Builder object with new value for payload - */ - public B payload(byte[] payload) { - getBuildingInstance().setPayload(payload); - return getSelf(); - } + /** + * This function allows setting a value for payload + * + * @param payload desired value to be set + * @return Builder object with new value for payload + */ + public B payload(byte[] payload) { + getBuildingInstance().setPayload(payload); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java index a59f94e3b..8ffd57b76 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java @@ -15,8 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -public abstract class ExtendableBuilder> extends AbstractBuilder { - - protected abstract B getSelf(); +public abstract class ExtendableBuilder> + extends AbstractBuilder { + protected abstract B getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java index fe53d9220..9571ca1d6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java @@ -15,100 +15,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class ExtensionBuilder> extends ExtendableBuilder { +public abstract class ExtensionBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for refersTos - * - * @param refersTos desired value to be set - * @return Builder object with new value for refersTos - */ - public B refersTos(List refersTos) { - getBuildingInstance().setRefersTos(refersTos); - return getSelf(); - } + /** + * This function allows setting a value for refersTos + * + * @param refersTos desired value to be set + * @return Builder object with new value for refersTos + */ + public B refersTos(List refersTos) { + getBuildingInstance().setRefersTos(refersTos); + return getSelf(); + } - /** - * This function allows adding a value to the List refersTos - * - * @param refersTo desired value to be added - * @return Builder object with new value for refersTos - */ - public B refersTo(Reference refersTo) { - getBuildingInstance().getRefersTos().add(refersTo); - return getSelf(); - } + /** + * This function allows adding a value to the List refersTos + * + * @param refersTo desired value to be added + * @return Builder object with new value for refersTos + */ + public B refersTo(Reference refersTo) { + getBuildingInstance().getRefersTos().add(refersTo); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index a5d37642d..031980bc2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -23,195 +24,193 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class FileBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class FileBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index 2b5ccfa17..3ec90acd9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; +public abstract class KeyBuilder> + extends ExtendableBuilder { -public abstract class KeyBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(KeyTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(KeyTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index d00f6dc80..e91ff3f88 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,34 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class LangStringDefinitionTypeIec61360Builder> +public abstract class LangStringDefinitionTypeIec61360Builder< + T extends LangStringDefinitionTypeIec61360, + B extends LangStringDefinitionTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } - - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } + + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index 6754ad53c..243793ae4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +public abstract class LangStringNameTypeBuilder< + T extends LangStringNameType, B extends LangStringNameTypeBuilder> + extends ExtendableBuilder { -public abstract class LangStringNameTypeBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index 8c259259f..45cd0e375 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,34 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class LangStringPreferredNameTypeIec61360Builder> +public abstract class LangStringPreferredNameTypeIec61360Builder< + T extends LangStringPreferredNameTypeIec61360, + B extends LangStringPreferredNameTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } - - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } + + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 7cc068d87..6698e751c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,34 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class LangStringShortNameTypeIec61360Builder> +public abstract class LangStringShortNameTypeIec61360Builder< + T extends LangStringShortNameTypeIec61360, + B extends LangStringShortNameTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } - - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } + + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index 291d5aa07..57491cd0c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +public abstract class LangStringTextTypeBuilder< + T extends LangStringTextType, B extends LangStringTextTypeBuilder> + extends ExtendableBuilder { -public abstract class LangStringTextTypeBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index ff9c38d8f..e0bf0ccb6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -15,53 +15,52 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; +public abstract class LevelTypeBuilder> + extends ExtendableBuilder { -public abstract class LevelTypeBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(boolean min) { - getBuildingInstance().setMin(min); - return getSelf(); - } + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(boolean min) { + getBuildingInstance().setMin(min); + return getSelf(); + } - /** - * This function allows setting a value for nom - * - * @param nom desired value to be set - * @return Builder object with new value for nom - */ - public B nom(boolean nom) { - getBuildingInstance().setNom(nom); - return getSelf(); - } + /** + * This function allows setting a value for nom + * + * @param nom desired value to be set + * @return Builder object with new value for nom + */ + public B nom(boolean nom) { + getBuildingInstance().setNom(nom); + return getSelf(); + } - /** - * This function allows setting a value for typ - * - * @param typ desired value to be set - * @return Builder object with new value for typ - */ - public B typ(boolean typ) { - getBuildingInstance().setTyp(typ); - return getSelf(); - } + /** + * This function allows setting a value for typ + * + * @param typ desired value to be set + * @return Builder object with new value for typ + */ + public B typ(boolean typ) { + getBuildingInstance().setTyp(typ); + return getSelf(); + } - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(boolean max) { - getBuildingInstance().setMax(max); - return getSelf(); - } + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(boolean max) { + getBuildingInstance().setMax(max); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java index 2a17c52e2..1834ab299 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java @@ -15,54 +15,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; +public abstract class MessageBuilder> + extends ExtendableBuilder { -public abstract class MessageBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for code - * - * @param code desired value to be set - * @return Builder object with new value for code - */ - public B code(String code) { - getBuildingInstance().setCode(code); - return getSelf(); - } + /** + * This function allows setting a value for code + * + * @param code desired value to be set + * @return Builder object with new value for code + */ + public B code(String code) { + getBuildingInstance().setCode(code); + return getSelf(); + } - /** - * This function allows setting a value for messageType - * - * @param messageType desired value to be set - * @return Builder object with new value for messageType - */ - public B messageType(MessageType messageType) { - getBuildingInstance().setMessageType(messageType); - return getSelf(); - } + /** + * This function allows setting a value for messageType + * + * @param messageType desired value to be set + * @return Builder object with new value for messageType + */ + public B messageType(MessageType messageType) { + getBuildingInstance().setMessageType(messageType); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } - /** - * This function allows setting a value for timestamp - * - * @param timestamp desired value to be set - * @return Builder object with new value for timestamp - */ - public B timestamp(String timestamp) { - getBuildingInstance().setTimestamp(timestamp); - return getSelf(); - } + /** + * This function allows setting a value for timestamp + * + * @param timestamp desired value to be set + * @return Builder object with new value for timestamp + */ + public B timestamp(String timestamp) { + getBuildingInstance().setTimestamp(timestamp); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index 225eb33fa..f3b656b52 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,207 +24,205 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class MultiLanguagePropertyBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for values - * - * @param values desired value to be set - * @return Builder object with new value for values - */ - public B values(List values) { - getBuildingInstance().setValues(values); - return getSelf(); - } - - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(LangStringTextType value) { - getBuildingInstance().getValues().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class MultiLanguagePropertyBuilder< + T extends MultiLanguageProperty, B extends MultiLanguagePropertyBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for values + * + * @param values desired value to be set + * @return Builder object with new value for values + */ + public B values(List values) { + getBuildingInstance().setValues(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List values + * + * @param value desired value to be added + * @return Builder object with new value for values + */ + public B value(LangStringTextType value) { + getBuildingInstance().getValues().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index 669a42b23..9c91c34f3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,239 +25,237 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class OperationBuilder> extends ExtendableBuilder { +public abstract class OperationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for inputVariables - * - * @param inputVariables desired value to be set - * @return Builder object with new value for inputVariables - */ - public B inputVariables(List inputVariables) { - getBuildingInstance().setInputVariables(inputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inputVariables + * + * @param inputVariables desired value to be set + * @return Builder object with new value for inputVariables + */ + public B inputVariables(List inputVariables) { + getBuildingInstance().setInputVariables(inputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inputVariables - * - * @param inputVariables desired value to be added - * @return Builder object with new value for inputVariables - */ - public B inputVariables(OperationVariable inputVariables) { - getBuildingInstance().getInputVariables().add(inputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inputVariables + * + * @param inputVariables desired value to be added + * @return Builder object with new value for inputVariables + */ + public B inputVariables(OperationVariable inputVariables) { + getBuildingInstance().getInputVariables().add(inputVariables); + return getSelf(); + } - /** - * This function allows setting a value for outputVariables - * - * @param outputVariables desired value to be set - * @return Builder object with new value for outputVariables - */ - public B outputVariables(List outputVariables) { - getBuildingInstance().setOutputVariables(outputVariables); - return getSelf(); - } + /** + * This function allows setting a value for outputVariables + * + * @param outputVariables desired value to be set + * @return Builder object with new value for outputVariables + */ + public B outputVariables(List outputVariables) { + getBuildingInstance().setOutputVariables(outputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List outputVariables - * - * @param outputVariables desired value to be added - * @return Builder object with new value for outputVariables - */ - public B outputVariables(OperationVariable outputVariables) { - getBuildingInstance().getOutputVariables().add(outputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List outputVariables + * + * @param outputVariables desired value to be added + * @return Builder object with new value for outputVariables + */ + public B outputVariables(OperationVariable outputVariables) { + getBuildingInstance().getOutputVariables().add(outputVariables); + return getSelf(); + } - /** - * This function allows setting a value for inoutputVariables - * - * @param inoutputVariables desired value to be set - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(List inoutputVariables) { - getBuildingInstance().setInoutputVariables(inoutputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inoutputVariables + * + * @param inoutputVariables desired value to be set + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(List inoutputVariables) { + getBuildingInstance().setInoutputVariables(inoutputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputVariables - * - * @param inoutputVariables desired value to be added - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(OperationVariable inoutputVariables) { - getBuildingInstance().getInoutputVariables().add(inoutputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputVariables + * + * @param inoutputVariables desired value to be added + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(OperationVariable inoutputVariables) { + getBuildingInstance().getInoutputVariables().add(inoutputVariables); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java index 37d9e9810..0fa9b74ec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; +public abstract class OperationHandleBuilder< + T extends OperationHandle, B extends OperationHandleBuilder> + extends ExtendableBuilder { -public abstract class OperationHandleBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for handleId - * - * @param handleId desired value to be set - * @return Builder object with new value for handleId - */ - public B handleId(String handleId) { - getBuildingInstance().setHandleId(handleId); - return getSelf(); - } + /** + * This function allows setting a value for handleId + * + * @param handleId desired value to be set + * @return Builder object with new value for handleId + */ + public B handleId(String handleId) { + getBuildingInstance().setHandleId(handleId); + return getSelf(); + } - /** - * This function allows setting a value for requestId - * - * @param requestId desired value to be set - * @return Builder object with new value for requestId - */ - public B requestId(String requestId) { - getBuildingInstance().setRequestId(requestId); - return getSelf(); - } + /** + * This function allows setting a value for requestId + * + * @param requestId desired value to be set + * @return Builder object with new value for requestId + */ + public B requestId(String requestId) { + getBuildingInstance().setRequestId(requestId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java index 537dad41d..eac7e6a1c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -15,56 +15,55 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.math.BigInteger; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import java.math.BigInteger; - - -public abstract class OperationRequestBuilder> - extends ExtendableBuilder { +public abstract class OperationRequestBuilder< + T extends OperationRequest, B extends OperationRequestBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } - /** - * This function allows setting a value for inputArguments - * - * @param inputArguments desired value to be set - * @return Builder object with new value for inputArguments - */ - public B inputArguments(OperationVariable inputArguments) { - getBuildingInstance().setInputArguments(inputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inputArguments + * + * @param inputArguments desired value to be set + * @return Builder object with new value for inputArguments + */ + public B inputArguments(OperationVariable inputArguments) { + getBuildingInstance().setInputArguments(inputArguments); + return getSelf(); + } - /** - * This function allows setting a value for requestId - * - * @param requestId desired value to be set - * @return Builder object with new value for requestId - */ - public B requestId(String requestId) { - getBuildingInstance().setRequestId(requestId); - return getSelf(); - } + /** + * This function allows setting a value for requestId + * + * @param requestId desired value to be set + * @return Builder object with new value for requestId + */ + public B requestId(String requestId) { + getBuildingInstance().setRequestId(requestId); + return getSelf(); + } - /** - * This function allows setting a value for timeout - * - * @param timeout desired value to be set - * @return Builder object with new value for timeout - */ - public B timeout(BigInteger timeout) { - getBuildingInstance().setTimeout(timeout); - return getSelf(); - } + /** + * This function allows setting a value for timeout + * + * @param timeout desired value to be set + * @return Builder object with new value for timeout + */ + public B timeout(BigInteger timeout) { + getBuildingInstance().setTimeout(timeout); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java index fe039bfbe..77f389210 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -15,124 +15,123 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.Result; -import java.util.List; - - -public abstract class OperationResultBuilder> - extends ExtendableBuilder { +public abstract class OperationResultBuilder< + T extends OperationResult, B extends OperationResultBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for executionResults - * - * @param executionResults desired value to be set - * @return Builder object with new value for executionResults - */ - public B executionResults(List executionResults) { - getBuildingInstance().setExecutionResults(executionResults); - return getSelf(); - } + /** + * This function allows setting a value for executionResults + * + * @param executionResults desired value to be set + * @return Builder object with new value for executionResults + */ + public B executionResults(List executionResults) { + getBuildingInstance().setExecutionResults(executionResults); + return getSelf(); + } - /** - * This function allows adding a value to the List executionResults - * - * @param executionResult desired value to be added - * @return Builder object with new value for executionResults - */ - public B executionResult(Result executionResult) { - getBuildingInstance().getExecutionResults().add(executionResult); - return getSelf(); - } + /** + * This function allows adding a value to the List executionResults + * + * @param executionResult desired value to be added + * @return Builder object with new value for executionResults + */ + public B executionResult(Result executionResult) { + getBuildingInstance().getExecutionResults().add(executionResult); + return getSelf(); + } - /** - * This function allows setting a value for executionStates - * - * @param executionStates desired value to be set - * @return Builder object with new value for executionStates - */ - public B executionStates(List executionStates) { - getBuildingInstance().setExecutionStates(executionStates); - return getSelf(); - } + /** + * This function allows setting a value for executionStates + * + * @param executionStates desired value to be set + * @return Builder object with new value for executionStates + */ + public B executionStates(List executionStates) { + getBuildingInstance().setExecutionStates(executionStates); + return getSelf(); + } - /** - * This function allows adding a value to the List executionStates - * - * @param executionState desired value to be added - * @return Builder object with new value for executionStates - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().getExecutionStates().add(executionState); - return getSelf(); - } + /** + * This function allows adding a value to the List executionStates + * + * @param executionState desired value to be added + * @return Builder object with new value for executionStates + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().getExecutionStates().add(executionState); + return getSelf(); + } - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(List inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputArguments + * + * @param inoutputArguments desired value to be added + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().getInoutputArguments().add(inoutputArguments); + return getSelf(); + } - /** - * This function allows setting a value for outputArguments - * - * @param outputArguments desired value to be set - * @return Builder object with new value for outputArguments - */ - public B outputArguments(List outputArguments) { - getBuildingInstance().setOutputArguments(outputArguments); - return getSelf(); - } + /** + * This function allows setting a value for outputArguments + * + * @param outputArguments desired value to be set + * @return Builder object with new value for outputArguments + */ + public B outputArguments(List outputArguments) { + getBuildingInstance().setOutputArguments(outputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List outputArguments - * - * @param outputArguments desired value to be added - * @return Builder object with new value for outputArguments - */ - public B outputArguments(OperationVariable outputArguments) { - getBuildingInstance().getOutputArguments().add(outputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List outputArguments + * + * @param outputArguments desired value to be added + * @return Builder object with new value for outputArguments + */ + public B outputArguments(OperationVariable outputArguments) { + getBuildingInstance().getOutputArguments().add(outputArguments); + return getSelf(); + } - /** - * This function allows setting a value for requestIds - * - * @param requestIds desired value to be set - * @return Builder object with new value for requestIds - */ - public B requestIds(List requestIds) { - getBuildingInstance().setRequestIds(requestIds); - return getSelf(); - } + /** + * This function allows setting a value for requestIds + * + * @param requestIds desired value to be set + * @return Builder object with new value for requestIds + */ + public B requestIds(List requestIds) { + getBuildingInstance().setRequestIds(requestIds); + return getSelf(); + } - /** - * This function allows adding a value to the List requestIds - * - * @param requestId desired value to be added - * @return Builder object with new value for requestIds - */ - public B requestId(String requestId) { - getBuildingInstance().getRequestIds().add(requestId); - return getSelf(); - } + /** + * This function allows adding a value to the List requestIds + * + * @param requestId desired value to be added + * @return Builder object with new value for requestIds + */ + public B requestId(String requestId) { + getBuildingInstance().getRequestIds().add(requestId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index 63fba1b7e..b42de883f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -15,22 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +public abstract class OperationVariableBuilder< + T extends OperationVariable, B extends OperationVariableBuilder> + extends ExtendableBuilder { -public abstract class OperationVariableBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(SubmodelElement value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java index 3c4d9923f..b917d183c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -15,44 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; - -public abstract class PackageDescriptionBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for items - * - * @param items desired value to be set - * @return Builder object with new value for items - */ - public B items(List items) { - getBuildingInstance().setItems(items); - return getSelf(); - } - - /** - * This function allows adding a value to the List items - * - * @param items desired value to be added - * @return Builder object with new value for items - */ - public B items(String items) { - getBuildingInstance().getItems().add(items); - return getSelf(); - } - - /** - * This function allows setting a value for packageId - * - * @param packageId desired value to be set - * @return Builder object with new value for packageId - */ - public B packageId(String packageId) { - getBuildingInstance().setPackageId(packageId); - return getSelf(); - } +public abstract class PackageDescriptionBuilder< + T extends PackageDescription, B extends PackageDescriptionBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for items + * + * @param items desired value to be set + * @return Builder object with new value for items + */ + public B items(List items) { + getBuildingInstance().setItems(items); + return getSelf(); + } + + /** + * This function allows adding a value to the List items + * + * @param items desired value to be added + * @return Builder object with new value for items + */ + public B items(String items) { + getBuildingInstance().getItems().add(items); + return getSelf(); + } + + /** + * This function allows setting a value for packageId + * + * @param packageId desired value to be set + * @return Builder object with new value for packageId + */ + public B packageId(String packageId) { + getBuildingInstance().setPackageId(packageId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index d6387d3f3..8b6802dec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,206 +25,204 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class PropertyBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class PropertyBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index 4ace7ef90..000f4d26f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -15,100 +15,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; -import java.util.List; - - -public abstract class ProtocolInformationBuilder> - extends ExtendableBuilder { +public abstract class ProtocolInformationBuilder< + T extends ProtocolInformation, B extends ProtocolInformationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for endpointAddress - * - * @param endpointAddress desired value to be set - * @return Builder object with new value for endpointAddress - */ - public B endpointAddress(String endpointAddress) { - getBuildingInstance().setEndpointAddress(endpointAddress); - return getSelf(); - } + /** + * This function allows setting a value for endpointAddress + * + * @param endpointAddress desired value to be set + * @return Builder object with new value for endpointAddress + */ + public B endpointAddress(String endpointAddress) { + getBuildingInstance().setEndpointAddress(endpointAddress); + return getSelf(); + } - /** - * This function allows setting a value for endpointProtocol - * - * @param endpointProtocol desired value to be set - * @return Builder object with new value for endpointProtocol - */ - public B endpointProtocol(String endpointProtocol) { - getBuildingInstance().setEndpointProtocol(endpointProtocol); - return getSelf(); - } + /** + * This function allows setting a value for endpointProtocol + * + * @param endpointProtocol desired value to be set + * @return Builder object with new value for endpointProtocol + */ + public B endpointProtocol(String endpointProtocol) { + getBuildingInstance().setEndpointProtocol(endpointProtocol); + return getSelf(); + } - /** - * This function allows setting a value for endpointProtocolVersion - * - * @param endpointProtocolVersion desired value to be set - * @return Builder object with new value for endpointProtocolVersion - */ - public B endpointProtocolVersion(String endpointProtocolVersion) { - getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); - return getSelf(); - } + /** + * This function allows setting a value for endpointProtocolVersion + * + * @param endpointProtocolVersion desired value to be set + * @return Builder object with new value for endpointProtocolVersion + */ + public B endpointProtocolVersion(String endpointProtocolVersion) { + getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); + return getSelf(); + } - /** - * This function allows setting a value for securityAttributes - * - * @param securityAttributes desired value to be set - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(List securityAttributes) { - getBuildingInstance().setSecurityAttributes(securityAttributes); - return getSelf(); - } + /** + * This function allows setting a value for securityAttributes + * + * @param securityAttributes desired value to be set + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(List securityAttributes) { + getBuildingInstance().setSecurityAttributes(securityAttributes); + return getSelf(); + } - /** - * This function allows adding a value to the List securityAttributes - * - * @param securityAttributes desired value to be added - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(SecurityAttributeObject securityAttributes) { - getBuildingInstance().getSecurityAttributes().add(securityAttributes); - return getSelf(); - } + /** + * This function allows adding a value to the List securityAttributes + * + * @param securityAttributes desired value to be added + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(SecurityAttributeObject securityAttributes) { + getBuildingInstance().getSecurityAttributes().add(securityAttributes); + return getSelf(); + } - /** - * This function allows setting a value for subprotocol - * - * @param subprotocol desired value to be set - * @return Builder object with new value for subprotocol - */ - public B subprotocol(String subprotocol) { - getBuildingInstance().setSubprotocol(subprotocol); - return getSelf(); - } + /** + * This function allows setting a value for subprotocol + * + * @param subprotocol desired value to be set + * @return Builder object with new value for subprotocol + */ + public B subprotocol(String subprotocol) { + getBuildingInstance().setSubprotocol(subprotocol); + return getSelf(); + } - /** - * This function allows setting a value for subprotocolBody - * - * @param subprotocolBody desired value to be set - * @return Builder object with new value for subprotocolBody - */ - public B subprotocolBody(String subprotocolBody) { - getBuildingInstance().setSubprotocolBody(subprotocolBody); - return getSelf(); - } + /** + * This function allows setting a value for subprotocolBody + * + * @param subprotocolBody desired value to be set + * @return Builder object with new value for subprotocolBody + */ + public B subprotocolBody(String subprotocolBody) { + getBuildingInstance().setSubprotocolBody(subprotocolBody); + return getSelf(); + } - /** - * This function allows setting a value for subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value to be set - * @return Builder object with new value for subprotocolBodyEncoding - */ - public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { - getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); - return getSelf(); - } + /** + * This function allows setting a value for subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value to be set + * @return Builder object with new value for subprotocolBodyEncoding + */ + public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { + getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index c09c5be3d..ac268120c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -15,101 +15,100 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class QualifierBuilder> extends ExtendableBuilder { +public abstract class QualifierBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(QualifierKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(QualifierKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(String type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(String type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index 3327e907d..20f436183 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,206 +25,204 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Range; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class RangeBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(String min) { - getBuildingInstance().setMin(min); - return getSelf(); - } - - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(String max) { - getBuildingInstance().setMax(max); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class RangeBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(String min) { + getBuildingInstance().setMin(min); + return getSelf(); + } + + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(String max) { + getBuildingInstance().setMax(max); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index 436cd1c49..3e464f71a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -15,56 +15,55 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; -import java.util.List; - - -public abstract class ReferenceBuilder> extends ExtendableBuilder { +public abstract class ReferenceBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(ReferenceTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(ReferenceTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for referredSemanticId - * - * @param referredSemanticId desired value to be set - * @return Builder object with new value for referredSemanticId - */ - public B referredSemanticId(Reference referredSemanticId) { - getBuildingInstance().setReferredSemanticId(referredSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for referredSemanticId + * + * @param referredSemanticId desired value to be set + * @return Builder object with new value for referredSemanticId + */ + public B referredSemanticId(Reference referredSemanticId) { + getBuildingInstance().setReferredSemanticId(referredSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for keys - * - * @param keys desired value to be set - * @return Builder object with new value for keys - */ - public B keys(List keys) { - getBuildingInstance().setKeys(keys); - return getSelf(); - } + /** + * This function allows setting a value for keys + * + * @param keys desired value to be set + * @return Builder object with new value for keys + */ + public B keys(List keys) { + getBuildingInstance().setKeys(keys); + return getSelf(); + } - /** - * This function allows adding a value to the List keys - * - * @param keys desired value to be added - * @return Builder object with new value for keys - */ - public B keys(Key keys) { - getBuildingInstance().getKeys().add(keys); - return getSelf(); - } + /** + * This function allows adding a value to the List keys + * + * @param keys desired value to be added + * @return Builder object with new value for keys + */ + public B keys(Key keys) { + getBuildingInstance().getKeys().add(keys); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index b5e0c1d35..a4a035075 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,185 +24,183 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement; -import java.util.List; - - -public abstract class ReferenceElementBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(Reference value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class ReferenceElementBuilder< + T extends ReferenceElement, B extends ReferenceElementBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(Reference value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index b3d860393..5166d9014 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,196 +24,194 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement; -import java.util.List; - - -public abstract class RelationshipElementBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class RelationshipElementBuilder< + T extends RelationshipElement, B extends RelationshipElementBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index a3d21252b..2e563b1e6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -15,31 +15,30 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Resource; +public abstract class ResourceBuilder> + extends ExtendableBuilder { -public abstract class ResourceBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for path - * - * @param path desired value to be set - * @return Builder object with new value for path - */ - public B path(String path) { - getBuildingInstance().setPath(path); - return getSelf(); - } + /** + * This function allows setting a value for path + * + * @param path desired value to be set + * @return Builder object with new value for path + */ + public B path(String path) { + getBuildingInstance().setPath(path); + return getSelf(); + } - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java index 97e7b7a95..9431a3c84 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java @@ -15,44 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; -import java.util.List; - - -public abstract class ResultBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } - - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } - - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } +public abstract class ResultBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for messages + * + * @param messages desired value to be set + * @return Builder object with new value for messages + */ + public B messages(List messages) { + getBuildingInstance().setMessages(messages); + return getSelf(); + } + + /** + * This function allows adding a value to the List messages + * + * @param messages desired value to be added + * @return Builder object with new value for messages + */ + public B messages(Message messages) { + getBuildingInstance().getMessages().add(messages); + return getSelf(); + } + + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java index 52edbf25f..aab45bc64 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -15,44 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class SecurityAttributeObjectBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for key - * - * @param key desired value to be set - * @return Builder object with new value for key - */ - public B key(String key) { - getBuildingInstance().setKey(key); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(SecurityTypeEnum type) { - getBuildingInstance().setType(type); - return getSelf(); - } +public abstract class SecurityAttributeObjectBuilder< + T extends SecurityAttributeObject, B extends SecurityAttributeObjectBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for key + * + * @param key desired value to be set + * @return Builder object with new value for key + */ + public B key(String key) { + getBuildingInstance().setKey(key); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(SecurityTypeEnum type) { + getBuildingInstance().setType(type); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java index 1b554bca9..4779ec05c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java @@ -15,10 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; - -public abstract class SecurityTypeEnumBuilder> - extends ExtendableBuilder { -} +public abstract class SecurityTypeEnumBuilder< + T extends SecurityTypeEnum, B extends SecurityTypeEnumBuilder> + extends ExtendableBuilder {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index 120d5933e..e91301c94 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -15,78 +15,77 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import java.util.List; - - -public abstract class SpecificAssetIdBuilder> - extends ExtendableBuilder { +public abstract class SpecificAssetIdBuilder< + T extends SpecificAssetId, B extends SpecificAssetIdBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for externalSubjectId - * - * @param externalSubjectId desired value to be set - * @return Builder object with new value for externalSubjectId - */ - public B externalSubjectId(Reference externalSubjectId) { - getBuildingInstance().setExternalSubjectId(externalSubjectId); - return getSelf(); - } + /** + * This function allows setting a value for externalSubjectId + * + * @param externalSubjectId desired value to be set + * @return Builder object with new value for externalSubjectId + */ + public B externalSubjectId(Reference externalSubjectId) { + getBuildingInstance().setExternalSubjectId(externalSubjectId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index 0bf610e4e..efd4fc21e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -26,228 +27,226 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -import java.util.List; - - -public abstract class SubmodelBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for submodelElements - * - * @param submodelElements desired value to be set - * @return Builder object with new value for submodelElements - */ - public B submodelElements(List submodelElements) { - getBuildingInstance().setSubmodelElements(submodelElements); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelElements - * - * @param submodelElements desired value to be added - * @return Builder object with new value for submodelElements - */ - public B submodelElements(SubmodelElement submodelElements) { - getBuildingInstance().getSubmodelElements().add(submodelElements); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class SubmodelBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for submodelElements + * + * @param submodelElements desired value to be set + * @return Builder object with new value for submodelElements + */ + public B submodelElements(List submodelElements) { + getBuildingInstance().setSubmodelElements(submodelElements); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodelElements + * + * @param submodelElements desired value to be added + * @return Builder object with new value for submodelElements + */ + public B submodelElements(SubmodelElement submodelElements) { + getBuildingInstance().getSubmodelElements().add(submodelElements); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java index f4f4c88ce..bfe030a46 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -22,97 +23,95 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; -import java.util.List; - - -public abstract class SubmodelDescriptorBuilder> - extends ExtendableBuilder { +public abstract class SubmodelDescriptorBuilder< + T extends SubmodelDescriptor, B extends SubmodelDescriptorBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param description desired value to be set + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().setDescription(description); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayName desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().setDisplayName(displayName); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for identification - * - * @param identification desired value to be set - * @return Builder object with new value for identification - */ - public B identification(String identification) { - getBuildingInstance().setIdentification(identification); - return getSelf(); - } + /** + * This function allows setting a value for identification + * + * @param identification desired value to be set + * @return Builder object with new value for identification + */ + public B identification(String identification) { + getBuildingInstance().setIdentification(identification); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index c44aa98ce..6be4f59ed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,188 +16,186 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class SubmodelElementAttributesBuilder> +public abstract class SubmodelElementAttributesBuilder< + T extends SubmodelElementAttributes, B extends SubmodelElementAttributesBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index b698dcc1d..5927a644d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,199 +16,197 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import java.util.List; - - import org.eclipse.digitaltwin.aas4j.v3.model.*; import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; - -public abstract class SubmodelElementCollectionBuilder> +public abstract class SubmodelElementCollectionBuilder< + T extends SubmodelElementCollection, B extends SubmodelElementCollectionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for values - * - * @param values desired value to be set - * @return Builder object with new value for values - */ - public B values(List values) { - getBuildingInstance().setValues(values); - return getSelf(); - } - - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValues().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for values + * + * @param values desired value to be set + * @return Builder object with new value for values + */ + public B values(List values) { + getBuildingInstance().setValues(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List values + * + * @param value desired value to be added + * @return Builder object with new value for values + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValues().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index 89d2682bb..5c6baf539 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,240 +27,238 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList; -import java.util.List; - - -public abstract class SubmodelElementListBuilder> - extends ExtendableBuilder { +public abstract class SubmodelElementListBuilder< + T extends SubmodelElementList, B extends SubmodelElementListBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for orderRelevant - * - * @param orderRelevant desired value to be set - * @return Builder object with new value for orderRelevant - */ - public B orderRelevant(boolean orderRelevant) { - getBuildingInstance().setOrderRelevant(orderRelevant); - return getSelf(); - } + /** + * This function allows setting a value for orderRelevant + * + * @param orderRelevant desired value to be set + * @return Builder object with new value for orderRelevant + */ + public B orderRelevant(boolean orderRelevant) { + getBuildingInstance().setOrderRelevant(orderRelevant); + return getSelf(); + } - /** - * This function allows setting a value for semanticIdListElement - * - * @param semanticIdListElement desired value to be set - * @return Builder object with new value for semanticIdListElement - */ - public B semanticIdListElement(Reference semanticIdListElement) { - getBuildingInstance().setSemanticIdListElement(semanticIdListElement); - return getSelf(); - } + /** + * This function allows setting a value for semanticIdListElement + * + * @param semanticIdListElement desired value to be set + * @return Builder object with new value for semanticIdListElement + */ + public B semanticIdListElement(Reference semanticIdListElement) { + getBuildingInstance().setSemanticIdListElement(semanticIdListElement); + return getSelf(); + } - /** - * This function allows setting a value for typeValueListElement - * - * @param typeValueListElement desired value to be set - * @return Builder object with new value for typeValueListElement - */ - public B typeValueListElement(AasSubmodelElements typeValueListElement) { - getBuildingInstance().setTypeValueListElement(typeValueListElement); - return getSelf(); - } + /** + * This function allows setting a value for typeValueListElement + * + * @param typeValueListElement desired value to be set + * @return Builder object with new value for typeValueListElement + */ + public B typeValueListElement(AasSubmodelElements typeValueListElement) { + getBuildingInstance().setTypeValueListElement(typeValueListElement); + return getSelf(); + } - /** - * This function allows setting a value for valueTypeListElement - * - * @param valueTypeListElement desired value to be set - * @return Builder object with new value for valueTypeListElement - */ - public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { - getBuildingInstance().setValueTypeListElement(valueTypeListElement); - return getSelf(); - } + /** + * This function allows setting a value for valueTypeListElement + * + * @param valueTypeListElement desired value to be set + * @return Builder object with new value for valueTypeListElement + */ + public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { + getBuildingInstance().setValueTypeListElement(valueTypeListElement); + return getSelf(); + } - /** - * This function allows setting a value for values - * - * @param values desired value to be set - * @return Builder object with new value for values - */ - public B values(List values) { - getBuildingInstance().setValues(values); - return getSelf(); - } + /** + * This function allows setting a value for values + * + * @param values desired value to be set + * @return Builder object with new value for values + */ + public B values(List values) { + getBuildingInstance().setValues(values); + return getSelf(); + } - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValues().add(value); - return getSelf(); - } + /** + * This function allows adding a value to the List values + * + * @param value desired value to be added + * @return Builder object with new value for values + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValues().add(value); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayNames + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayNames + */ + public B displayNames(List displayNames) { + getBuildingInstance().setDisplayNames(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayNames + * + * @param displayName desired value to be added + * @return Builder object with new value for displayNames + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayNames().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for descriptions + * + * @param descriptions desired value to be set + * @return Builder object with new value for descriptions + */ + public B descriptions(List descriptions) { + getBuildingInstance().setDescriptions(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List descriptions + * + * @param description desired value to be added + * @return Builder object with new value for descriptions + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescriptions().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index 59790cad6..94ef2f57c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; -import java.util.List; - - -public abstract class ValueListBuilder> extends ExtendableBuilder { +public abstract class ValueListBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for valueReferencePairs - * - * @param valueReferencePairs desired value to be set - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(List valueReferencePairs) { - getBuildingInstance().setValueReferencePairs(valueReferencePairs); - return getSelf(); - } + /** + * This function allows setting a value for valueReferencePairs + * + * @param valueReferencePairs desired value to be set + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(List valueReferencePairs) { + getBuildingInstance().setValueReferencePairs(valueReferencePairs); + return getSelf(); + } - /** - * This function allows adding a value to the List valueReferencePairs - * - * @param valueReferencePairs desired value to be added - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(ValueReferencePair valueReferencePairs) { - getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); - return getSelf(); - } + /** + * This function allows adding a value to the List valueReferencePairs + * + * @param valueReferencePairs desired value to be added + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(ValueReferencePair valueReferencePairs) { + getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index c677d25cb..df87d9c21 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; +public abstract class ValueReferencePairBuilder< + T extends ValueReferencePair, B extends ValueReferencePairBuilder> + extends ExtendableBuilder { -public abstract class ValueReferencePairBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index dab634545..98650dad4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -15,179 +15,190 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import javax.xml.datatype.XMLGregorianCalendar; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AdministrativeInformationBuilder; -import javax.xml.datatype.XMLGregorianCalendar; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation - *

- * Administrative meta-information for an element like version information. + * + *

Administrative meta-information for an element like version information. */ - @IRI("aas:AdministrativeInformation") public class DefaultAdministrativeInformation implements AdministrativeInformation { - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") - protected XMLGregorianCalendar createdAt; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") - protected Reference creator; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") - protected String revision; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") - protected String templateId; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") - protected XMLGregorianCalendar updatedAt; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") - protected String version; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - public DefaultAdministrativeInformation() { - } - - @Override - public String toString() { - return "DefaultAdministrativeInformation{" - + "createdAt='" + createdAt + "'," - + "version='" + version + "'," - + "revision='" + revision + "'," - + "creator='" + creator + "'," - + "templateId='" + templateId + "'," - + "updatedAt='" + updatedAt + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.createdAt, - this.version, - this.revision, - this.creator, - this.templateId, - this.updatedAt, - this.embeddedDataSpecifications); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; - return Objects.equals(this.createdAt, other.createdAt) && - Objects.equals(this.version, other.version) && - Objects.equals(this.revision, other.revision) && - Objects.equals(this.creator, other.creator) && - Objects.equals(this.templateId, other.templateId) && - Objects.equals(this.updatedAt, other.updatedAt) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); - } - } - - @Override - public XMLGregorianCalendar getCreatedAt() { - return createdAt; - } - - @Override - public void setCreatedAt(XMLGregorianCalendar createdAt) { - this.createdAt = createdAt; - } - - @Override - public String getVersion() { - return version; - } - - @Override - public void setVersion(String version) { - this.version = version; - } - - @Override - public String getRevision() { - return revision; - } - - @Override - public void setRevision(String revision) { - this.revision = revision; - } - - @Override - public Reference getCreator() { - return creator; - } - - @Override - public void setCreator(Reference creator) { - this.creator = creator; - } - - @Override - public String getTemplateId() { - return templateId; - } - - @Override - public void setTemplateId(String templateId) { - this.templateId = templateId; - } - - @Override - public XMLGregorianCalendar getUpdatedAt() { - return updatedAt; - } - - @Override - public void setUpdatedAt(XMLGregorianCalendar updatedAt) { - this.updatedAt = updatedAt; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - /** - * This builder class can be used to construct a DefaultAdministrativeInformation bean. - */ - public static class Builder extends AdministrativeInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAdministrativeInformation newBuildingInstance() { - return new DefaultAdministrativeInformation(); - } - } + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") + protected XMLGregorianCalendar createdAt; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") + protected Reference creator; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") + protected String revision; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") + protected String templateId; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") + protected XMLGregorianCalendar updatedAt; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") + protected String version; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + public DefaultAdministrativeInformation() {} + + @Override + public String toString() { + return "DefaultAdministrativeInformation{" + + "createdAt='" + + createdAt + + "'," + + "version='" + + version + + "'," + + "revision='" + + revision + + "'," + + "creator='" + + creator + + "'," + + "templateId='" + + templateId + + "'," + + "updatedAt='" + + updatedAt + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.createdAt, + this.version, + this.revision, + this.creator, + this.templateId, + this.updatedAt, + this.embeddedDataSpecifications); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; + return Objects.equals(this.createdAt, other.createdAt) + && Objects.equals(this.version, other.version) + && Objects.equals(this.revision, other.revision) + && Objects.equals(this.creator, other.creator) + && Objects.equals(this.templateId, other.templateId) + && Objects.equals(this.updatedAt, other.updatedAt) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); + } + } + + @Override + public XMLGregorianCalendar getCreatedAt() { + return createdAt; + } + + @Override + public void setCreatedAt(XMLGregorianCalendar createdAt) { + this.createdAt = createdAt; + } + + @Override + public String getVersion() { + return version; + } + + @Override + public void setVersion(String version) { + this.version = version; + } + + @Override + public String getRevision() { + return revision; + } + + @Override + public void setRevision(String revision) { + this.revision = revision; + } + + @Override + public Reference getCreator() { + return creator; + } + + @Override + public void setCreator(Reference creator) { + this.creator = creator; + } + + @Override + public String getTemplateId() { + return templateId; + } + + @Override + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + @Override + public XMLGregorianCalendar getUpdatedAt() { + return updatedAt; + } + + @Override + public void setUpdatedAt(XMLGregorianCalendar updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + /** This builder class can be used to construct a DefaultAdministrativeInformation bean. */ + public static class Builder + extends AdministrativeInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAdministrativeInformation newBuildingInstance() { + return new DefaultAdministrativeInformation(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index 7246fc790..da07e4994 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,253 +29,271 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AnnotatedRelationshipElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement - *

- * An annotated relationship element is a relationship element that can be annotated with additional - * data elements. + * + *

An annotated relationship element is a relationship element that can be annotated with + * additional data elements. */ - @IRI("aas:AnnotatedRelationshipElement") public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshipElement { - @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") - protected List annotations = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") - protected Reference second; - - public DefaultAnnotatedRelationshipElement() { - } - - @Override - public String toString() { - return "DefaultAnnotatedRelationshipElement{" - + "annotations='" + annotations + "'," - + "first='" + first + "'," - + "second='" + second + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") + protected List annotations = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") + protected Reference second; + + public DefaultAnnotatedRelationshipElement() {} + + @Override + public String toString() { + return "DefaultAnnotatedRelationshipElement{" + + "annotations='" + + annotations + + "'," + + "first='" + + first + + "'," + + "second='" + + second + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.annotations, + this.first, + this.second, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; + return Objects.equals(this.annotations, other.annotations) + && Objects.equals(this.first, other.first) + && Objects.equals(this.second, other.second) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getAnnotations() { + return annotations; + } + + @Override + public void setAnnotations(List annotations) { + this.annotations = annotations; + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. */ + public static class Builder + extends AnnotatedRelationshipElementBuilder { @Override - public int hashCode() { - return Objects.hash(this.annotations, - this.first, - this.second, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; - return Objects.equals(this.annotations, other.annotations) && - Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getAnnotations() { - return annotations; - } - - @Override - public void setAnnotations(List annotations) { - this.annotations = annotations; - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. - */ - public static class Builder extends AnnotatedRelationshipElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAnnotatedRelationshipElement newBuildingInstance() { - return new DefaultAnnotatedRelationshipElement(); - } + protected DefaultAnnotatedRelationshipElement newBuildingInstance() { + return new DefaultAnnotatedRelationshipElement(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index 8bdbb6bd9..2547614c8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -26,235 +29,251 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell - *

- * An asset administration shell. + * + *

An asset administration shell. */ - @IRI("aas:AssetAdministrationShell") public class DefaultAssetAdministrationShell implements AssetAdministrationShell { - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") - protected AssetInformation assetInformation; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") - protected Reference derivedFrom; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") - protected List submodels = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultAssetAdministrationShell() { - } - - @Override - public String toString() { - return "DefaultAssetAdministrationShell{" - + "derivedFrom='" + derivedFrom + "'," - + "assetInformation='" + assetInformation + "'," - + "submodels='" + submodels + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "administration='" + administration + "'," - + "id='" + id + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.derivedFrom, - this.assetInformation, - this.submodels, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; - return Objects.equals(this.derivedFrom, other.derivedFrom) && - Objects.equals(this.assetInformation, other.assetInformation) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public Reference getDerivedFrom() { - return derivedFrom; - } - - @Override - public void setDerivedFrom(Reference derivedFrom) { - this.derivedFrom = derivedFrom; - } - - @Override - public AssetInformation getAssetInformation() { - return assetInformation; - } - - @Override - public void setAssetInformation(AssetInformation assetInformation) { - this.assetInformation = assetInformation; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") + protected AssetInformation assetInformation; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") + protected Reference derivedFrom; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") + protected List submodels = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultAssetAdministrationShell() {} + + @Override + public String toString() { + return "DefaultAssetAdministrationShell{" + + "derivedFrom='" + + derivedFrom + + "'," + + "assetInformation='" + + assetInformation + + "'," + + "submodels='" + + submodels + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "administration='" + + administration + + "'," + + "id='" + + id + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.derivedFrom, + this.assetInformation, + this.submodels, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; + return Objects.equals(this.derivedFrom, other.derivedFrom) + && Objects.equals(this.assetInformation, other.assetInformation) + && Objects.equals(this.submodels, other.submodels) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.administration, other.administration) + && Objects.equals(this.id, other.id) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions); } + } + + @Override + public Reference getDerivedFrom() { + return derivedFrom; + } + + @Override + public void setDerivedFrom(Reference derivedFrom) { + this.derivedFrom = derivedFrom; + } + + @Override + public AssetInformation getAssetInformation() { + return assetInformation; + } + + @Override + public void setAssetInformation(AssetInformation assetInformation) { + this.assetInformation = assetInformation; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** This builder class can be used to construct a DefaultAssetAdministrationShell bean. */ + public static class Builder + extends AssetAdministrationShellBuilder { @Override - public void setCategory(String category) { - this.category = category; + protected Builder getSelf() { + return this; } @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShell bean. - */ - public static class Builder extends AssetAdministrationShellBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShell newBuildingInstance() { - return new DefaultAssetAdministrationShell(); - } + protected DefaultAssetAdministrationShell newBuildingInstance() { + return new DefaultAssetAdministrationShell(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java index 5e8f36410..99c03a530 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; @@ -26,203 +29,218 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellDescriptorBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor - * */ - @IRI("aas:AssetAdministrationShellDescriptor") -public class DefaultAssetAdministrationShellDescriptor implements AssetAdministrationShellDescriptor { - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") - protected LangStringTextType description; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") - protected LangStringNameType displayName; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") - protected Reference globalAssetId; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") - protected String identification; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") - protected SubmodelDescriptor submodelDescriptors; - - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - public DefaultAssetAdministrationShellDescriptor() { - } - - @Override - public String toString() { - return "DefaultAssetAdministrationShellDescriptor{" - + "administration='" + administration + "'," - + "description='" + description + "'," - + "displayName='" + displayName + "'," - + "globalAssetId='" + globalAssetId + "'," - + "idShort='" + idShort + "'," - + "identification='" + identification + "'," - + "specificAssetIds='" + specificAssetIds + "'," - + "submodelDescriptors='" + submodelDescriptors + "'," - + "endpoints='" + endpoints + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.administration, - this.description, - this.displayName, - this.globalAssetId, - this.idShort, - this.identification, - this.specificAssetIds, - this.submodelDescriptors, - this.endpoints); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShellDescriptor other = (DefaultAssetAdministrationShellDescriptor) obj; - return Objects.equals(this.administration, other.administration) && - Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.identification, other.identification) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.submodelDescriptors, other.submodelDescriptors) && - Objects.equals(this.endpoints, other.endpoints); - } - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public LangStringTextType getDescription() { - return description; - } - - @Override - public void setDescription(LangStringTextType description) { - this.description = description; - } - - @Override - public LangStringNameType getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(LangStringNameType displayName) { - this.displayName = displayName; - } - - @Override - public Reference getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(Reference globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getIdentification() { - return identification; - } - - @Override - public void setIdentification(String identification) { - this.identification = identification; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public SubmodelDescriptor getSubmodelDescriptors() { - return submodelDescriptors; - } - - @Override - public void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors) { - this.submodelDescriptors = submodelDescriptors; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. - */ - public static class Builder extends AssetAdministrationShellDescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { - return new DefaultAssetAdministrationShellDescriptor(); - } - } +public class DefaultAssetAdministrationShellDescriptor + implements AssetAdministrationShellDescriptor { + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") + protected LangStringTextType description; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + protected LangStringNameType displayName; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + protected Reference globalAssetId; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") + protected String identification; + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") + protected SubmodelDescriptor submodelDescriptors; + + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + public DefaultAssetAdministrationShellDescriptor() {} + + @Override + public String toString() { + return "DefaultAssetAdministrationShellDescriptor{" + + "administration='" + + administration + + "'," + + "description='" + + description + + "'," + + "displayName='" + + displayName + + "'," + + "globalAssetId='" + + globalAssetId + + "'," + + "idShort='" + + idShort + + "'," + + "identification='" + + identification + + "'," + + "specificAssetIds='" + + specificAssetIds + + "'," + + "submodelDescriptors='" + + submodelDescriptors + + "'," + + "endpoints='" + + endpoints + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.administration, + this.description, + this.displayName, + this.globalAssetId, + this.idShort, + this.identification, + this.specificAssetIds, + this.submodelDescriptors, + this.endpoints); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShellDescriptor other = + (DefaultAssetAdministrationShellDescriptor) obj; + return Objects.equals(this.administration, other.administration) + && Objects.equals(this.description, other.description) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.globalAssetId, other.globalAssetId) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.identification, other.identification) + && Objects.equals(this.specificAssetIds, other.specificAssetIds) + && Objects.equals(this.submodelDescriptors, other.submodelDescriptors) + && Objects.equals(this.endpoints, other.endpoints); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public LangStringTextType getDescription() { + return description; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description = description; + } + + @Override + public LangStringNameType getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName = displayName; + } + + @Override + public Reference getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(Reference globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getIdentification() { + return identification; + } + + @Override + public void setIdentification(String identification) { + this.identification = identification; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public SubmodelDescriptor getSubmodelDescriptors() { + return submodelDescriptors; + } + + @Override + public void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors) { + this.submodelDescriptors = submodelDescriptors; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. + */ + public static class Builder + extends AssetAdministrationShellDescriptorBuilder< + DefaultAssetAdministrationShellDescriptor, Builder> { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { + return new DefaultAssetAdministrationShellDescriptor(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java index 50f417f34..1c82a92dc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; @@ -22,108 +25,111 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellEnvironmentBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment - *

- * Container for the sets of different identifiables. + * + *

Container for the sets of different identifiables. */ - @IRI("aas:AssetAdministrationShellEnvironment") -public class DefaultAssetAdministrationShellEnvironment implements AssetAdministrationShellEnvironment { - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") - protected List assetAdministrationShells = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") - protected List conceptDescriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") - protected List submodels = new ArrayList<>(); - - public DefaultAssetAdministrationShellEnvironment() { - } - - @Override - public String toString() { - return "DefaultAssetAdministrationShellEnvironment{" - + "assetAdministrationShells='" + assetAdministrationShells + "'," - + "conceptDescriptions='" + conceptDescriptions + "'," - + "submodels='" + submodels + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.assetAdministrationShells, - this.conceptDescriptions, - this.submodels); +public class DefaultAssetAdministrationShellEnvironment + implements AssetAdministrationShellEnvironment { + + @IRI( + "https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") + protected List assetAdministrationShells = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") + protected List conceptDescriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") + protected List submodels = new ArrayList<>(); + + public DefaultAssetAdministrationShellEnvironment() {} + + @Override + public String toString() { + return "DefaultAssetAdministrationShellEnvironment{" + + "assetAdministrationShells='" + + assetAdministrationShells + + "'," + + "conceptDescriptions='" + + conceptDescriptions + + "'," + + "submodels='" + + submodels + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.assetAdministrationShells, this.conceptDescriptions, this.submodels); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShellEnvironment other = + (DefaultAssetAdministrationShellEnvironment) obj; + return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) + && Objects.equals(this.conceptDescriptions, other.conceptDescriptions) + && Objects.equals(this.submodels, other.submodels); } + } + + @Override + public List getAssetAdministrationShells() { + return assetAdministrationShells; + } + + @Override + public void setAssetAdministrationShells( + List assetAdministrationShells) { + this.assetAdministrationShells = assetAdministrationShells; + } + + @Override + public List getConceptDescriptions() { + return conceptDescriptions; + } + + @Override + public void setConceptDescriptions(List conceptDescriptions) { + this.conceptDescriptions = conceptDescriptions; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShellEnvironment bean. + */ + public static class Builder + extends AssetAdministrationShellEnvironmentBuilder< + DefaultAssetAdministrationShellEnvironment, Builder> { @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShellEnvironment other = (DefaultAssetAdministrationShellEnvironment) obj; - return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && - Objects.equals(this.conceptDescriptions, other.conceptDescriptions) && - Objects.equals(this.submodels, other.submodels); - } + protected Builder getSelf() { + return this; } @Override - public List getAssetAdministrationShells() { - return assetAdministrationShells; - } - - @Override - public void setAssetAdministrationShells(List assetAdministrationShells) { - this.assetAdministrationShells = assetAdministrationShells; - } - - @Override - public List getConceptDescriptions() { - return conceptDescriptions; - } - - @Override - public void setConceptDescriptions(List conceptDescriptions) { - this.conceptDescriptions = conceptDescriptions; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShellEnvironment bean. - */ - public static class Builder extends AssetAdministrationShellEnvironmentBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShellEnvironment newBuildingInstance() { - return new DefaultAssetAdministrationShellEnvironment(); - } + protected DefaultAssetAdministrationShellEnvironment newBuildingInstance() { + return new DefaultAssetAdministrationShellEnvironment(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index d30673b6e..49abc332f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; @@ -22,140 +25,142 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetInformationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation - *

- * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is + * + *

In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ - @IRI("aas:AssetInformation") public class DefaultAssetInformation implements AssetInformation { - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") - protected AssetKind assetKind; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") - protected String assetType; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") - protected Resource defaultThumbnail; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - public DefaultAssetInformation() { - } - - @Override - public String toString() { - return "DefaultAssetInformation{" - + "assetKind='" + assetKind + "'," - + "globalAssetId='" + globalAssetId + "'," - + "specificAssetIds='" + specificAssetIds + "'," - + "assetType='" + assetType + "'," - + "defaultThumbnail='" + defaultThumbnail + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetInformation other = (DefaultAssetInformation) obj; - return Objects.equals(this.assetKind, other.assetKind) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.assetType, other.assetType) && - Objects.equals(this.defaultThumbnail, other.defaultThumbnail); - } - } - - @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") + protected AssetKind assetKind; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") + protected String assetType; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") + protected Resource defaultThumbnail; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + public DefaultAssetInformation() {} + + @Override + public String toString() { + return "DefaultAssetInformation{" + + "assetKind='" + + assetKind + + "'," + + "globalAssetId='" + + globalAssetId + + "'," + + "specificAssetIds='" + + specificAssetIds + + "'," + + "assetType='" + + assetType + + "'," + + "defaultThumbnail='" + + defaultThumbnail + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.assetKind, + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetInformation other = (DefaultAssetInformation) obj; + return Objects.equals(this.assetKind, other.assetKind) + && Objects.equals(this.globalAssetId, other.globalAssetId) + && Objects.equals(this.specificAssetIds, other.specificAssetIds) + && Objects.equals(this.assetType, other.assetType) + && Objects.equals(this.defaultThumbnail, other.defaultThumbnail); } + } + + @Override + public AssetKind getAssetKind() { + return assetKind; + } + + @Override + public void setAssetKind(AssetKind assetKind) { + this.assetKind = assetKind; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public String getAssetType() { + return assetType; + } + + @Override + public void setAssetType(String assetType) { + this.assetType = assetType; + } + + @Override + public Resource getDefaultThumbnail() { + return defaultThumbnail; + } + + @Override + public void setDefaultThumbnail(Resource defaultThumbnail) { + this.defaultThumbnail = defaultThumbnail; + } + + /** This builder class can be used to construct a DefaultAssetInformation bean. */ + public static class Builder extends AssetInformationBuilder { @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; + protected Builder getSelf() { + return this; } @Override - public String getAssetType() { - return assetType; - } - - @Override - public void setAssetType(String assetType) { - this.assetType = assetType; - } - - @Override - public Resource getDefaultThumbnail() { - return defaultThumbnail; - } - - @Override - public void setDefaultThumbnail(Resource defaultThumbnail) { - this.defaultThumbnail = defaultThumbnail; - } - - /** - * This builder class can be used to construct a DefaultAssetInformation bean. - */ - public static class Builder extends AssetInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetInformation newBuildingInstance() { - return new DefaultAssetInformation(); - } + protected DefaultAssetInformation newBuildingInstance() { + return new DefaultAssetInformation(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java index b87b63bd3..4629c5ae3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -15,93 +15,88 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult */ @IRI("aas:BaseOperationResult") public class DefaultBaseOperationResult implements BaseOperationResult { - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") - protected ExecutionState executionState; - - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") - protected boolean success; - - public DefaultBaseOperationResult() { + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") + protected ExecutionState executionState; + + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") + protected boolean success; + + public DefaultBaseOperationResult() {} + + @Override + public String toString() { + return "DefaultBaseOperationResult{" + + "executionState='" + + executionState + + "'," + + "success='" + + success + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.executionState, this.success); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; + return Objects.equals(this.executionState, other.executionState) + && Objects.equals(this.success, other.success); } + } - @Override - public String toString() { - return "DefaultBaseOperationResult{" - + "executionState='" + executionState + "'," - + "success='" + success + "'," - + "}"; - } + @Override + public ExecutionState getExecutionState() { + return executionState; + } - @Override - public int hashCode() { - return Objects.hash(this.executionState, - this.success); - } + @Override + public void setExecutionState(ExecutionState executionState) { + this.executionState = executionState; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; - return Objects.equals(this.executionState, other.executionState) && - Objects.equals(this.success, other.success); - } - } + @Override + public boolean getSuccess() { + return success; + } - @Override - public ExecutionState getExecutionState() { - return executionState; - } + @Override + public void setSuccess(boolean success) { + this.success = success; + } - @Override - public void setExecutionState(ExecutionState executionState) { - this.executionState = executionState; - } + /** This builder class can be used to construct a DefaultBaseOperationResult bean. */ + public static class Builder + extends BaseOperationResultBuilder { @Override - public boolean getSuccess() { - return success; + protected Builder getSelf() { + return this; } @Override - public void setSuccess(boolean success) { - this.success = success; - } - - /** - * This builder class can be used to construct a DefaultBaseOperationResult bean. - */ - public static class Builder extends BaseOperationResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBaseOperationResult newBuildingInstance() { - return new DefaultBaseOperationResult(); - } + protected DefaultBaseOperationResult newBuildingInstance() { + return new DefaultBaseOperationResult(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index a5d6fb049..3e61f3f9c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -27,331 +30,358 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BasicEventElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement - *

- * A basic event element. + * + *

A basic event element. */ - @IRI("aas:BasicEventElement") public class DefaultBasicEventElement implements BasicEventElement { - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") - protected Direction direction; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") - protected String lastUpdate; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") - protected String maxInterval; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") - protected Reference messageBroker; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") - protected String messageTopic; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") - protected String minInterval; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") - protected Reference observed; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") - protected StateOfEvent state; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultBasicEventElement() { - } - - @Override - public String toString() { - return "DefaultBasicEventElement{" - + "observed='" + observed + "'," - + "direction='" + direction + "'," - + "state='" + state + "'," - + "messageTopic='" + messageTopic + "'," - + "messageBroker='" + messageBroker + "'," - + "lastUpdate='" + lastUpdate + "'," - + "minInterval='" + minInterval + "'," - + "maxInterval='" + maxInterval + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBasicEventElement other = (DefaultBasicEventElement) obj; - return Objects.equals(this.observed, other.observed) && - Objects.equals(this.direction, other.direction) && - Objects.equals(this.state, other.state) && - Objects.equals(this.messageTopic, other.messageTopic) && - Objects.equals(this.messageBroker, other.messageBroker) && - Objects.equals(this.lastUpdate, other.lastUpdate) && - Objects.equals(this.minInterval, other.minInterval) && - Objects.equals(this.maxInterval, other.maxInterval) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getObserved() { - return observed; - } - - @Override - public void setObserved(Reference observed) { - this.observed = observed; - } - - @Override - public Direction getDirection() { - return direction; - } - - @Override - public void setDirection(Direction direction) { - this.direction = direction; - } - - @Override - public StateOfEvent getState() { - return state; - } - - @Override - public void setState(StateOfEvent state) { - this.state = state; - } - - @Override - public String getMessageTopic() { - return messageTopic; - } - - @Override - public void setMessageTopic(String messageTopic) { - this.messageTopic = messageTopic; - } - - @Override - public Reference getMessageBroker() { - return messageBroker; - } - - @Override - public void setMessageBroker(Reference messageBroker) { - this.messageBroker = messageBroker; - } - - @Override - public String getLastUpdate() { - return lastUpdate; - } - - @Override - public void setLastUpdate(String lastUpdate) { - this.lastUpdate = lastUpdate; - } - - @Override - public String getMinInterval() { - return minInterval; - } - - @Override - public void setMinInterval(String minInterval) { - this.minInterval = minInterval; - } - - @Override - public String getMaxInterval() { - return maxInterval; - } - - @Override - public void setMaxInterval(String maxInterval) { - this.maxInterval = maxInterval; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultBasicEventElement bean. - */ - public static class Builder extends BasicEventElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBasicEventElement newBuildingInstance() { - return new DefaultBasicEventElement(); - } - } + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") + protected Direction direction; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") + protected String lastUpdate; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") + protected String maxInterval; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") + protected Reference messageBroker; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") + protected String messageTopic; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") + protected String minInterval; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") + protected Reference observed; + + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") + protected StateOfEvent state; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultBasicEventElement() {} + + @Override + public String toString() { + return "DefaultBasicEventElement{" + + "observed='" + + observed + + "'," + + "direction='" + + direction + + "'," + + "state='" + + state + + "'," + + "messageTopic='" + + messageTopic + + "'," + + "messageBroker='" + + messageBroker + + "'," + + "lastUpdate='" + + lastUpdate + + "'," + + "minInterval='" + + minInterval + + "'," + + "maxInterval='" + + maxInterval + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.observed, + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBasicEventElement other = (DefaultBasicEventElement) obj; + return Objects.equals(this.observed, other.observed) + && Objects.equals(this.direction, other.direction) + && Objects.equals(this.state, other.state) + && Objects.equals(this.messageTopic, other.messageTopic) + && Objects.equals(this.messageBroker, other.messageBroker) + && Objects.equals(this.lastUpdate, other.lastUpdate) + && Objects.equals(this.minInterval, other.minInterval) + && Objects.equals(this.maxInterval, other.maxInterval) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getObserved() { + return observed; + } + + @Override + public void setObserved(Reference observed) { + this.observed = observed; + } + + @Override + public Direction getDirection() { + return direction; + } + + @Override + public void setDirection(Direction direction) { + this.direction = direction; + } + + @Override + public StateOfEvent getState() { + return state; + } + + @Override + public void setState(StateOfEvent state) { + this.state = state; + } + + @Override + public String getMessageTopic() { + return messageTopic; + } + + @Override + public void setMessageTopic(String messageTopic) { + this.messageTopic = messageTopic; + } + + @Override + public Reference getMessageBroker() { + return messageBroker; + } + + @Override + public void setMessageBroker(Reference messageBroker) { + this.messageBroker = messageBroker; + } + + @Override + public String getLastUpdate() { + return lastUpdate; + } + + @Override + public void setLastUpdate(String lastUpdate) { + this.lastUpdate = lastUpdate; + } + + @Override + public String getMinInterval() { + return minInterval; + } + + @Override + public void setMinInterval(String minInterval) { + this.minInterval = minInterval; + } + + @Override + public String getMaxInterval() { + return maxInterval; + } + + @Override + public void setMaxInterval(String maxInterval) { + this.maxInterval = maxInterval; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultBasicEventElement bean. */ + public static class Builder extends BasicEventElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBasicEventElement newBuildingInstance() { + return new DefaultBasicEventElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index b65c66639..285fc6b08 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -15,6 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,237 +29,251 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BlobBuilder; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob - *

- * A 'Blob' is a data element that represents a file that is contained with its source code in the - * value attribute. + * + *

A 'Blob' is a data element that represents a file that is contained with its source code in + * the value attribute. */ - @IRI("aas:Blob") public class DefaultBlob implements Blob { - @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/2/Blob/value") - protected byte[] value; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultBlob() { - } - - @Override - public String toString() { - return "DefaultBlob{" - + "value='" + value + "'," - + "contentType='" + contentType + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(Arrays.hashCode(this.value), - this.contentType, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBlob other = (DefaultBlob) obj; - return Arrays.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public byte[] getValue() { - return value; - } - - @Override - public void setValue(byte[] value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/2/Blob/value") + protected byte[] value; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultBlob() {} + + @Override + public String toString() { + return "DefaultBlob{" + + "value='" + + value + + "'," + + "contentType='" + + contentType + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + Arrays.hashCode(this.value), + this.contentType, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBlob other = (DefaultBlob) obj; + return Arrays.equals(this.value, other.value) + && Objects.equals(this.contentType, other.contentType) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public byte[] getValue() { + return value; + } + + @Override + public void setValue(byte[] value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultBlob bean. */ + public static class Builder extends BlobBuilder { @Override - public List getQualifiers() { - return qualifiers; + protected Builder getSelf() { + return this; } @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultBlob bean. - */ - public static class Builder extends BlobBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBlob newBuildingInstance() { - return new DefaultBlob(); - } + protected DefaultBlob newBuildingInstance() { + return new DefaultBlob(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index b766b56a3..2982c0d78 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,204 +28,215 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.CapabilityBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability - *

- * A capability is the implementation-independent description of the potential of an asset to + * + *

A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ - @IRI("aas:Capability") public class DefaultCapability implements Capability { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultCapability() { - } - - @Override - public String toString() { - return "DefaultCapability{" - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultCapability other = (DefaultCapability) obj; - return Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultCapability bean. - */ - public static class Builder extends CapabilityBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultCapability newBuildingInstance() { - return new DefaultCapability(); - } + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultCapability() {} + + @Override + public String toString() { + return "DefaultCapability{" + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultCapability other = (DefaultCapability) obj; + return Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultCapability bean. */ + public static class Builder extends CapabilityBuilder { + + @Override + protected Builder getSelf() { + return this; } + + @Override + protected DefaultCapability newBuildingInstance() { + return new DefaultCapability(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index 06c665c25..4d20981c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -25,204 +28,216 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ConceptDescriptionBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription - *

- * The semantics of a property or other elements that may have a semantic description is defined by - * a concept description. + * + *

The semantics of a property or other elements that may have a semantic description is defined + * by a concept description. */ - @IRI("aas:ConceptDescription") public class DefaultConceptDescription implements ConceptDescription { - @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") - protected List isCaseOfs = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultConceptDescription() { - } - - @Override - public String toString() { - return "DefaultConceptDescription{" - + "isCaseOfs='" + isCaseOfs + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "administration='" + administration + "'," - + "id='" + id + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.isCaseOfs, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultConceptDescription other = (DefaultConceptDescription) obj; - return Objects.equals(this.isCaseOfs, other.isCaseOfs) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public List getIsCaseOfs() { - return isCaseOfs; - } - - @Override - public void setIsCaseOfs(List isCaseOfs) { - this.isCaseOfs = isCaseOfs; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** - * This builder class can be used to construct a DefaultConceptDescription bean. - */ - public static class Builder extends ConceptDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultConceptDescription newBuildingInstance() { - return new DefaultConceptDescription(); - } - } + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") + protected List isCaseOfs = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultConceptDescription() {} + + @Override + public String toString() { + return "DefaultConceptDescription{" + + "isCaseOfs='" + + isCaseOfs + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "administration='" + + administration + + "'," + + "id='" + + id + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.isCaseOfs, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultConceptDescription other = (DefaultConceptDescription) obj; + return Objects.equals(this.isCaseOfs, other.isCaseOfs) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.administration, other.administration) + && Objects.equals(this.id, other.id) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getIsCaseOfs() { + return isCaseOfs; + } + + @Override + public void setIsCaseOfs(List isCaseOfs) { + this.isCaseOfs = isCaseOfs; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** This builder class can be used to construct a DefaultConceptDescription bean. */ + public static class Builder + extends ConceptDescriptionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultConceptDescription newBuildingInstance() { + return new DefaultConceptDescription(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index 1b088fbf0..a4175563e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -26,253 +29,270 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DataSpecificationIec61360Builder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 - *

- * Content of data specification template for concept descriptions for properties, values and value - * lists conformant to IEC 61360. + * + *

Content of data specification template for concept descriptions for properties, values and + * value lists conformant to IEC 61360. */ - @IRI("aas:DataSpecificationIec61360") public class DefaultDataSpecificationIec61360 implements DataSpecificationIec61360 { - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") - protected DataTypeIec61360 dataType; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") - protected List definitions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") - protected LevelType levelType; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") - protected List preferredNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") - protected List shortNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") - protected String sourceOfDefinition; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") - protected String symbol; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") - protected String unit; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") - protected Reference unitId; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") - protected String valueFormat; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") - protected ValueList valueList; - - public DefaultDataSpecificationIec61360() { - } - - @Override - public String toString() { - return "DefaultDataSpecificationIec61360{" - + "preferredNames='" + preferredNames + "'," - + "shortNames='" + shortNames + "'," - + "unit='" + unit + "'," - + "unitId='" + unitId + "'," - + "sourceOfDefinition='" + sourceOfDefinition + "'," - + "symbol='" + symbol + "'," - + "dataType='" + dataType + "'," - + "definitions='" + definitions + "'," - + "valueFormat='" + valueFormat + "'," - + "valueList='" + valueList + "'," - + "value='" + value + "'," - + "levelType='" + levelType + "'," - + "}"; + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") + protected DataTypeIec61360 dataType; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") + protected List definitions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") + protected LevelType levelType; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") + protected List preferredNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") + protected List shortNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") + protected String sourceOfDefinition; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") + protected String symbol; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") + protected String unit; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") + protected Reference unitId; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") + protected String valueFormat; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") + protected ValueList valueList; + + public DefaultDataSpecificationIec61360() {} + + @Override + public String toString() { + return "DefaultDataSpecificationIec61360{" + + "preferredNames='" + + preferredNames + + "'," + + "shortNames='" + + shortNames + + "'," + + "unit='" + + unit + + "'," + + "unitId='" + + unitId + + "'," + + "sourceOfDefinition='" + + sourceOfDefinition + + "'," + + "symbol='" + + symbol + + "'," + + "dataType='" + + dataType + + "'," + + "definitions='" + + definitions + + "'," + + "valueFormat='" + + valueFormat + + "'," + + "valueList='" + + valueList + + "'," + + "value='" + + value + + "'," + + "levelType='" + + levelType + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.preferredNames, + this.shortNames, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definitions, + this.valueFormat, + this.valueList, + this.value, + this.levelType); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; + return Objects.equals(this.preferredNames, other.preferredNames) + && Objects.equals(this.shortNames, other.shortNames) + && Objects.equals(this.unit, other.unit) + && Objects.equals(this.unitId, other.unitId) + && Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) + && Objects.equals(this.symbol, other.symbol) + && Objects.equals(this.dataType, other.dataType) + && Objects.equals(this.definitions, other.definitions) + && Objects.equals(this.valueFormat, other.valueFormat) + && Objects.equals(this.valueList, other.valueList) + && Objects.equals(this.value, other.value) + && Objects.equals(this.levelType, other.levelType); } + } + + @Override + public List getPreferredNames() { + return preferredNames; + } + + @Override + public void setPreferredNames(List preferredNames) { + this.preferredNames = preferredNames; + } + + @Override + public List getShortNames() { + return shortNames; + } + + @Override + public void setShortNames(List shortNames) { + this.shortNames = shortNames; + } + + @Override + public String getUnit() { + return unit; + } + + @Override + public void setUnit(String unit) { + this.unit = unit; + } + + @Override + public Reference getUnitId() { + return unitId; + } + + @Override + public void setUnitId(Reference unitId) { + this.unitId = unitId; + } + + @Override + public String getSourceOfDefinition() { + return sourceOfDefinition; + } + + @Override + public void setSourceOfDefinition(String sourceOfDefinition) { + this.sourceOfDefinition = sourceOfDefinition; + } + + @Override + public String getSymbol() { + return symbol; + } + + @Override + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + @Override + public DataTypeIec61360 getDataType() { + return dataType; + } + + @Override + public void setDataType(DataTypeIec61360 dataType) { + this.dataType = dataType; + } + + @Override + public List getDefinitions() { + return definitions; + } + + @Override + public void setDefinitions(List definitions) { + this.definitions = definitions; + } + + @Override + public String getValueFormat() { + return valueFormat; + } + + @Override + public void setValueFormat(String valueFormat) { + this.valueFormat = valueFormat; + } + + @Override + public ValueList getValueList() { + return valueList; + } + + @Override + public void setValueList(ValueList valueList) { + this.valueList = valueList; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public LevelType getLevelType() { + return levelType; + } + + @Override + public void setLevelType(LevelType levelType) { + this.levelType = levelType; + } + + /** This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. */ + public static class Builder + extends DataSpecificationIec61360Builder { @Override - public int hashCode() { - return Objects.hash(this.preferredNames, - this.shortNames, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definitions, - this.valueFormat, - this.valueList, - this.value, - this.levelType); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; - return Objects.equals(this.preferredNames, other.preferredNames) && - Objects.equals(this.shortNames, other.shortNames) && - Objects.equals(this.unit, other.unit) && - Objects.equals(this.unitId, other.unitId) && - Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && - Objects.equals(this.symbol, other.symbol) && - Objects.equals(this.dataType, other.dataType) && - Objects.equals(this.definitions, other.definitions) && - Objects.equals(this.valueFormat, other.valueFormat) && - Objects.equals(this.valueList, other.valueList) && - Objects.equals(this.value, other.value) && - Objects.equals(this.levelType, other.levelType); - } - } - - @Override - public List getPreferredNames() { - return preferredNames; - } - - @Override - public void setPreferredNames(List preferredNames) { - this.preferredNames = preferredNames; - } - - @Override - public List getShortNames() { - return shortNames; - } - - @Override - public void setShortNames(List shortNames) { - this.shortNames = shortNames; - } - - @Override - public String getUnit() { - return unit; - } - - @Override - public void setUnit(String unit) { - this.unit = unit; - } - - @Override - public Reference getUnitId() { - return unitId; - } - - @Override - public void setUnitId(Reference unitId) { - this.unitId = unitId; - } - - @Override - public String getSourceOfDefinition() { - return sourceOfDefinition; - } - - @Override - public void setSourceOfDefinition(String sourceOfDefinition) { - this.sourceOfDefinition = sourceOfDefinition; - } - - @Override - public String getSymbol() { - return symbol; - } - - @Override - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - @Override - public DataTypeIec61360 getDataType() { - return dataType; - } - - @Override - public void setDataType(DataTypeIec61360 dataType) { - this.dataType = dataType; - } - - @Override - public List getDefinitions() { - return definitions; - } - - @Override - public void setDefinitions(List definitions) { - this.definitions = definitions; - } - - @Override - public String getValueFormat() { - return valueFormat; - } - - @Override - public void setValueFormat(String valueFormat) { - this.valueFormat = valueFormat; - } - - @Override - public ValueList getValueList() { - return valueList; - } - - @Override - public void setValueList(ValueList valueList) { - this.valueList = valueList; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public LevelType getLevelType() { - return levelType; - } - - @Override - public void setLevelType(LevelType levelType) { - this.levelType = levelType; - } - - /** - * This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. - */ - public static class Builder extends DataSpecificationIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultDataSpecificationIec61360 newBuildingInstance() { - return new DefaultDataSpecificationIec61360(); - } + protected DefaultDataSpecificationIec61360 newBuildingInstance() { + return new DefaultDataSpecificationIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java index 4495ba9f9..8c2d26dbf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -15,79 +15,68 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor */ @IRI("aas:Descriptor") public class DefaultDescriptor implements Descriptor { - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - public DefaultDescriptor() { + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + public DefaultDescriptor() {} + + @Override + public String toString() { + return "DefaultDescriptor{" + "endpoints='" + endpoints + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.endpoints); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDescriptor other = (DefaultDescriptor) obj; + return Objects.equals(this.endpoints, other.endpoints); } + } - @Override - public String toString() { - return "DefaultDescriptor{" - + "endpoints='" + endpoints + "'," - + "}"; - } + @Override + public List getEndpoints() { + return endpoints; + } - @Override - public int hashCode() { - return Objects.hash(this.endpoints); - } + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDescriptor other = (DefaultDescriptor) obj; - return Objects.equals(this.endpoints, other.endpoints); - } - } + /** This builder class can be used to construct a DefaultDescriptor bean. */ + public static class Builder extends DescriptorBuilder { @Override - public List getEndpoints() { - return endpoints; + protected Builder getSelf() { + return this; } @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - /** - * This builder class can be used to construct a DefaultDescriptor bean. - */ - public static class Builder extends DescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultDescriptor newBuildingInstance() { - return new DefaultDescriptor(); - } + protected DefaultDescriptor newBuildingInstance() { + return new DefaultDescriptor(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index c4090115e..a34a02d68 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -15,96 +15,94 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EmbeddedDataSpecificationBuilder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification - *

- * Embed the content of a data specification. + * + *

Embed the content of a data specification. */ - @IRI("aas:EmbeddedDataSpecification") public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecification { - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") - protected Reference dataSpecification; - - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") - protected DataSpecificationContent dataSpecificationContent; - - public DefaultEmbeddedDataSpecification() { + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") + protected Reference dataSpecification; + + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") + protected DataSpecificationContent dataSpecificationContent; + + public DefaultEmbeddedDataSpecification() {} + + @Override + public String toString() { + return "DefaultEmbeddedDataSpecification{" + + "dataSpecification='" + + dataSpecification + + "'," + + "dataSpecificationContent='" + + dataSpecificationContent + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.dataSpecification, this.dataSpecificationContent); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; + return Objects.equals(this.dataSpecification, other.dataSpecification) + && Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); } + } - @Override - public String toString() { - return "DefaultEmbeddedDataSpecification{" - + "dataSpecification='" + dataSpecification + "'," - + "dataSpecificationContent='" + dataSpecificationContent + "'," - + "}"; - } + @Override + public Reference getDataSpecification() { + return dataSpecification; + } - @Override - public int hashCode() { - return Objects.hash(this.dataSpecification, - this.dataSpecificationContent); - } + @Override + public void setDataSpecification(Reference dataSpecification) { + this.dataSpecification = dataSpecification; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; - return Objects.equals(this.dataSpecification, other.dataSpecification) && - Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); - } - } + @Override + public DataSpecificationContent getDataSpecificationContent() { + return dataSpecificationContent; + } - @Override - public Reference getDataSpecification() { - return dataSpecification; - } + @Override + public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + this.dataSpecificationContent = dataSpecificationContent; + } - @Override - public void setDataSpecification(Reference dataSpecification) { - this.dataSpecification = dataSpecification; - } + /** This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. */ + public static class Builder + extends EmbeddedDataSpecificationBuilder { @Override - public DataSpecificationContent getDataSpecificationContent() { - return dataSpecificationContent; + protected Builder getSelf() { + return this; } @Override - public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - this.dataSpecificationContent = dataSpecificationContent; - } - - /** - * This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. - */ - public static class Builder extends EmbeddedDataSpecificationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEmbeddedDataSpecification newBuildingInstance() { - return new DefaultEmbeddedDataSpecification(); - } + protected DefaultEmbeddedDataSpecification newBuildingInstance() { + return new DefaultEmbeddedDataSpecification(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java index 853071ecb..52a6a8a9f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -15,93 +15,87 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EndpointBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint */ @IRI("aas:Endpoint") public class DefaultEndpoint implements Endpoint { - @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") - protected String _interface; - - @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") - protected ProtocolInformation protocolInformation; - - public DefaultEndpoint() { + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") + protected String _interface; + + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") + protected ProtocolInformation protocolInformation; + + public DefaultEndpoint() {} + + @Override + public String toString() { + return "DefaultEndpoint{" + + "_interface='" + + _interface + + "'," + + "protocolInformation='" + + protocolInformation + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this._interface, this.protocolInformation); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEndpoint other = (DefaultEndpoint) obj; + return Objects.equals(this._interface, other._interface) + && Objects.equals(this.protocolInformation, other.protocolInformation); } + } - @Override - public String toString() { - return "DefaultEndpoint{" - + "_interface='" + _interface + "'," - + "protocolInformation='" + protocolInformation + "'," - + "}"; - } + @Override + public String get_interface() { + return _interface; + } - @Override - public int hashCode() { - return Objects.hash(this._interface, - this.protocolInformation); - } + @Override + public void set_interface(String _interface) { + this._interface = _interface; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEndpoint other = (DefaultEndpoint) obj; - return Objects.equals(this._interface, other._interface) && - Objects.equals(this.protocolInformation, other.protocolInformation); - } - } + @Override + public ProtocolInformation getProtocolInformation() { + return protocolInformation; + } - @Override - public String get_interface() { - return _interface; - } + @Override + public void setProtocolInformation(ProtocolInformation protocolInformation) { + this.protocolInformation = protocolInformation; + } - @Override - public void set_interface(String _interface) { - this._interface = _interface; - } + /** This builder class can be used to construct a DefaultEndpoint bean. */ + public static class Builder extends EndpointBuilder { @Override - public ProtocolInformation getProtocolInformation() { - return protocolInformation; + protected Builder getSelf() { + return this; } @Override - public void setProtocolInformation(ProtocolInformation protocolInformation) { - this.protocolInformation = protocolInformation; - } - - /** - * This builder class can be used to construct a DefaultEndpoint bean. - */ - public static class Builder extends EndpointBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEndpoint newBuildingInstance() { - return new DefaultEndpoint(); - } + protected DefaultEndpoint newBuildingInstance() { + return new DefaultEndpoint(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index 476e09fbf..41c40e896 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -28,267 +31,286 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EntityBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity - *

- * An entity is a submodel element that is used to model entities. + * + *

An entity is a submodel element that is used to model entities. */ - @IRI("aas:Entity") public class DefaultEntity implements Entity { - @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") - protected EntityType entityType; - - @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Entity/statements") - protected List statements = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultEntity() { - } - - @Override - public String toString() { - return "DefaultEntity{" - + "statements='" + statements + "'," - + "entityType='" + entityType + "'," - + "globalAssetId='" + globalAssetId + "'," - + "specificAssetIds='" + specificAssetIds + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.statements, - this.entityType, - this.globalAssetId, - this.specificAssetIds, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEntity other = (DefaultEntity) obj; - return Objects.equals(this.statements, other.statements) && - Objects.equals(this.entityType, other.entityType) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getStatements() { - return statements; - } - - @Override - public void setStatements(List statements) { - this.statements = statements; - } - - @Override - public EntityType getEntityType() { - return entityType; - } - - @Override - public void setEntityType(EntityType entityType) { - this.entityType = entityType; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") + protected EntityType entityType; + + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") + protected List statements = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultEntity() {} + + @Override + public String toString() { + return "DefaultEntity{" + + "statements='" + + statements + + "'," + + "entityType='" + + entityType + + "'," + + "globalAssetId='" + + globalAssetId + + "'," + + "specificAssetIds='" + + specificAssetIds + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.statements, + this.entityType, + this.globalAssetId, + this.specificAssetIds, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEntity other = (DefaultEntity) obj; + return Objects.equals(this.statements, other.statements) + && Objects.equals(this.entityType, other.entityType) + && Objects.equals(this.globalAssetId, other.globalAssetId) + && Objects.equals(this.specificAssetIds, other.specificAssetIds) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getStatements() { + return statements; + } + + @Override + public void setStatements(List statements) { + this.statements = statements; + } + + @Override + public EntityType getEntityType() { + return entityType; + } + + @Override + public void setEntityType(EntityType entityType) { + this.entityType = entityType; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultEntity bean. */ + public static class Builder extends EntityBuilder { @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + protected Builder getSelf() { + return this; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultEntity bean. - */ - public static class Builder extends EntityBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEntity newBuildingInstance() { - return new DefaultEntity(); - } + protected DefaultEntity newBuildingInstance() { + return new DefaultEntity(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index 81456affe..a800ea110 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; @@ -22,107 +25,103 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EnvironmentBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment - *

- * Container for the sets of different identifiables. + * + *

Container for the sets of different identifiables. */ - @IRI("aas:Environment") public class DefaultEnvironment implements Environment { - @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") - protected List assetAdministrationShells = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") - protected List conceptDescriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") - protected List submodels = new ArrayList<>(); - - public DefaultEnvironment() { - } - - @Override - public String toString() { - return "DefaultEnvironment{" - + "assetAdministrationShells='" + assetAdministrationShells + "'," - + "submodels='" + submodels + "'," - + "conceptDescriptions='" + conceptDescriptions + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.assetAdministrationShells, - this.submodels, - this.conceptDescriptions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEnvironment other = (DefaultEnvironment) obj; - return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.conceptDescriptions, other.conceptDescriptions); - } - } - - @Override - public List getAssetAdministrationShells() { - return assetAdministrationShells; + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") + protected List assetAdministrationShells = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") + protected List conceptDescriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") + protected List submodels = new ArrayList<>(); + + public DefaultEnvironment() {} + + @Override + public String toString() { + return "DefaultEnvironment{" + + "assetAdministrationShells='" + + assetAdministrationShells + + "'," + + "submodels='" + + submodels + + "'," + + "conceptDescriptions='" + + conceptDescriptions + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEnvironment other = (DefaultEnvironment) obj; + return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) + && Objects.equals(this.submodels, other.submodels) + && Objects.equals(this.conceptDescriptions, other.conceptDescriptions); } + } + + @Override + public List getAssetAdministrationShells() { + return assetAdministrationShells; + } + + @Override + public void setAssetAdministrationShells( + List assetAdministrationShells) { + this.assetAdministrationShells = assetAdministrationShells; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public List getConceptDescriptions() { + return conceptDescriptions; + } + + @Override + public void setConceptDescriptions(List conceptDescriptions) { + this.conceptDescriptions = conceptDescriptions; + } + + /** This builder class can be used to construct a DefaultEnvironment bean. */ + public static class Builder extends EnvironmentBuilder { @Override - public void setAssetAdministrationShells(List assetAdministrationShells) { - this.assetAdministrationShells = assetAdministrationShells; + protected Builder getSelf() { + return this; } @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getConceptDescriptions() { - return conceptDescriptions; - } - - @Override - public void setConceptDescriptions(List conceptDescriptions) { - this.conceptDescriptions = conceptDescriptions; - } - - /** - * This builder class can be used to construct a DefaultEnvironment bean. - */ - public static class Builder extends EnvironmentBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEnvironment newBuildingInstance() { - return new DefaultEnvironment(); - } + protected DefaultEnvironment newBuildingInstance() { + return new DefaultEnvironment(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index e42221ba9..b0cedf709 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -15,191 +15,202 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Arrays; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EventPayloadBuilder; -import java.util.Arrays; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload - *

- * Defines the necessary information of an event instance sent out or received. + * + *

Defines the necessary information of an event instance sent out or received. */ - @IRI("aas:EventPayload") public class DefaultEventPayload implements EventPayload { - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") - protected Reference observableReference; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") - protected Reference observableSemanticId; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") - protected byte[] payload; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") - protected Reference source; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") - protected Reference sourceSemanticId; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") - protected Reference subjectId; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") - protected String timeStamp; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") - protected String topic; - - public DefaultEventPayload() { - } - - @Override - public String toString() { - return "DefaultEventPayload{" - + "source='" + source + "'," - + "sourceSemanticId='" + sourceSemanticId + "'," - + "observableReference='" + observableReference + "'," - + "observableSemanticId='" + observableSemanticId + "'," - + "topic='" + topic + "'," - + "subjectId='" + subjectId + "'," - + "timeStamp='" + timeStamp + "'," - + "payload='" + payload + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - Arrays.hashCode(this.payload)); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEventPayload other = (DefaultEventPayload) obj; - return Objects.equals(this.source, other.source) && - Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && - Objects.equals(this.observableReference, other.observableReference) && - Objects.equals(this.observableSemanticId, other.observableSemanticId) && - Objects.equals(this.topic, other.topic) && - Objects.equals(this.subjectId, other.subjectId) && - Objects.equals(this.timeStamp, other.timeStamp) && - Arrays.equals(this.payload, other.payload); - } - } - - @Override - public Reference getSource() { - return source; - } - - @Override - public void setSource(Reference source) { - this.source = source; - } - - @Override - public Reference getSourceSemanticId() { - return sourceSemanticId; - } - - @Override - public void setSourceSemanticId(Reference sourceSemanticId) { - this.sourceSemanticId = sourceSemanticId; - } - - @Override - public Reference getObservableReference() { - return observableReference; - } - - @Override - public void setObservableReference(Reference observableReference) { - this.observableReference = observableReference; - } - - @Override - public Reference getObservableSemanticId() { - return observableSemanticId; - } - - @Override - public void setObservableSemanticId(Reference observableSemanticId) { - this.observableSemanticId = observableSemanticId; - } - - @Override - public String getTopic() { - return topic; - } - - @Override - public void setTopic(String topic) { - this.topic = topic; - } - - @Override - public Reference getSubjectId() { - return subjectId; - } - - @Override - public void setSubjectId(Reference subjectId) { - this.subjectId = subjectId; - } - - @Override - public String getTimeStamp() { - return timeStamp; - } - - @Override - public void setTimeStamp(String timeStamp) { - this.timeStamp = timeStamp; - } - - @Override - public byte[] getPayload() { - return payload; - } - - @Override - public void setPayload(byte[] payload) { - this.payload = payload; - } - - /** - * This builder class can be used to construct a DefaultEventPayload bean. - */ - public static class Builder extends EventPayloadBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEventPayload newBuildingInstance() { - return new DefaultEventPayload(); - } - } + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") + protected Reference observableReference; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") + protected Reference observableSemanticId; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") + protected byte[] payload; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") + protected Reference source; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") + protected Reference sourceSemanticId; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") + protected Reference subjectId; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") + protected String timeStamp; + + @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") + protected String topic; + + public DefaultEventPayload() {} + + @Override + public String toString() { + return "DefaultEventPayload{" + + "source='" + + source + + "'," + + "sourceSemanticId='" + + sourceSemanticId + + "'," + + "observableReference='" + + observableReference + + "'," + + "observableSemanticId='" + + observableSemanticId + + "'," + + "topic='" + + topic + + "'," + + "subjectId='" + + subjectId + + "'," + + "timeStamp='" + + timeStamp + + "'," + + "payload='" + + payload + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.source, + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + Arrays.hashCode(this.payload)); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEventPayload other = (DefaultEventPayload) obj; + return Objects.equals(this.source, other.source) + && Objects.equals(this.sourceSemanticId, other.sourceSemanticId) + && Objects.equals(this.observableReference, other.observableReference) + && Objects.equals(this.observableSemanticId, other.observableSemanticId) + && Objects.equals(this.topic, other.topic) + && Objects.equals(this.subjectId, other.subjectId) + && Objects.equals(this.timeStamp, other.timeStamp) + && Arrays.equals(this.payload, other.payload); + } + } + + @Override + public Reference getSource() { + return source; + } + + @Override + public void setSource(Reference source) { + this.source = source; + } + + @Override + public Reference getSourceSemanticId() { + return sourceSemanticId; + } + + @Override + public void setSourceSemanticId(Reference sourceSemanticId) { + this.sourceSemanticId = sourceSemanticId; + } + + @Override + public Reference getObservableReference() { + return observableReference; + } + + @Override + public void setObservableReference(Reference observableReference) { + this.observableReference = observableReference; + } + + @Override + public Reference getObservableSemanticId() { + return observableSemanticId; + } + + @Override + public void setObservableSemanticId(Reference observableSemanticId) { + this.observableSemanticId = observableSemanticId; + } + + @Override + public String getTopic() { + return topic; + } + + @Override + public void setTopic(String topic) { + this.topic = topic; + } + + @Override + public Reference getSubjectId() { + return subjectId; + } + + @Override + public void setSubjectId(Reference subjectId) { + this.subjectId = subjectId; + } + + @Override + public String getTimeStamp() { + return timeStamp; + } + + @Override + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + @Override + public byte[] getPayload() { + return payload; + } + + @Override + public void setPayload(byte[] payload) { + this.payload = payload; + } + + /** This builder class can be used to construct a DefaultEventPayload bean. */ + public static class Builder extends EventPayloadBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEventPayload newBuildingInstance() { + return new DefaultEventPayload(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index 29d8a0127..43a0c781c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -15,161 +15,168 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ExtensionBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension - *

- * Single extension of an element. + * + *

Single extension of an element. */ - @IRI("aas:Extension") public class DefaultExtension implements Extension { - @IRI("https://admin-shell.io/aas/3/2/Extension/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") - protected List refersTos = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Extension/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - public DefaultExtension() { - } - - @Override - public String toString() { - return "DefaultExtension{" - + "name='" + name + "'," - + "valueType='" + valueType + "'," - + "value='" + value + "'," - + "refersTos='" + refersTos + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.name, - this.valueType, - this.value, - this.refersTos, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultExtension other = (DefaultExtension) obj; - return Objects.equals(this.name, other.name) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.refersTos, other.refersTos) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public List getRefersTos() { - return refersTos; - } - - @Override - public void setRefersTos(List refersTos) { - this.refersTos = refersTos; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } + @IRI("https://admin-shell.io/aas/3/2/Extension/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") + protected List refersTos = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Extension/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + public DefaultExtension() {} + + @Override + public String toString() { + return "DefaultExtension{" + + "name='" + + name + + "'," + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "refersTos='" + + refersTos + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.name, + this.valueType, + this.value, + this.refersTos, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultExtension other = (DefaultExtension) obj; + return Objects.equals(this.name, other.name) + && Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.value, other.value) + && Objects.equals(this.refersTos, other.refersTos) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public List getRefersTos() { + return refersTos; + } + + @Override + public void setRefersTos(List refersTos) { + this.refersTos = refersTos; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + /** This builder class can be used to construct a DefaultExtension bean. */ + public static class Builder extends ExtensionBuilder { @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + protected Builder getSelf() { + return this; } @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** - * This builder class can be used to construct a DefaultExtension bean. - */ - public static class Builder extends ExtensionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultExtension newBuildingInstance() { - return new DefaultExtension(); - } + protected DefaultExtension newBuildingInstance() { + return new DefaultExtension(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index a4a07fff4..a5912fa78 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -25,235 +28,250 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.FileBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File - *

- * A File is a data element that represents an address to a file (a locator). + * + *

A File is a data element that represents an address to a file (a locator). */ - @IRI("aas:File") public class DefaultFile implements File { - @IRI("https://admin-shell.io/aas/3/2/File/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/2/File/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultFile() { - } - - @Override - public String toString() { - return "DefaultFile{" - + "value='" + value + "'," - + "contentType='" + contentType + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.contentType, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultFile other = (DefaultFile) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; + @IRI("https://admin-shell.io/aas/3/2/File/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/2/File/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultFile() {} + + @Override + public String toString() { + return "DefaultFile{" + + "value='" + + value + + "'," + + "contentType='" + + contentType + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.value, + this.contentType, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultFile other = (DefaultFile) obj; + return Objects.equals(this.value, other.value) + && Objects.equals(this.contentType, other.contentType) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultFile bean. */ + public static class Builder extends FileBuilder { @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + protected Builder getSelf() { + return this; } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultFile bean. - */ - public static class Builder extends FileBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultFile newBuildingInstance() { - return new DefaultFile(); - } + protected DefaultFile newBuildingInstance() { + return new DefaultFile(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index c32e6c951..f2db7a3bf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -15,94 +15,83 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.KeyBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key - *

- * A key is a reference to an element by its ID. + * + *

A key is a reference to an element by its ID. */ - @IRI("aas:Key") public class DefaultKey implements Key { - @IRI("https://admin-shell.io/aas/3/2/Key/type") - protected KeyTypes type; - - @IRI("https://admin-shell.io/aas/3/2/Key/value") - protected String value; - - public DefaultKey() { + @IRI("https://admin-shell.io/aas/3/2/Key/type") + protected KeyTypes type; + + @IRI("https://admin-shell.io/aas/3/2/Key/value") + protected String value; + + public DefaultKey() {} + + @Override + public String toString() { + return "DefaultKey{" + "type='" + type + "'," + "value='" + value + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.type, this.value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultKey other = (DefaultKey) obj; + return Objects.equals(this.type, other.type) && Objects.equals(this.value, other.value); } + } - @Override - public String toString() { - return "DefaultKey{" - + "type='" + type + "'," - + "value='" + value + "'," - + "}"; - } + @Override + public KeyTypes getType() { + return type; + } - @Override - public int hashCode() { - return Objects.hash(this.type, - this.value); - } + @Override + public void setType(KeyTypes type) { + this.type = type; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultKey other = (DefaultKey) obj; - return Objects.equals(this.type, other.type) && - Objects.equals(this.value, other.value); - } - } + @Override + public String getValue() { + return value; + } - @Override - public KeyTypes getType() { - return type; - } + @Override + public void setValue(String value) { + this.value = value; + } - @Override - public void setType(KeyTypes type) { - this.type = type; - } + /** This builder class can be used to construct a DefaultKey bean. */ + public static class Builder extends KeyBuilder { @Override - public String getValue() { - return value; + protected Builder getSelf() { + return this; } @Override - public void setValue(String value) { - this.value = value; - } - - /** - * This builder class can be used to construct a DefaultKey bean. - */ - public static class Builder extends KeyBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultKey newBuildingInstance() { - return new DefaultKey(); - } + protected DefaultKey newBuildingInstance() { + return new DefaultKey(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index 8c5f00858..7d8ffb84e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -15,94 +15,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringDefinitionTypeIec61360Builder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 - *

- * String with length 1023 maximum and minimum 1 characters and with language tags + * + *

String with length 1023 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringDefinitionTypeIec61360") public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefinitionTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringDefinitionTypeIec61360() { + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringDefinitionTypeIec61360() {} + + @Override + public String toString() { + return "DefaultLangStringDefinitionTypeIec61360{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); } + } - @Override - public String toString() { - return "DefaultLangStringDefinitionTypeIec61360{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; - } + @Override + public String getLanguage() { + return language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public String getText() { + return text; + } - @Override - public String getLanguage() { - return language; - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. */ + public static class Builder + extends LangStringDefinitionTypeIec61360Builder< + DefaultLangStringDefinitionTypeIec61360, Builder> { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. - */ - public static class Builder extends LangStringDefinitionTypeIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { - return new DefaultLangStringDefinitionTypeIec61360(); - } + protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { + return new DefaultLangStringDefinitionTypeIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index dc315af8a..23bd491a8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -15,93 +15,90 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringNameTypeBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType - *

- * String with length 128 maximum and minimum 1 characters and with language tags + * + *

String with length 128 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringNameType") public class DefaultLangStringNameType implements LangStringNameType { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringNameType() { + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringNameType() {} + + @Override + public String toString() { + return "DefaultLangStringNameType{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringNameType other = (DefaultLangStringNameType) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); } + } - @Override - public String toString() { - return "DefaultLangStringNameType{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; - } + @Override + public String getLanguage() { + return language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringNameType other = (DefaultLangStringNameType) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public String getText() { + return text; + } - @Override - public String getLanguage() { - return language; - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringNameType bean. */ + public static class Builder + extends LangStringNameTypeBuilder { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringNameType bean. - */ - public static class Builder extends LangStringNameTypeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringNameType newBuildingInstance() { - return new DefaultLangStringNameType(); - } + protected DefaultLangStringNameType newBuildingInstance() { + return new DefaultLangStringNameType(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index 5bb741256..20ccf416a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -15,94 +15,96 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringPreferredNameTypeIec61360Builder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 - *

- * String with length 255 maximum and minimum 1 characters and with language tags + * + *

String with length 255 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringPreferredNameTypeIec61360") -public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPreferredNameTypeIec61360 { - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringPreferredNameTypeIec61360() { - } - - @Override - public String toString() { - return "DefaultLangStringPreferredNameTypeIec61360{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringPreferredNameTypeIec61360 other = (DefaultLangStringPreferredNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } - - @Override - public String getLanguage() { - return language; +public class DefaultLangStringPreferredNameTypeIec61360 + implements LangStringPreferredNameTypeIec61360 { + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringPreferredNameTypeIec61360() {} + + @Override + public String toString() { + return "DefaultLangStringPreferredNameTypeIec61360{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringPreferredNameTypeIec61360 other = + (DefaultLangStringPreferredNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); } + } + + @Override + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** + * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. + */ + public static class Builder + extends LangStringPreferredNameTypeIec61360Builder< + DefaultLangStringPreferredNameTypeIec61360, Builder> { @Override - public void setLanguage(String language) { - this.language = language; + protected Builder getSelf() { + return this; } @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. - */ - public static class Builder extends LangStringPreferredNameTypeIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringPreferredNameTypeIec61360(); - } + protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringPreferredNameTypeIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index 84e8345af..3a6fc27d6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -15,94 +15,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringShortNameTypeIec61360Builder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 - *

- * String with length 18 maximum and minimum 1 characters and with language tags + * + *

String with length 18 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringShortNameTypeIec61360") public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNameTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringShortNameTypeIec61360() { + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringShortNameTypeIec61360() {} + + @Override + public String toString() { + return "DefaultLangStringShortNameTypeIec61360{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); } + } - @Override - public String toString() { - return "DefaultLangStringShortNameTypeIec61360{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; - } + @Override + public String getLanguage() { + return language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public String getText() { + return text; + } - @Override - public String getLanguage() { - return language; - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. */ + public static class Builder + extends LangStringShortNameTypeIec61360Builder< + DefaultLangStringShortNameTypeIec61360, Builder> { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. - */ - public static class Builder extends LangStringShortNameTypeIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringShortNameTypeIec61360(); - } + protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringShortNameTypeIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index 516e6f874..44ffff1c0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -15,93 +15,90 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringTextTypeBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType - *

- * String with length 1023 maximum and minimum 1 characters and with language tags + * + *

String with length 1023 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringTextType") public class DefaultLangStringTextType implements LangStringTextType { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringTextType() { + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringTextType() {} + + @Override + public String toString() { + return "DefaultLangStringTextType{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringTextType other = (DefaultLangStringTextType) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); } + } - @Override - public String toString() { - return "DefaultLangStringTextType{" - + "language='" + language + "'," - + "text='" + text + "'," - + "}"; - } + @Override + public String getLanguage() { + return language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringTextType other = (DefaultLangStringTextType) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public String getText() { + return text; + } - @Override - public String getLanguage() { - return language; - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringTextType bean. */ + public static class Builder + extends LangStringTextTypeBuilder { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringTextType bean. - */ - public static class Builder extends LangStringTextTypeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringTextType newBuildingInstance() { - return new DefaultLangStringTextType(); - } + protected DefaultLangStringTextType newBuildingInstance() { + return new DefaultLangStringTextType(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index 6dcb36ab9..f7e5e44a4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -15,126 +15,125 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LevelTypeBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType - *

- * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and - * MAX. True means that the value is available, false means the value is not available. + * + *

Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP + * and MAX. True means that the value is available, false means the value is not available. */ - @IRI("aas:LevelType") public class DefaultLevelType implements LevelType { - @IRI("https://admin-shell.io/aas/3/2/LevelType/max") - protected boolean max; - - @IRI("https://admin-shell.io/aas/3/2/LevelType/min") - protected boolean min; - - @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") - protected boolean nom; - - @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") - protected boolean typ; - - public DefaultLevelType() { + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") + protected boolean max; + + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") + protected boolean min; + + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") + protected boolean nom; + + @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") + protected boolean typ; + + public DefaultLevelType() {} + + @Override + public String toString() { + return "DefaultLevelType{" + + "min='" + + min + + "'," + + "nom='" + + nom + + "'," + + "typ='" + + typ + + "'," + + "max='" + + max + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.min, this.nom, this.typ, this.max); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLevelType other = (DefaultLevelType) obj; + return Objects.equals(this.min, other.min) + && Objects.equals(this.nom, other.nom) + && Objects.equals(this.typ, other.typ) + && Objects.equals(this.max, other.max); } + } + + @Override + public boolean getMin() { + return min; + } + + @Override + public void setMin(boolean min) { + this.min = min; + } + + @Override + public boolean getNom() { + return nom; + } + + @Override + public void setNom(boolean nom) { + this.nom = nom; + } + + @Override + public boolean getTyp() { + return typ; + } + + @Override + public void setTyp(boolean typ) { + this.typ = typ; + } + + @Override + public boolean getMax() { + return max; + } + + @Override + public void setMax(boolean max) { + this.max = max; + } + + /** This builder class can be used to construct a DefaultLevelType bean. */ + public static class Builder extends LevelTypeBuilder { @Override - public String toString() { - return "DefaultLevelType{" - + "min='" + min + "'," - + "nom='" + nom + "'," - + "typ='" + typ + "'," - + "max='" + max + "'," - + "}"; + protected Builder getSelf() { + return this; } @Override - public int hashCode() { - return Objects.hash(this.min, - this.nom, - this.typ, - this.max); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLevelType other = (DefaultLevelType) obj; - return Objects.equals(this.min, other.min) && - Objects.equals(this.nom, other.nom) && - Objects.equals(this.typ, other.typ) && - Objects.equals(this.max, other.max); - } - } - - @Override - public boolean getMin() { - return min; - } - - @Override - public void setMin(boolean min) { - this.min = min; - } - - @Override - public boolean getNom() { - return nom; - } - - @Override - public void setNom(boolean nom) { - this.nom = nom; - } - - @Override - public boolean getTyp() { - return typ; - } - - @Override - public void setTyp(boolean typ) { - this.typ = typ; - } - - @Override - public boolean getMax() { - return max; - } - - @Override - public void setMax(boolean max) { - this.max = max; - } - - /** - * This builder class can be used to construct a DefaultLevelType bean. - */ - public static class Builder extends LevelTypeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLevelType newBuildingInstance() { - return new DefaultLevelType(); - } + protected DefaultLevelType newBuildingInstance() { + return new DefaultLevelType(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java index baf6aff24..d3696007a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -15,125 +15,121 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message */ @IRI("aas:Message") public class DefaultMessage implements Message { - @IRI("https://admin-shell.io/aas/3/2/Message/code") - protected String code; - - @IRI("https://admin-shell.io/aas/3/2/Message/messageType") - protected MessageType messageType; - - @IRI("https://admin-shell.io/aas/3/2/Message/text") - protected String text; - - @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") - protected String timestamp; - - public DefaultMessage() { - } - - @Override - public String toString() { - return "DefaultMessage{" - + "code='" + code + "'," - + "messageType='" + messageType + "'," - + "text='" + text + "'," - + "timestamp='" + timestamp + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.code, - this.messageType, - this.text, - this.timestamp); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMessage other = (DefaultMessage) obj; - return Objects.equals(this.code, other.code) && - Objects.equals(this.messageType, other.messageType) && - Objects.equals(this.text, other.text) && - Objects.equals(this.timestamp, other.timestamp); - } - } - - @Override - public String getCode() { - return code; - } - - @Override - public void setCode(String code) { - this.code = code; - } - - @Override - public MessageType getMessageType() { - return messageType; - } - - @Override - public void setMessageType(MessageType messageType) { - this.messageType = messageType; + @IRI("https://admin-shell.io/aas/3/2/Message/code") + protected String code; + + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") + protected MessageType messageType; + + @IRI("https://admin-shell.io/aas/3/2/Message/text") + protected String text; + + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") + protected String timestamp; + + public DefaultMessage() {} + + @Override + public String toString() { + return "DefaultMessage{" + + "code='" + + code + + "'," + + "messageType='" + + messageType + + "'," + + "text='" + + text + + "'," + + "timestamp='" + + timestamp + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.code, this.messageType, this.text, this.timestamp); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMessage other = (DefaultMessage) obj; + return Objects.equals(this.code, other.code) + && Objects.equals(this.messageType, other.messageType) + && Objects.equals(this.text, other.text) + && Objects.equals(this.timestamp, other.timestamp); } + } + + @Override + public String getCode() { + return code; + } + + @Override + public void setCode(String code) { + this.code = code; + } + + @Override + public MessageType getMessageType() { + return messageType; + } + + @Override + public void setMessageType(MessageType messageType) { + this.messageType = messageType; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + @Override + public String getTimestamp() { + return timestamp; + } + + @Override + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + /** This builder class can be used to construct a DefaultMessage bean. */ + public static class Builder extends MessageBuilder { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - @Override - public String getTimestamp() { - return timestamp; - } - - @Override - public void setTimestamp(String timestamp) { - this.timestamp = timestamp; - } - - /** - * This builder class can be used to construct a DefaultMessage bean. - */ - public static class Builder extends MessageBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultMessage newBuildingInstance() { - return new DefaultMessage(); - } + protected DefaultMessage newBuildingInstance() { + return new DefaultMessage(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 4b2fd3b1f..879fa3ce0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,235 +28,251 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MultiLanguagePropertyBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty - *

- * A property is a data element that has a multi-language value. + * + *

A property is a data element that has a multi-language value. */ - @IRI("aas:MultiLanguageProperty") public class DefaultMultiLanguageProperty implements MultiLanguageProperty { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") - protected List values = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultMultiLanguageProperty() { - } - - @Override - public String toString() { - return "DefaultMultiLanguageProperty{" - + "values='" + values + "'," - + "valueId='" + valueId + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.values, - this.valueId, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; - return Objects.equals(this.values, other.values) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getValues() { - return values; - } - - @Override - public void setValues(List values) { - this.values = values; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") + protected List values = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultMultiLanguageProperty() {} + + @Override + public String toString() { + return "DefaultMultiLanguageProperty{" + + "values='" + + values + + "'," + + "valueId='" + + valueId + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.values, + this.valueId, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; + return Objects.equals(this.values, other.values) + && Objects.equals(this.valueId, other.valueId) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getValues() { + return values; + } + + @Override + public void setValues(List values) { + this.values = values; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultMultiLanguageProperty bean. */ + public static class Builder + extends MultiLanguagePropertyBuilder { @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + protected Builder getSelf() { + return this; } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultMultiLanguageProperty bean. - */ - public static class Builder extends MultiLanguagePropertyBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultMultiLanguageProperty newBuildingInstance() { - return new DefaultMultiLanguageProperty(); - } + protected DefaultMultiLanguageProperty newBuildingInstance() { + return new DefaultMultiLanguageProperty(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index 55dac97fc..d7500483e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -26,251 +29,268 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation - *

- * An operation is a submodel element with input and output variables. + * + *

An operation is a submodel element with input and output variables. */ - @IRI("aas:Operation") public class DefaultOperation implements Operation { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") - protected List inoutputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") - protected List inputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") - protected List outputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultOperation() { - } - - @Override - public String toString() { - return "DefaultOperation{" - + "inputVariables='" + inputVariables + "'," - + "outputVariables='" + outputVariables + "'," - + "inoutputVariables='" + inoutputVariables + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") + protected List inoutputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") + protected List inputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") + protected List outputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultOperation() {} + + @Override + public String toString() { + return "DefaultOperation{" + + "inputVariables='" + + inputVariables + + "'," + + "outputVariables='" + + outputVariables + + "'," + + "inoutputVariables='" + + inoutputVariables + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.inputVariables, + this.outputVariables, + this.inoutputVariables, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperation other = (DefaultOperation) obj; + return Objects.equals(this.inputVariables, other.inputVariables) + && Objects.equals(this.outputVariables, other.outputVariables) + && Objects.equals(this.inoutputVariables, other.inoutputVariables) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getInputVariables() { + return inputVariables; + } + + @Override + public void setInputVariables(List inputVariables) { + this.inputVariables = inputVariables; + } + + @Override + public List getOutputVariables() { + return outputVariables; + } + + @Override + public void setOutputVariables(List outputVariables) { + this.outputVariables = outputVariables; + } + + @Override + public List getInoutputVariables() { + return inoutputVariables; + } + + @Override + public void setInoutputVariables(List inoutputVariables) { + this.inoutputVariables = inoutputVariables; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultOperation bean. */ + public static class Builder extends OperationBuilder { @Override - public int hashCode() { - return Objects.hash(this.inputVariables, - this.outputVariables, - this.inoutputVariables, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperation other = (DefaultOperation) obj; - return Objects.equals(this.inputVariables, other.inputVariables) && - Objects.equals(this.outputVariables, other.outputVariables) && - Objects.equals(this.inoutputVariables, other.inoutputVariables) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getInputVariables() { - return inputVariables; - } - - @Override - public void setInputVariables(List inputVariables) { - this.inputVariables = inputVariables; - } - - @Override - public List getOutputVariables() { - return outputVariables; - } - - @Override - public void setOutputVariables(List outputVariables) { - this.outputVariables = outputVariables; - } - - @Override - public List getInoutputVariables() { - return inoutputVariables; - } - - @Override - public void setInoutputVariables(List inoutputVariables) { - this.inoutputVariables = inoutputVariables; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultOperation bean. - */ - public static class Builder extends OperationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperation newBuildingInstance() { - return new DefaultOperation(); - } + protected DefaultOperation newBuildingInstance() { + return new DefaultOperation(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java index 9c826a6fd..fe7d991fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -15,92 +15,86 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationHandleBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle */ @IRI("aas:OperationHandle") public class DefaultOperationHandle implements OperationHandle { - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") - protected String handleId; - - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") - protected String requestId; - - public DefaultOperationHandle() { + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") + protected String handleId; + + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") + protected String requestId; + + public DefaultOperationHandle() {} + + @Override + public String toString() { + return "DefaultOperationHandle{" + + "handleId='" + + handleId + + "'," + + "requestId='" + + requestId + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.handleId, this.requestId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationHandle other = (DefaultOperationHandle) obj; + return Objects.equals(this.handleId, other.handleId) + && Objects.equals(this.requestId, other.requestId); } + } - @Override - public String toString() { - return "DefaultOperationHandle{" - + "handleId='" + handleId + "'," - + "requestId='" + requestId + "'," - + "}"; - } + @Override + public String getHandleId() { + return handleId; + } - @Override - public int hashCode() { - return Objects.hash(this.handleId, - this.requestId); - } + @Override + public void setHandleId(String handleId) { + this.handleId = handleId; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationHandle other = (DefaultOperationHandle) obj; - return Objects.equals(this.handleId, other.handleId) && - Objects.equals(this.requestId, other.requestId); - } - } + @Override + public String getRequestId() { + return requestId; + } - @Override - public String getHandleId() { - return handleId; - } + @Override + public void setRequestId(String requestId) { + this.requestId = requestId; + } - @Override - public void setHandleId(String handleId) { - this.handleId = handleId; - } + /** This builder class can be used to construct a DefaultOperationHandle bean. */ + public static class Builder extends OperationHandleBuilder { @Override - public String getRequestId() { - return requestId; + protected Builder getSelf() { + return this; } @Override - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - /** - * This builder class can be used to construct a DefaultOperationHandle bean. - */ - public static class Builder extends OperationHandleBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationHandle newBuildingInstance() { - return new DefaultOperationHandle(); - } + protected DefaultOperationHandle newBuildingInstance() { + return new DefaultOperationHandle(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java index dbf982cdb..8a22396f1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -15,126 +15,122 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.math.BigInteger; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; -import java.math.BigInteger; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest */ @IRI("aas:OperationRequest") public class DefaultOperationRequest implements OperationRequest { - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") - protected OperationVariable inoutputArguments; - - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") - protected OperationVariable inputArguments; - - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") - protected String requestId; - - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") - protected BigInteger timeout; - - public DefaultOperationRequest() { - } - - @Override - public String toString() { - return "DefaultOperationRequest{" - + "inoutputArguments='" + inoutputArguments + "'," - + "inputArguments='" + inputArguments + "'," - + "requestId='" + requestId + "'," - + "timeout='" + timeout + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.inoutputArguments, - this.inputArguments, - this.requestId, - this.timeout); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationRequest other = (DefaultOperationRequest) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) && - Objects.equals(this.inputArguments, other.inputArguments) && - Objects.equals(this.requestId, other.requestId) && - Objects.equals(this.timeout, other.timeout); - } - } - - @Override - public OperationVariable getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(OperationVariable inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public OperationVariable getInputArguments() { - return inputArguments; - } - - @Override - public void setInputArguments(OperationVariable inputArguments) { - this.inputArguments = inputArguments; - } - - @Override - public String getRequestId() { - return requestId; + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + protected OperationVariable inoutputArguments; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") + protected OperationVariable inputArguments; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") + protected String requestId; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + protected BigInteger timeout; + + public DefaultOperationRequest() {} + + @Override + public String toString() { + return "DefaultOperationRequest{" + + "inoutputArguments='" + + inoutputArguments + + "'," + + "inputArguments='" + + inputArguments + + "'," + + "requestId='" + + requestId + + "'," + + "timeout='" + + timeout + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.inoutputArguments, this.inputArguments, this.requestId, this.timeout); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationRequest other = (DefaultOperationRequest) obj; + return Objects.equals(this.inoutputArguments, other.inoutputArguments) + && Objects.equals(this.inputArguments, other.inputArguments) + && Objects.equals(this.requestId, other.requestId) + && Objects.equals(this.timeout, other.timeout); } + } + + @Override + public OperationVariable getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(OperationVariable inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } + + @Override + public OperationVariable getInputArguments() { + return inputArguments; + } + + @Override + public void setInputArguments(OperationVariable inputArguments) { + this.inputArguments = inputArguments; + } + + @Override + public String getRequestId() { + return requestId; + } + + @Override + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public BigInteger getTimeout() { + return timeout; + } + + @Override + public void setTimeout(BigInteger timeout) { + this.timeout = timeout; + } + + /** This builder class can be used to construct a DefaultOperationRequest bean. */ + public static class Builder extends OperationRequestBuilder { @Override - public void setRequestId(String requestId) { - this.requestId = requestId; + protected Builder getSelf() { + return this; } @Override - public BigInteger getTimeout() { - return timeout; - } - - @Override - public void setTimeout(BigInteger timeout) { - this.timeout = timeout; - } - - /** - * This builder class can be used to construct a DefaultOperationRequest bean. - */ - public static class Builder extends OperationRequestBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationRequest newBuildingInstance() { - return new DefaultOperationRequest(); - } + protected DefaultOperationRequest newBuildingInstance() { + return new DefaultOperationRequest(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java index 3ab7eed76..636bb9007 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; @@ -22,138 +25,137 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult */ @IRI("aas:OperationResult") public class DefaultOperationResult implements OperationResult { - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") - protected List executionResults = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") - protected List executionStates = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") - protected List outputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") - protected List requestIds = new ArrayList<>(); - - public DefaultOperationResult() { + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + protected List executionResults = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + protected List executionStates = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") + protected List inoutputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") + protected List outputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") + protected List requestIds = new ArrayList<>(); + + public DefaultOperationResult() {} + + @Override + public String toString() { + return "DefaultOperationResult{" + + "executionResults='" + + executionResults + + "'," + + "executionStates='" + + executionStates + + "'," + + "inoutputArguments='" + + inoutputArguments + + "'," + + "outputArguments='" + + outputArguments + + "'," + + "requestIds='" + + requestIds + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.executionResults, + this.executionStates, + this.inoutputArguments, + this.outputArguments, + this.requestIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationResult other = (DefaultOperationResult) obj; + return Objects.equals(this.executionResults, other.executionResults) + && Objects.equals(this.executionStates, other.executionStates) + && Objects.equals(this.inoutputArguments, other.inoutputArguments) + && Objects.equals(this.outputArguments, other.outputArguments) + && Objects.equals(this.requestIds, other.requestIds); } + } + + @Override + public List getExecutionResults() { + return executionResults; + } + + @Override + public void setExecutionResults(List executionResults) { + this.executionResults = executionResults; + } + + @Override + public List getExecutionStates() { + return executionStates; + } + + @Override + public void setExecutionStates(List executionStates) { + this.executionStates = executionStates; + } + + @Override + public List getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(List inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } + + @Override + public List getOutputArguments() { + return outputArguments; + } + + @Override + public void setOutputArguments(List outputArguments) { + this.outputArguments = outputArguments; + } + + @Override + public List getRequestIds() { + return requestIds; + } + + @Override + public void setRequestIds(List requestIds) { + this.requestIds = requestIds; + } + + /** This builder class can be used to construct a DefaultOperationResult bean. */ + public static class Builder extends OperationResultBuilder { @Override - public String toString() { - return "DefaultOperationResult{" - + "executionResults='" + executionResults + "'," - + "executionStates='" + executionStates + "'," - + "inoutputArguments='" + inoutputArguments + "'," - + "outputArguments='" + outputArguments + "'," - + "requestIds='" + requestIds + "'," - + "}"; + protected Builder getSelf() { + return this; } @Override - public int hashCode() { - return Objects.hash(this.executionResults, - this.executionStates, - this.inoutputArguments, - this.outputArguments, - this.requestIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationResult other = (DefaultOperationResult) obj; - return Objects.equals(this.executionResults, other.executionResults) && - Objects.equals(this.executionStates, other.executionStates) && - Objects.equals(this.inoutputArguments, other.inoutputArguments) && - Objects.equals(this.outputArguments, other.outputArguments) && - Objects.equals(this.requestIds, other.requestIds); - } - } - - @Override - public List getExecutionResults() { - return executionResults; - } - - @Override - public void setExecutionResults(List executionResults) { - this.executionResults = executionResults; - } - - @Override - public List getExecutionStates() { - return executionStates; - } - - @Override - public void setExecutionStates(List executionStates) { - this.executionStates = executionStates; - } - - @Override - public List getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(List inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public List getOutputArguments() { - return outputArguments; - } - - @Override - public void setOutputArguments(List outputArguments) { - this.outputArguments = outputArguments; - } - - @Override - public List getRequestIds() { - return requestIds; - } - - @Override - public void setRequestIds(List requestIds) { - this.requestIds = requestIds; - } - - /** - * This builder class can be used to construct a DefaultOperationResult bean. - */ - public static class Builder extends OperationResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationResult newBuildingInstance() { - return new DefaultOperationResult(); - } + protected DefaultOperationResult newBuildingInstance() { + return new DefaultOperationResult(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 6f46229da..1a141a1dd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -15,79 +15,71 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationVariableBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable - *

- * The value of an operation variable is a submodel element that is used as input and/or output + * + *

The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ - @IRI("aas:OperationVariable") public class DefaultOperationVariable implements OperationVariable { - @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") - protected SubmodelElement value; - - public DefaultOperationVariable() { + @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") + protected SubmodelElement value; + + public DefaultOperationVariable() {} + + @Override + public String toString() { + return "DefaultOperationVariable{" + "value='" + value + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationVariable other = (DefaultOperationVariable) obj; + return Objects.equals(this.value, other.value); } + } - @Override - public String toString() { - return "DefaultOperationVariable{" - + "value='" + value + "'," - + "}"; - } + @Override + public SubmodelElement getValue() { + return value; + } - @Override - public int hashCode() { - return Objects.hash(this.value); - } + @Override + public void setValue(SubmodelElement value) { + this.value = value; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationVariable other = (DefaultOperationVariable) obj; - return Objects.equals(this.value, other.value); - } - } + /** This builder class can be used to construct a DefaultOperationVariable bean. */ + public static class Builder extends OperationVariableBuilder { @Override - public SubmodelElement getValue() { - return value; + protected Builder getSelf() { + return this; } @Override - public void setValue(SubmodelElement value) { - this.value = value; - } - - /** - * This builder class can be used to construct a DefaultOperationVariable bean. - */ - public static class Builder extends OperationVariableBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationVariable newBuildingInstance() { - return new DefaultOperationVariable(); - } + protected DefaultOperationVariable newBuildingInstance() { + return new DefaultOperationVariable(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java index dee742c05..412173974 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -15,94 +15,89 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; - import java.util.ArrayList; import java.util.List; import java.util.Objects; +import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription */ @IRI("aas:PackageDescription") public class DefaultPackageDescription implements PackageDescription { - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") - protected List items = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") - protected String packageId; - - public DefaultPackageDescription() { + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") + protected List items = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") + protected String packageId; + + public DefaultPackageDescription() {} + + @Override + public String toString() { + return "DefaultPackageDescription{" + + "items='" + + items + + "'," + + "packageId='" + + packageId + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.items, this.packageId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultPackageDescription other = (DefaultPackageDescription) obj; + return Objects.equals(this.items, other.items) + && Objects.equals(this.packageId, other.packageId); } + } - @Override - public String toString() { - return "DefaultPackageDescription{" - + "items='" + items + "'," - + "packageId='" + packageId + "'," - + "}"; - } + @Override + public List getItems() { + return items; + } - @Override - public int hashCode() { - return Objects.hash(this.items, - this.packageId); - } + @Override + public void setItems(List items) { + this.items = items; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultPackageDescription other = (DefaultPackageDescription) obj; - return Objects.equals(this.items, other.items) && - Objects.equals(this.packageId, other.packageId); - } - } + @Override + public String getPackageId() { + return packageId; + } - @Override - public List getItems() { - return items; - } + @Override + public void setPackageId(String packageId) { + this.packageId = packageId; + } - @Override - public void setItems(List items) { - this.items = items; - } + /** This builder class can be used to construct a DefaultPackageDescription bean. */ + public static class Builder + extends PackageDescriptionBuilder { @Override - public String getPackageId() { - return packageId; + protected Builder getSelf() { + return this; } @Override - public void setPackageId(String packageId) { - this.packageId = packageId; - } - - /** - * This builder class can be used to construct a DefaultPackageDescription bean. - */ - public static class Builder extends PackageDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultPackageDescription newBuildingInstance() { - return new DefaultPackageDescription(); - } + protected DefaultPackageDescription newBuildingInstance() { + return new DefaultPackageDescription(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 118065acb..642675dfd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -26,251 +29,268 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PropertyBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property - *

- * A property is a data element that has a single value. + * + *

A property is a data element that has a single value. */ - @IRI("aas:Property") public class DefaultProperty implements Property { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Property/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/Property/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/2/Property/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultProperty() { - } - - @Override - public String toString() { - return "DefaultProperty{" - + "valueType='" + valueType + "'," - + "value='" + value + "'," - + "valueId='" + valueId + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Property/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultProperty() {} + + @Override + public String toString() { + return "DefaultProperty{" + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.valueType, + this.value, + this.valueId, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProperty other = (DefaultProperty) obj; + return Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.value, other.value) + && Objects.equals(this.valueId, other.valueId) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultProperty bean. */ + public static class Builder extends PropertyBuilder { @Override - public int hashCode() { - return Objects.hash(this.valueType, - this.value, - this.valueId, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProperty other = (DefaultProperty) obj; - return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultProperty bean. - */ - public static class Builder extends PropertyBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultProperty newBuildingInstance() { - return new DefaultProperty(); - } + protected DefaultProperty newBuildingInstance() { + return new DefaultProperty(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index 2ff174fe1..3969aa4c5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -15,175 +15,182 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation */ @IRI("aas:ProtocolInformation") public class DefaultProtocolInformation implements ProtocolInformation { - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") - protected String endpointAddress; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") - protected String endpointProtocol; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") - protected String endpointProtocolVersion; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") - protected List securityAttributes = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") - protected String subprotocol; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") - protected String subprotocolBody; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") - protected String subprotocolBodyEncoding; - - public DefaultProtocolInformation() { - } - - @Override - public String toString() { - return "DefaultProtocolInformation{" - + "endpointAddress='" + endpointAddress + "'," - + "endpointProtocol='" + endpointProtocol + "'," - + "endpointProtocolVersion='" + endpointProtocolVersion + "'," - + "securityAttributes='" + securityAttributes + "'," - + "subprotocol='" + subprotocol + "'," - + "subprotocolBody='" + subprotocolBody + "'," - + "subprotocolBodyEncoding='" + subprotocolBodyEncoding + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.endpointAddress, - this.endpointProtocol, - this.endpointProtocolVersion, - this.securityAttributes, - this.subprotocol, - this.subprotocolBody, - this.subprotocolBodyEncoding); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProtocolInformation other = (DefaultProtocolInformation) obj; - return Objects.equals(this.endpointAddress, other.endpointAddress) && - Objects.equals(this.endpointProtocol, other.endpointProtocol) && - Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && - Objects.equals(this.securityAttributes, other.securityAttributes) && - Objects.equals(this.subprotocol, other.subprotocol) && - Objects.equals(this.subprotocolBody, other.subprotocolBody) && - Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding); - } - } - - @Override - public String getEndpointAddress() { - return endpointAddress; - } - - @Override - public void setEndpointAddress(String endpointAddress) { - this.endpointAddress = endpointAddress; - } - - @Override - public String getEndpointProtocol() { - return endpointProtocol; - } - - @Override - public void setEndpointProtocol(String endpointProtocol) { - this.endpointProtocol = endpointProtocol; - } - - @Override - public String getEndpointProtocolVersion() { - return endpointProtocolVersion; - } - - @Override - public void setEndpointProtocolVersion(String endpointProtocolVersion) { - this.endpointProtocolVersion = endpointProtocolVersion; - } - - @Override - public List getSecurityAttributes() { - return securityAttributes; - } - - @Override - public void setSecurityAttributes(List securityAttributes) { - this.securityAttributes = securityAttributes; - } - - @Override - public String getSubprotocol() { - return subprotocol; - } - - @Override - public void setSubprotocol(String subprotocol) { - this.subprotocol = subprotocol; - } - - @Override - public String getSubprotocolBody() { - return subprotocolBody; - } - - @Override - public void setSubprotocolBody(String subprotocolBody) { - this.subprotocolBody = subprotocolBody; - } - - @Override - public String getSubprotocolBodyEncoding() { - return subprotocolBodyEncoding; - } - - @Override - public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { - this.subprotocolBodyEncoding = subprotocolBodyEncoding; - } - - /** - * This builder class can be used to construct a DefaultProtocolInformation bean. - */ - public static class Builder extends ProtocolInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultProtocolInformation newBuildingInstance() { - return new DefaultProtocolInformation(); - } - } + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") + protected String endpointAddress; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") + protected String endpointProtocol; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") + protected String endpointProtocolVersion; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") + protected List securityAttributes = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") + protected String subprotocol; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") + protected String subprotocolBody; + + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") + protected String subprotocolBodyEncoding; + + public DefaultProtocolInformation() {} + + @Override + public String toString() { + return "DefaultProtocolInformation{" + + "endpointAddress='" + + endpointAddress + + "'," + + "endpointProtocol='" + + endpointProtocol + + "'," + + "endpointProtocolVersion='" + + endpointProtocolVersion + + "'," + + "securityAttributes='" + + securityAttributes + + "'," + + "subprotocol='" + + subprotocol + + "'," + + "subprotocolBody='" + + subprotocolBody + + "'," + + "subprotocolBodyEncoding='" + + subprotocolBodyEncoding + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.endpointAddress, + this.endpointProtocol, + this.endpointProtocolVersion, + this.securityAttributes, + this.subprotocol, + this.subprotocolBody, + this.subprotocolBodyEncoding); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProtocolInformation other = (DefaultProtocolInformation) obj; + return Objects.equals(this.endpointAddress, other.endpointAddress) + && Objects.equals(this.endpointProtocol, other.endpointProtocol) + && Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) + && Objects.equals(this.securityAttributes, other.securityAttributes) + && Objects.equals(this.subprotocol, other.subprotocol) + && Objects.equals(this.subprotocolBody, other.subprotocolBody) + && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding); + } + } + + @Override + public String getEndpointAddress() { + return endpointAddress; + } + + @Override + public void setEndpointAddress(String endpointAddress) { + this.endpointAddress = endpointAddress; + } + + @Override + public String getEndpointProtocol() { + return endpointProtocol; + } + + @Override + public void setEndpointProtocol(String endpointProtocol) { + this.endpointProtocol = endpointProtocol; + } + + @Override + public String getEndpointProtocolVersion() { + return endpointProtocolVersion; + } + + @Override + public void setEndpointProtocolVersion(String endpointProtocolVersion) { + this.endpointProtocolVersion = endpointProtocolVersion; + } + + @Override + public List getSecurityAttributes() { + return securityAttributes; + } + + @Override + public void setSecurityAttributes(List securityAttributes) { + this.securityAttributes = securityAttributes; + } + + @Override + public String getSubprotocol() { + return subprotocol; + } + + @Override + public void setSubprotocol(String subprotocol) { + this.subprotocol = subprotocol; + } + + @Override + public String getSubprotocolBody() { + return subprotocolBody; + } + + @Override + public void setSubprotocolBody(String subprotocolBody) { + this.subprotocolBody = subprotocolBody; + } + + @Override + public String getSubprotocolBodyEncoding() { + return subprotocolBodyEncoding; + } + + @Override + public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { + this.subprotocolBodyEncoding = subprotocolBodyEncoding; + } + + /** This builder class can be used to construct a DefaultProtocolInformation bean. */ + public static class Builder + extends ProtocolInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultProtocolInformation newBuildingInstance() { + return new DefaultProtocolInformation(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 4a326edfe..25dd561b0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; @@ -22,172 +25,178 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.QualifierBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier - *

- * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the + * + *

A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ - @IRI("aas:Qualifier") public class DefaultQualifier implements Qualifier { - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") - protected QualifierKind kind; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") - protected String type; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") - protected DataTypeDefXsd valueType; - - public DefaultQualifier() { - } - - @Override - public String toString() { - return "DefaultQualifier{" - + "kind='" + kind + "'," - + "type='" + type + "'," - + "valueType='" + valueType + "'," - + "value='" + value + "'," - + "valueId='" + valueId + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.kind, - this.type, - this.valueType, - this.value, - this.valueId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultQualifier other = (DefaultQualifier) obj; - return Objects.equals(this.kind, other.kind) && - Objects.equals(this.type, other.type) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public QualifierKind getKind() { - return kind; - } - - @Override - public void setKind(QualifierKind kind) { - this.kind = kind; - } - - @Override - public String getType() { - return type; - } - - @Override - public void setType(String type) { - this.type = type; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** - * This builder class can be used to construct a DefaultQualifier bean. - */ - public static class Builder extends QualifierBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultQualifier newBuildingInstance() { - return new DefaultQualifier(); - } - } + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") + protected QualifierKind kind; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") + protected String type; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") + protected DataTypeDefXsd valueType; + + public DefaultQualifier() {} + + @Override + public String toString() { + return "DefaultQualifier{" + + "kind='" + + kind + + "'," + + "type='" + + type + + "'," + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.kind, + this.type, + this.valueType, + this.value, + this.valueId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultQualifier other = (DefaultQualifier) obj; + return Objects.equals(this.kind, other.kind) + && Objects.equals(this.type, other.type) + && Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.value, other.value) + && Objects.equals(this.valueId, other.valueId) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public QualifierKind getKind() { + return kind; + } + + @Override + public void setKind(QualifierKind kind) { + this.kind = kind; + } + + @Override + public String getType() { + return type; + } + + @Override + public void setType(String type) { + this.type = type; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + /** This builder class can be used to construct a DefaultQualifier bean. */ + public static class Builder extends QualifierBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultQualifier newBuildingInstance() { + return new DefaultQualifier(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index 39c46436b..1d419c421 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -26,251 +29,268 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RangeBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range - *

- * A range data element is a data element that defines a range with min and max. + * + *

A range data element is a data element that defines a range with min and max. */ - @IRI("aas:Range") public class DefaultRange implements Range { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Range/max") - protected String max; - - @IRI("https://admin-shell.io/aas/3/2/Range/min") - protected String min; - - @IRI("https://admin-shell.io/aas/3/2/Range/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultRange() { - } - - @Override - public String toString() { - return "DefaultRange{" - + "valueType='" + valueType + "'," - + "min='" + min + "'," - + "max='" + max + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Range/max") + protected String max; + + @IRI("https://admin-shell.io/aas/3/2/Range/min") + protected String min; + + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + public DefaultRange() {} + + @Override + public String toString() { + return "DefaultRange{" + + "valueType='" + + valueType + + "'," + + "min='" + + min + + "'," + + "max='" + + max + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.valueType, + this.min, + this.max, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRange other = (DefaultRange) obj; + return Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.min, other.min) + && Objects.equals(this.max, other.max) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getMin() { + return min; + } + + @Override + public void setMin(String min) { + this.min = min; + } + + @Override + public String getMax() { + return max; + } + + @Override + public void setMax(String max) { + this.max = max; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultRange bean. */ + public static class Builder extends RangeBuilder { @Override - public int hashCode() { - return Objects.hash(this.valueType, - this.min, - this.max, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRange other = (DefaultRange) obj; - return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.min, other.min) && - Objects.equals(this.max, other.max) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getMin() { - return min; - } - - @Override - public void setMin(String min) { - this.min = min; - } - - @Override - public String getMax() { - return max; - } - - @Override - public void setMax(String max) { - this.max = max; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultRange bean. - */ - public static class Builder extends RangeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultRange newBuildingInstance() { - return new DefaultRange(); - } + protected DefaultRange newBuildingInstance() { + return new DefaultRange(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index b669dbbfb..67000cec5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -15,113 +15,111 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference - *

- * Reference to either a model element of the same or another AAS or to an external entity. + * + *

Reference to either a model element of the same or another AAS or to an external entity. */ - @IRI("aas:Reference") public class DefaultReference implements Reference { - @IRI("https://admin-shell.io/aas/3/2/Reference/keys") - protected List keys = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") - protected Reference referredSemanticId; - - @IRI("https://admin-shell.io/aas/3/2/Reference/type") - protected ReferenceTypes type; - - public DefaultReference() { + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") + protected List keys = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") + protected Reference referredSemanticId; + + @IRI("https://admin-shell.io/aas/3/2/Reference/type") + protected ReferenceTypes type; + + public DefaultReference() {} + + @Override + public String toString() { + return "DefaultReference{" + + "type='" + + type + + "'," + + "referredSemanticId='" + + referredSemanticId + + "'," + + "keys='" + + keys + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.type, this.referredSemanticId, this.keys); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReference other = (DefaultReference) obj; + return Objects.equals(this.type, other.type) + && Objects.equals(this.referredSemanticId, other.referredSemanticId) + && Objects.equals(this.keys, other.keys); } + } - @Override - public String toString() { - return "DefaultReference{" - + "type='" + type + "'," - + "referredSemanticId='" + referredSemanticId + "'," - + "keys='" + keys + "'," - + "}"; - } + @Override + public ReferenceTypes getType() { + return type; + } - @Override - public int hashCode() { - return Objects.hash(this.type, - this.referredSemanticId, - this.keys); - } + @Override + public void setType(ReferenceTypes type) { + this.type = type; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReference other = (DefaultReference) obj; - return Objects.equals(this.type, other.type) && - Objects.equals(this.referredSemanticId, other.referredSemanticId) && - Objects.equals(this.keys, other.keys); - } - } + @Override + public Reference getReferredSemanticId() { + return referredSemanticId; + } - @Override - public ReferenceTypes getType() { - return type; - } + @Override + public void setReferredSemanticId(Reference referredSemanticId) { + this.referredSemanticId = referredSemanticId; + } - @Override - public void setType(ReferenceTypes type) { - this.type = type; - } + @Override + public List getKeys() { + return keys; + } - @Override - public Reference getReferredSemanticId() { - return referredSemanticId; - } + @Override + public void setKeys(List keys) { + this.keys = keys; + } - @Override - public void setReferredSemanticId(Reference referredSemanticId) { - this.referredSemanticId = referredSemanticId; - } + /** This builder class can be used to construct a DefaultReference bean. */ + public static class Builder extends ReferenceBuilder { @Override - public List getKeys() { - return keys; + protected Builder getSelf() { + return this; } @Override - public void setKeys(List keys) { - this.keys = keys; - } - - /** - * This builder class can be used to construct a DefaultReference bean. - */ - public static class Builder extends ReferenceBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultReference newBuildingInstance() { - return new DefaultReference(); - } + protected DefaultReference newBuildingInstance() { + return new DefaultReference(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index 2840ffc72..09e5bccf7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,220 +28,233 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement - *

- * A reference element is a data element that defines a logical reference to another element within - * the same or another AAS or a reference to an external object or entity. + * + *

A reference element is a data element that defines a logical reference to another element + * within the same or another AAS or a reference to an external object or entity. */ - @IRI("aas:ReferenceElement") public class DefaultReferenceElement implements ReferenceElement { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") - protected Reference value; - - public DefaultReferenceElement() { - } - - @Override - public String toString() { - return "DefaultReferenceElement{" - + "value='" + value + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReferenceElement other = (DefaultReferenceElement) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getValue() { - return value; - } - - @Override - public void setValue(Reference value) { - this.value = value; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") + protected Reference value; + + public DefaultReferenceElement() {} + + @Override + public String toString() { + return "DefaultReferenceElement{" + + "value='" + + value + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.value, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReferenceElement other = (DefaultReferenceElement) obj; + return Objects.equals(this.value, other.value) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public Reference getValue() { + return value; + } + + @Override + public void setValue(Reference value) { + this.value = value; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultReferenceElement bean. */ + public static class Builder extends ReferenceElementBuilder { @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + protected Builder getSelf() { + return this; } @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultReferenceElement bean. - */ - public static class Builder extends ReferenceElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultReferenceElement newBuildingInstance() { - return new DefaultReferenceElement(); - } + protected DefaultReferenceElement newBuildingInstance() { + return new DefaultReferenceElement(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index 1c726b3a2..97472134e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,236 +28,252 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RelationshipElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement - *

- * A relationship element is used to define a relationship between two elements being either + * + *

A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ - @IRI("aas:RelationshipElement") public class DefaultRelationshipElement implements RelationshipElement { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") - protected Reference second; - - public DefaultRelationshipElement() { - } - - @Override - public String toString() { - return "DefaultRelationshipElement{" - + "first='" + first + "'," - + "second='" + second + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.first, - this.second, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRelationshipElement other = (DefaultRelationshipElement) obj; - return Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") + protected Reference second; + + public DefaultRelationshipElement() {} + + @Override + public String toString() { + return "DefaultRelationshipElement{" + + "first='" + + first + + "'," + + "second='" + + second + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.first, + this.second, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRelationshipElement other = (DefaultRelationshipElement) obj; + return Objects.equals(this.first, other.first) + && Objects.equals(this.second, other.second) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultRelationshipElement bean. */ + public static class Builder + extends RelationshipElementBuilder { @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + protected Builder getSelf() { + return this; } @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultRelationshipElement bean. - */ - public static class Builder extends RelationshipElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultRelationshipElement newBuildingInstance() { - return new DefaultRelationshipElement(); - } + protected DefaultRelationshipElement newBuildingInstance() { + return new DefaultRelationshipElement(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index 9538378f0..f581bd471 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -15,94 +15,84 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResourceBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource - *

- * Resource represents an address to a file (a locator). The value is an URI that can represent an - * absolute or relative path + * + *

Resource represents an address to a file (a locator). The value is an URI that can represent + * an absolute or relative path */ - @IRI("aas:Resource") public class DefaultResource implements Resource { - @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/2/Resource/path") - protected String path; - - public DefaultResource() { + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/2/Resource/path") + protected String path; + + public DefaultResource() {} + + @Override + public String toString() { + return "DefaultResource{" + "path='" + path + "'," + "contentType='" + contentType + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.path, this.contentType); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResource other = (DefaultResource) obj; + return Objects.equals(this.path, other.path) + && Objects.equals(this.contentType, other.contentType); } + } - @Override - public String toString() { - return "DefaultResource{" - + "path='" + path + "'," - + "contentType='" + contentType + "'," - + "}"; - } + @Override + public String getPath() { + return path; + } - @Override - public int hashCode() { - return Objects.hash(this.path, - this.contentType); - } + @Override + public void setPath(String path) { + this.path = path; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResource other = (DefaultResource) obj; - return Objects.equals(this.path, other.path) && - Objects.equals(this.contentType, other.contentType); - } - } + @Override + public String getContentType() { + return contentType; + } - @Override - public String getPath() { - return path; - } + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } - @Override - public void setPath(String path) { - this.path = path; - } + /** This builder class can be used to construct a DefaultResource bean. */ + public static class Builder extends ResourceBuilder { @Override - public String getContentType() { - return contentType; + protected Builder getSelf() { + return this; } @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - /** - * This builder class can be used to construct a DefaultResource bean. - */ - public static class Builder extends ResourceBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultResource newBuildingInstance() { - return new DefaultResource(); - } + protected DefaultResource newBuildingInstance() { + return new DefaultResource(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java index f51f81570..00ee64504 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -15,95 +15,82 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResultBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result */ @IRI("aas:Result") public class DefaultResult implements Result { - @IRI("https://admin-shell.io/aas/3/2/Result/messages") - protected List messages = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Result/success") - protected boolean success; - - public DefaultResult() { + @IRI("https://admin-shell.io/aas/3/2/Result/messages") + protected List messages = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Result/success") + protected boolean success; + + public DefaultResult() {} + + @Override + public String toString() { + return "DefaultResult{" + "messages='" + messages + "'," + "success='" + success + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.messages, this.success); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResult other = (DefaultResult) obj; + return Objects.equals(this.messages, other.messages) + && Objects.equals(this.success, other.success); } + } - @Override - public String toString() { - return "DefaultResult{" - + "messages='" + messages + "'," - + "success='" + success + "'," - + "}"; - } + @Override + public List getMessages() { + return messages; + } - @Override - public int hashCode() { - return Objects.hash(this.messages, - this.success); - } + @Override + public void setMessages(List messages) { + this.messages = messages; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResult other = (DefaultResult) obj; - return Objects.equals(this.messages, other.messages) && - Objects.equals(this.success, other.success); - } - } + @Override + public boolean getSuccess() { + return success; + } - @Override - public List getMessages() { - return messages; - } + @Override + public void setSuccess(boolean success) { + this.success = success; + } - @Override - public void setMessages(List messages) { - this.messages = messages; - } + /** This builder class can be used to construct a DefaultResult bean. */ + public static class Builder extends ResultBuilder { @Override - public boolean getSuccess() { - return success; + protected Builder getSelf() { + return this; } @Override - public void setSuccess(boolean success) { - this.success = success; - } - - /** - * This builder class can be used to construct a DefaultResult bean. - */ - public static class Builder extends ResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultResult newBuildingInstance() { - return new DefaultResult(); - } + protected DefaultResult newBuildingInstance() { + return new DefaultResult(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java index c9bb0b39a..d0252ed61 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -15,109 +15,107 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityAttributeObjectBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject - * */ - @IRI("aas:SecurityAttributeObject") public class DefaultSecurityAttributeObject implements SecurityAttributeObject { - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") - protected String key; - - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") - protected SecurityTypeEnum type; - - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") - protected String value; - - public DefaultSecurityAttributeObject() { - } - - @Override - public String toString() { - return "DefaultSecurityAttributeObject{" - + "key='" + key + "'," - + "value='" + value + "'," - + "type='" + type + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.key, - this.value, - this.type); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; - return Objects.equals(this.key, other.key) && - Objects.equals(this.value, other.value) && - Objects.equals(this.type, other.type); - } + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") + protected String key; + + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") + protected SecurityTypeEnum type; + + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") + protected String value; + + public DefaultSecurityAttributeObject() {} + + @Override + public String toString() { + return "DefaultSecurityAttributeObject{" + + "key='" + + key + + "'," + + "value='" + + value + + "'," + + "type='" + + type + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.key, this.value, this.type); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; + return Objects.equals(this.key, other.key) + && Objects.equals(this.value, other.value) + && Objects.equals(this.type, other.type); } + } + + @Override + public String getKey() { + return key; + } + + @Override + public void setKey(String key) { + this.key = key; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public SecurityTypeEnum getType() { + return type; + } + + @Override + public void setType(SecurityTypeEnum type) { + this.type = type; + } + + /** This builder class can be used to construct a DefaultSecurityAttributeObject bean. */ + public static class Builder + extends SecurityAttributeObjectBuilder { @Override - public String getKey() { - return key; + protected Builder getSelf() { + return this; } @Override - public void setKey(String key) { - this.key = key; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public SecurityTypeEnum getType() { - return type; - } - - @Override - public void setType(SecurityTypeEnum type) { - this.type = type; - } - - /** - * This builder class can be used to construct a DefaultSecurityAttributeObject bean. - */ - public static class Builder extends SecurityAttributeObjectBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSecurityAttributeObject newBuildingInstance() { - return new DefaultSecurityAttributeObject(); - } + protected DefaultSecurityAttributeObject newBuildingInstance() { + return new DefaultSecurityAttributeObject(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java index ddc3fe1b1..e46f8d699 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java @@ -15,60 +15,50 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityTypeEnumBuilder; -import java.util.Objects; +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum */ +@IRI("aas:SecurityTypeEnum") +public class DefaultSecurityTypeEnum implements SecurityTypeEnum { + public DefaultSecurityTypeEnum() {} -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum - * - */ + @Override + public String toString() { + return "DefaultSecurityTypeEnum{" + "}"; + } -@IRI("aas:SecurityTypeEnum") -public class DefaultSecurityTypeEnum implements SecurityTypeEnum { + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } - public DefaultSecurityTypeEnum() { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; } + return true; + } - @Override - public String toString() { - return "DefaultSecurityTypeEnum{" - + "}"; - } + /** This builder class can be used to construct a DefaultSecurityTypeEnum bean. */ + public static class Builder extends SecurityTypeEnumBuilder { @Override - public int hashCode() { - return Objects.hash(super.hashCode()); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } - return true; - } - - /** - * This builder class can be used to construct a DefaultSecurityTypeEnum bean. - */ - public static class Builder extends SecurityTypeEnumBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSecurityTypeEnum newBuildingInstance() { - return new DefaultSecurityTypeEnum(); - } + protected DefaultSecurityTypeEnum newBuildingInstance() { + return new DefaultSecurityTypeEnum(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index f9755837a..66015be65 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -15,144 +15,149 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SpecificAssetIdBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId - *

- * A specific asset ID describes a generic supplementary identifying attribute of the asset. + * + *

A specific asset ID describes a generic supplementary identifying attribute of the asset. */ - @IRI("aas:SpecificAssetId") public class DefaultSpecificAssetId implements SpecificAssetId { - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") - protected Reference externalSubjectId; - - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") - protected String value; - - public DefaultSpecificAssetId() { - } - - @Override - public String toString() { - return "DefaultSpecificAssetId{" - + "name='" + name + "'," - + "value='" + value + "'," - + "externalSubjectId='" + externalSubjectId + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.name, - this.value, - this.externalSubjectId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; - return Objects.equals(this.name, other.name) && - Objects.equals(this.value, other.value) && - Objects.equals(this.externalSubjectId, other.externalSubjectId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getExternalSubjectId() { - return externalSubjectId; + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") + protected Reference externalSubjectId; + + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") + protected String value; + + public DefaultSpecificAssetId() {} + + @Override + public String toString() { + return "DefaultSpecificAssetId{" + + "name='" + + name + + "'," + + "value='" + + value + + "'," + + "externalSubjectId='" + + externalSubjectId + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.name, + this.value, + this.externalSubjectId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; + return Objects.equals(this.name, other.name) + && Objects.equals(this.value, other.value) + && Objects.equals(this.externalSubjectId, other.externalSubjectId) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getExternalSubjectId() { + return externalSubjectId; + } + + @Override + public void setExternalSubjectId(Reference externalSubjectId) { + this.externalSubjectId = externalSubjectId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + /** This builder class can be used to construct a DefaultSpecificAssetId bean. */ + public static class Builder extends SpecificAssetIdBuilder { @Override - public void setExternalSubjectId(Reference externalSubjectId) { - this.externalSubjectId = externalSubjectId; + protected Builder getSelf() { + return this; } @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** - * This builder class can be used to construct a DefaultSpecificAssetId bean. - */ - public static class Builder extends SpecificAssetIdBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSpecificAssetId newBuildingInstance() { - return new DefaultSpecificAssetId(); - } + protected DefaultSpecificAssetId newBuildingInstance() { + return new DefaultSpecificAssetId(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 5866c2403..785d3a5c2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -28,267 +31,286 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel - *

- * A submodel defines a specific aspect of the asset represented by the AAS. + * + *

A submodel defines a specific aspect of the asset represented by the AAS. */ - @IRI("aas:Submodel") public class DefaultSubmodel implements Submodel { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") - protected ModellingKind kind; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") - protected List submodelElements = new ArrayList<>(); - - public DefaultSubmodel() { - } - - @Override - public String toString() { - return "DefaultSubmodel{" - + "submodelElements='" + submodelElements + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "kind='" + kind + "'," - + "administration='" + administration + "'," - + "id='" + id + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.submodelElements, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.kind, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodel other = (DefaultSubmodel) obj; - return Objects.equals(this.submodelElements, other.submodelElements) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.kind, other.kind) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public List getSubmodelElements() { - return submodelElements; - } - - @Override - public void setSubmodelElements(List submodelElements) { - this.submodelElements = submodelElements; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") + protected ModellingKind kind; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") + protected List submodelElements = new ArrayList<>(); + + public DefaultSubmodel() {} + + @Override + public String toString() { + return "DefaultSubmodel{" + + "submodelElements='" + + submodelElements + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "kind='" + + kind + + "'," + + "administration='" + + administration + + "'," + + "id='" + + id + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.submodelElements, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.kind, + this.administration, + this.id, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodel other = (DefaultSubmodel) obj; + return Objects.equals(this.submodelElements, other.submodelElements) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers) + && Objects.equals(this.kind, other.kind) + && Objects.equals(this.administration, other.administration) + && Objects.equals(this.id, other.id) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions); } + } + + @Override + public List getSubmodelElements() { + return submodelElements; + } + + @Override + public void setSubmodelElements(List submodelElements) { + this.submodelElements = submodelElements; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + /** This builder class can be used to construct a DefaultSubmodel bean. */ + public static class Builder extends SubmodelBuilder { @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; + protected Builder getSelf() { + return this; } @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** - * This builder class can be used to construct a DefaultSubmodel bean. - */ - public static class Builder extends SubmodelBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodel newBuildingInstance() { - return new DefaultSubmodel(); - } + protected DefaultSubmodel newBuildingInstance() { + return new DefaultSubmodel(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java index e54e5f042..84bdae2a1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,170 +27,174 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelDescriptorBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor */ @IRI("aas:SubmodelDescriptor") public class DefaultSubmodelDescriptor implements SubmodelDescriptor { - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") - protected LangStringTextType description; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") - protected LangStringNameType displayName; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") - protected String identification; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") - protected Reference semanticId; - - public DefaultSubmodelDescriptor() { - } - - @Override - public String toString() { - return "DefaultSubmodelDescriptor{" - + "administration='" + administration + "'," - + "description='" + description + "'," - + "displayName='" + displayName + "'," - + "idShort='" + idShort + "'," - + "identification='" + identification + "'," - + "semanticId='" + semanticId + "'," - + "endpoints='" + endpoints + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.administration, - this.description, - this.displayName, - this.idShort, - this.identification, - this.semanticId, - this.endpoints); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; - return Objects.equals(this.administration, other.administration) && - Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.identification, other.identification) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.endpoints, other.endpoints); - } - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public LangStringTextType getDescription() { - return description; - } - - @Override - public void setDescription(LangStringTextType description) { - this.description = description; - } - - @Override - public LangStringNameType getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(LangStringNameType displayName) { - this.displayName = displayName; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getIdentification() { - return identification; - } - - @Override - public void setIdentification(String identification) { - this.identification = identification; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - /** - * This builder class can be used to construct a DefaultSubmodelDescriptor bean. - */ - public static class Builder extends SubmodelDescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelDescriptor newBuildingInstance() { - return new DefaultSubmodelDescriptor(); - } - } + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") + protected LangStringTextType description; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") + protected LangStringNameType displayName; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") + protected String identification; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + protected Reference semanticId; + + public DefaultSubmodelDescriptor() {} + + @Override + public String toString() { + return "DefaultSubmodelDescriptor{" + + "administration='" + + administration + + "'," + + "description='" + + description + + "'," + + "displayName='" + + displayName + + "'," + + "idShort='" + + idShort + + "'," + + "identification='" + + identification + + "'," + + "semanticId='" + + semanticId + + "'," + + "endpoints='" + + endpoints + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.administration, + this.description, + this.displayName, + this.idShort, + this.identification, + this.semanticId, + this.endpoints); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; + return Objects.equals(this.administration, other.administration) + && Objects.equals(this.description, other.description) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.identification, other.identification) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.endpoints, other.endpoints); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public LangStringTextType getDescription() { + return description; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description = description; + } + + @Override + public LangStringNameType getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName = displayName; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getIdentification() { + return identification; + } + + @Override + public void setIdentification(String identification) { + this.identification = identification; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + /** This builder class can be used to construct a DefaultSubmodelDescriptor bean. */ + public static class Builder + extends SubmodelDescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelDescriptor newBuildingInstance() { + return new DefaultSubmodelDescriptor(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java index bdda3ef1c..4547362b3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -26,219 +29,232 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementAttributesBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes - * */ - @IRI("aas:SubmodelElementAttributes") public class DefaultSubmodelElementAttributes implements SubmodelElementAttributes { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") - protected ModellingKind kind; - - public DefaultSubmodelElementAttributes() { - } - - @Override - public String toString() { - return "DefaultSubmodelElementAttributes{" - + "kind='" + kind + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.kind, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; - return Objects.equals(this.kind, other.kind) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") + protected ModellingKind kind; + + public DefaultSubmodelElementAttributes() {} + + @Override + public String toString() { + return "DefaultSubmodelElementAttributes{" + + "kind='" + + kind + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.kind, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; + return Objects.equals(this.kind, other.kind) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultSubmodelElementAttributes bean. */ + public static class Builder + extends SubmodelElementAttributesBuilder { @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + protected Builder getSelf() { + return this; } @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultSubmodelElementAttributes bean. - */ - public static class Builder extends SubmodelElementAttributesBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementAttributes newBuildingInstance() { - return new DefaultSubmodelElementAttributes(); - } + protected DefaultSubmodelElementAttributes newBuildingInstance() { + return new DefaultSubmodelElementAttributes(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index c06ce06f3..34560a37f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -26,221 +29,235 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementCollectionBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection - *

- * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple + * + *

A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ - @IRI("aas:SubmodelElementCollection") public class DefaultSubmodelElementCollection implements SubmodelElementCollection { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") - protected List values = new ArrayList<>(); - - public DefaultSubmodelElementCollection() { - } - - @Override - public String toString() { - return "DefaultSubmodelElementCollection{" - + "values='" + values + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.values, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; - return Objects.equals(this.values, other.values) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getValues() { - return values; - } - - @Override - public void setValues(List values) { - this.values = values; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") + protected List values = new ArrayList<>(); + + public DefaultSubmodelElementCollection() {} + + @Override + public String toString() { + return "DefaultSubmodelElementCollection{" + + "values='" + + values + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.values, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; + return Objects.equals(this.values, other.values) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getValues() { + return values; + } + + @Override + public void setValues(List values) { + this.values = values; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultSubmodelElementCollection bean. */ + public static class Builder + extends SubmodelElementCollectionBuilder { @Override - public void setIdShort(String idShort) { - this.idShort = idShort; + protected Builder getSelf() { + return this; } @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultSubmodelElementCollection bean. - */ - public static class Builder extends SubmodelElementCollectionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementCollection newBuildingInstance() { - return new DefaultSubmodelElementCollection(); - } + protected DefaultSubmodelElementCollection newBuildingInstance() { + return new DefaultSubmodelElementCollection(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index a779cbb12..06a480894 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -28,283 +31,305 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementListBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList - *

- * A submodel element list is an ordered list of submodel elements. + * + *

A submodel element list is an ordered list of submodel elements. */ - @IRI("aas:SubmodelElementList") public class DefaultSubmodelElementList implements SubmodelElementList { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") - protected boolean orderRelevant; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") - protected Reference semanticIdListElement; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") - protected AasSubmodelElements typeValueListElement; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") - protected List values = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") - protected DataTypeDefXsd valueTypeListElement; - - public DefaultSubmodelElementList() { - } - - @Override - public String toString() { - return "DefaultSubmodelElementList{" - + "orderRelevant='" + orderRelevant + "'," - + "semanticIdListElement='" + semanticIdListElement + "'," - + "typeValueListElement='" + typeValueListElement + "'," - + "valueTypeListElement='" + valueTypeListElement + "'," - + "values='" + values + "'," - + "category='" + category + "'," - + "idShort='" + idShort + "'," - + "displayNames='" + displayNames + "'," - + "descriptions='" + descriptions + "'," - + "extensions='" + extensions + "'," - + "embeddedDataSpecifications='" + embeddedDataSpecifications + "'," - + "semanticId='" + semanticId + "'," - + "supplementalSemanticIds='" + supplementalSemanticIds + "'," - + "qualifiers='" + qualifiers + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.values, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; - return Objects.equals(this.orderRelevant, other.orderRelevant) && - Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && - Objects.equals(this.typeValueListElement, other.typeValueListElement) && - Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && - Objects.equals(this.values, other.values) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayNames, other.displayNames) && - Objects.equals(this.descriptions, other.descriptions) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public boolean getOrderRelevant() { - return orderRelevant; - } - - @Override - public void setOrderRelevant(boolean orderRelevant) { - this.orderRelevant = orderRelevant; - } - - @Override - public Reference getSemanticIdListElement() { - return semanticIdListElement; - } - - @Override - public void setSemanticIdListElement(Reference semanticIdListElement) { - this.semanticIdListElement = semanticIdListElement; - } - - @Override - public AasSubmodelElements getTypeValueListElement() { - return typeValueListElement; - } - - @Override - public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { - this.typeValueListElement = typeValueListElement; - } - - @Override - public DataTypeDefXsd getValueTypeListElement() { - return valueTypeListElement; - } - - @Override - public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { - this.valueTypeListElement = valueTypeListElement; - } - - @Override - public List getValues() { - return values; - } - - @Override - public void setValues(List values) { - this.values = values; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/2/Referable/description") + protected List descriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayNames = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") + protected boolean orderRelevant; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") + protected Reference semanticIdListElement; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") + protected AasSubmodelElements typeValueListElement; + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") + protected List values = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") + protected DataTypeDefXsd valueTypeListElement; + + public DefaultSubmodelElementList() {} + + @Override + public String toString() { + return "DefaultSubmodelElementList{" + + "orderRelevant='" + + orderRelevant + + "'," + + "semanticIdListElement='" + + semanticIdListElement + + "'," + + "typeValueListElement='" + + typeValueListElement + + "'," + + "valueTypeListElement='" + + valueTypeListElement + + "'," + + "values='" + + values + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayNames='" + + displayNames + + "'," + + "descriptions='" + + descriptions + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.orderRelevant, + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.values, + this.category, + this.idShort, + this.displayNames, + this.descriptions, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; + return Objects.equals(this.orderRelevant, other.orderRelevant) + && Objects.equals(this.semanticIdListElement, other.semanticIdListElement) + && Objects.equals(this.typeValueListElement, other.typeValueListElement) + && Objects.equals(this.valueTypeListElement, other.valueTypeListElement) + && Objects.equals(this.values, other.values) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayNames, other.displayNames) + && Objects.equals(this.descriptions, other.descriptions) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public boolean getOrderRelevant() { + return orderRelevant; + } + + @Override + public void setOrderRelevant(boolean orderRelevant) { + this.orderRelevant = orderRelevant; + } + + @Override + public Reference getSemanticIdListElement() { + return semanticIdListElement; + } + + @Override + public void setSemanticIdListElement(Reference semanticIdListElement) { + this.semanticIdListElement = semanticIdListElement; + } + + @Override + public AasSubmodelElements getTypeValueListElement() { + return typeValueListElement; + } + + @Override + public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { + this.typeValueListElement = typeValueListElement; + } + + @Override + public DataTypeDefXsd getValueTypeListElement() { + return valueTypeListElement; + } + + @Override + public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { + this.valueTypeListElement = valueTypeListElement; + } + + @Override + public List getValues() { + return values; + } + + @Override + public void setValues(List values) { + this.values = values; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayNames() { + return displayNames; + } + + @Override + public void setDisplayNames(List displayNames) { + this.displayNames = displayNames; + } + + @Override + public List getDescriptions() { + return descriptions; + } + + @Override + public void setDescriptions(List descriptions) { + this.descriptions = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + /** This builder class can be used to construct a DefaultSubmodelElementList bean. */ + public static class Builder + extends SubmodelElementListBuilder { @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; + protected Builder getSelf() { + return this; } @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** - * This builder class can be used to construct a DefaultSubmodelElementList bean. - */ - public static class Builder extends SubmodelElementListBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementList newBuildingInstance() { - return new DefaultSubmodelElementList(); - } + protected DefaultSubmodelElementList newBuildingInstance() { + return new DefaultSubmodelElementList(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 621be2bb6..62e4b0095 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -15,80 +15,72 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueListBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList - *

- * A set of value reference pairs. + * + *

A set of value reference pairs. */ - @IRI("aas:ValueList") public class DefaultValueList implements ValueList { - @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") - protected List valueReferencePairs = new ArrayList<>(); - - public DefaultValueList() { + @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") + protected List valueReferencePairs = new ArrayList<>(); + + public DefaultValueList() {} + + @Override + public String toString() { + return "DefaultValueList{" + "valueReferencePairs='" + valueReferencePairs + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.valueReferencePairs); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueList other = (DefaultValueList) obj; + return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); } + } - @Override - public String toString() { - return "DefaultValueList{" - + "valueReferencePairs='" + valueReferencePairs + "'," - + "}"; - } + @Override + public List getValueReferencePairs() { + return valueReferencePairs; + } - @Override - public int hashCode() { - return Objects.hash(this.valueReferencePairs); - } + @Override + public void setValueReferencePairs(List valueReferencePairs) { + this.valueReferencePairs = valueReferencePairs; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueList other = (DefaultValueList) obj; - return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); - } - } + /** This builder class can be used to construct a DefaultValueList bean. */ + public static class Builder extends ValueListBuilder { @Override - public List getValueReferencePairs() { - return valueReferencePairs; + protected Builder getSelf() { + return this; } @Override - public void setValueReferencePairs(List valueReferencePairs) { - this.valueReferencePairs = valueReferencePairs; - } - - /** - * This builder class can be used to construct a DefaultValueList bean. - */ - public static class Builder extends ValueListBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultValueList newBuildingInstance() { - return new DefaultValueList(); - } + protected DefaultValueList newBuildingInstance() { + return new DefaultValueList(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index 36911c3aa..f97c32299 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -15,95 +15,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueReferencePairBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair - *

- * A value reference pair within a value list. Each value has a global unique id defining its + * + *

A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ - @IRI("aas:ValueReferencePair") public class DefaultValueReferencePair implements ValueReferencePair { - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") - protected Reference valueId; - - public DefaultValueReferencePair() { + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") + protected Reference valueId; + + public DefaultValueReferencePair() {} + + @Override + public String toString() { + return "DefaultValueReferencePair{" + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.value, this.valueId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueReferencePair other = (DefaultValueReferencePair) obj; + return Objects.equals(this.value, other.value) && Objects.equals(this.valueId, other.valueId); } + } - @Override - public String toString() { - return "DefaultValueReferencePair{" - + "value='" + value + "'," - + "valueId='" + valueId + "'," - + "}"; - } + @Override + public String getValue() { + return value; + } - @Override - public int hashCode() { - return Objects.hash(this.value, - this.valueId); - } + @Override + public void setValue(String value) { + this.value = value; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueReferencePair other = (DefaultValueReferencePair) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId); - } - } + @Override + public Reference getValueId() { + return valueId; + } - @Override - public String getValue() { - return value; - } + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } - @Override - public void setValue(String value) { - this.value = value; - } + /** This builder class can be used to construct a DefaultValueReferencePair bean. */ + public static class Builder + extends ValueReferencePairBuilder { @Override - public Reference getValueId() { - return valueId; + protected Builder getSelf() { + return this; } @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - /** - * This builder class can be used to construct a DefaultValueReferencePair bean. - */ - public static class Builder extends ValueReferencePairBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultValueReferencePair newBuildingInstance() { - return new DefaultValueReferencePair(); - } + protected DefaultValueReferencePair newBuildingInstance() { + return new DefaultValueReferencePair(); } + } } From b44eb64867dd3d168d14da75bdd3e0e1b8e9d415 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Wed, 15 Apr 2026 17:07:11 +0200 Subject: [PATCH 05/12] add adjustments of import cleanup --- .../aasx/deserialization/AASXDeserializerTest.java | 12 ++++++++++++ .../aas4j/v3/model/AasSubmodelElements.java | 2 -- .../aas4j/v3/model/AbstractLangString.java | 2 -- .../aas4j/v3/model/AdministrativeInformation.java | 6 +++--- .../aas4j/v3/model/AnnotatedRelationshipElement.java | 6 +++--- .../aas4j/v3/model/AssetAdministrationShell.java | 6 +++--- .../v3/model/AssetAdministrationShellDescriptor.java | 6 +++--- .../model/AssetAdministrationShellEnvironment.java | 6 +++--- .../digitaltwin/aas4j/v3/model/AssetInformation.java | 6 +++--- .../digitaltwin/aas4j/v3/model/AssetKind.java | 2 -- .../aas4j/v3/model/BaseOperationResult.java | 3 +-- .../aas4j/v3/model/BasicEventElement.java | 3 +-- .../org/eclipse/digitaltwin/aas4j/v3/model/Blob.java | 3 +-- .../digitaltwin/aas4j/v3/model/Capability.java | 3 +-- .../aas4j/v3/model/ConceptDescription.java | 6 +++--- .../aas4j/v3/model/CustomDataSpecification.java | 3 +-- .../digitaltwin/aas4j/v3/model/DataElement.java | 2 -- .../aas4j/v3/model/DataSpecificationContent.java | 2 -- .../aas4j/v3/model/DataSpecificationIec61360.java | 6 +++--- .../digitaltwin/aas4j/v3/model/DataTypeDefXsd.java | 2 -- .../digitaltwin/aas4j/v3/model/DataTypeIec61360.java | 2 -- .../digitaltwin/aas4j/v3/model/Descriptor.java | 6 +++--- .../digitaltwin/aas4j/v3/model/Direction.java | 2 -- .../aas4j/v3/model/EmbeddedDataSpecification.java | 3 +-- .../eclipse/digitaltwin/aas4j/v3/model/Endpoint.java | 3 +-- .../eclipse/digitaltwin/aas4j/v3/model/Entity.java | 6 +++--- .../digitaltwin/aas4j/v3/model/EntityType.java | 2 -- .../digitaltwin/aas4j/v3/model/Environment.java | 6 +++--- .../digitaltwin/aas4j/v3/model/EventElement.java | 2 -- .../digitaltwin/aas4j/v3/model/EventPayload.java | 3 +-- .../digitaltwin/aas4j/v3/model/ExecutionState.java | 2 -- .../digitaltwin/aas4j/v3/model/Extension.java | 6 +++--- .../org/eclipse/digitaltwin/aas4j/v3/model/File.java | 3 +-- .../aas4j/v3/model/HasDataSpecification.java | 5 ++--- .../digitaltwin/aas4j/v3/model/HasExtensions.java | 5 ++--- .../eclipse/digitaltwin/aas4j/v3/model/HasKind.java | 2 -- .../digitaltwin/aas4j/v3/model/HasSemantics.java | 5 ++--- .../digitaltwin/aas4j/v3/model/Identifiable.java | 2 -- .../org/eclipse/digitaltwin/aas4j/v3/model/Key.java | 3 +-- .../eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java | 2 -- .../digitaltwin/aas4j/v3/model/LangString.java | 5 ++--- .../v3/model/LangStringDefinitionTypeIec61360.java | 3 +-- .../aas4j/v3/model/LangStringNameType.java | 3 +-- .../model/LangStringPreferredNameTypeIec61360.java | 3 +-- .../v3/model/LangStringShortNameTypeIec61360.java | 3 +-- .../aas4j/v3/model/LangStringTextType.java | 3 +-- .../digitaltwin/aas4j/v3/model/LevelType.java | 3 +-- .../eclipse/digitaltwin/aas4j/v3/model/Message.java | 3 +-- .../digitaltwin/aas4j/v3/model/MessageType.java | 2 -- .../digitaltwin/aas4j/v3/model/ModelType.java | 2 -- .../digitaltwin/aas4j/v3/model/ModellingKind.java | 2 -- .../aas4j/v3/model/MultiLanguageProperty.java | 6 +++--- .../digitaltwin/aas4j/v3/model/Operation.java | 6 +++--- .../digitaltwin/aas4j/v3/model/OperationHandle.java | 3 +-- .../digitaltwin/aas4j/v3/model/OperationRequest.java | 6 +++--- .../digitaltwin/aas4j/v3/model/OperationResult.java | 6 +++--- .../aas4j/v3/model/OperationVariable.java | 3 +-- .../aas4j/v3/model/PackageDescription.java | 6 +++--- .../eclipse/digitaltwin/aas4j/v3/model/Property.java | 3 +-- .../aas4j/v3/model/ProtocolInformation.java | 6 +++--- .../digitaltwin/aas4j/v3/model/Qualifiable.java | 5 ++--- .../digitaltwin/aas4j/v3/model/Qualifier.java | 3 +-- .../digitaltwin/aas4j/v3/model/QualifierKind.java | 2 -- .../eclipse/digitaltwin/aas4j/v3/model/Range.java | 3 +-- .../digitaltwin/aas4j/v3/model/Referable.java | 5 ++--- .../digitaltwin/aas4j/v3/model/Reference.java | 6 +++--- .../digitaltwin/aas4j/v3/model/ReferenceElement.java | 3 +-- .../digitaltwin/aas4j/v3/model/ReferenceTypes.java | 2 -- .../aas4j/v3/model/RelationshipElement.java | 3 +-- .../eclipse/digitaltwin/aas4j/v3/model/Resource.java | 3 +-- .../eclipse/digitaltwin/aas4j/v3/model/Result.java | 6 +++--- .../aas4j/v3/model/SecurityAttributeObject.java | 3 +-- .../digitaltwin/aas4j/v3/model/SecurityTypeEnum.java | 3 +-- .../digitaltwin/aas4j/v3/model/SpecificAssetId.java | 3 +-- .../digitaltwin/aas4j/v3/model/StateOfEvent.java | 2 -- .../eclipse/digitaltwin/aas4j/v3/model/Submodel.java | 6 +++--- .../aas4j/v3/model/SubmodelDescriptor.java | 3 +-- .../digitaltwin/aas4j/v3/model/SubmodelElement.java | 2 -- .../aas4j/v3/model/SubmodelElementAttributes.java | 3 +-- .../aas4j/v3/model/SubmodelElementCollection.java | 6 +++--- .../aas4j/v3/model/SubmodelElementList.java | 6 +++--- .../digitaltwin/aas4j/v3/model/ValueList.java | 6 +++--- .../aas4j/v3/model/ValueReferencePair.java | 3 +-- .../builder/AdministrativeInformationBuilder.java | 8 +++++--- .../builder/AnnotatedRelationshipElementBuilder.java | 11 +++++++++-- .../builder/AssetAdministrationShellBuilder.java | 11 +++++++++-- .../AssetAdministrationShellDescriptorBuilder.java | 11 +++++++++-- .../AssetAdministrationShellEnvironmentBuilder.java | 7 +++++-- .../v3/model/builder/AssetInformationBuilder.java | 3 ++- .../v3/model/builder/BasicEventElementBuilder.java | 3 ++- .../aas4j/v3/model/builder/BlobBuilder.java | 3 ++- .../aas4j/v3/model/builder/CapabilityBuilder.java | 3 ++- .../v3/model/builder/ConceptDescriptionBuilder.java | 3 ++- .../builder/DataSpecificationIec61360Builder.java | 11 +++++++++-- .../aas4j/v3/model/builder/DescriptorBuilder.java | 3 ++- .../builder/EmbeddedDataSpecificationBuilder.java | 5 +++-- .../aas4j/v3/model/builder/EntityBuilder.java | 3 ++- .../aas4j/v3/model/builder/EnvironmentBuilder.java | 3 ++- .../aas4j/v3/model/builder/ExtensionBuilder.java | 3 ++- .../aas4j/v3/model/builder/FileBuilder.java | 3 ++- .../LangStringDefinitionTypeIec61360Builder.java | 3 +-- .../LangStringPreferredNameTypeIec61360Builder.java | 3 +-- .../LangStringShortNameTypeIec61360Builder.java | 3 +-- .../model/builder/MultiLanguagePropertyBuilder.java | 3 ++- .../aas4j/v3/model/builder/OperationBuilder.java | 3 ++- .../v3/model/builder/OperationRequestBuilder.java | 3 ++- .../v3/model/builder/OperationResultBuilder.java | 3 ++- .../v3/model/builder/PackageDescriptionBuilder.java | 3 ++- .../aas4j/v3/model/builder/PropertyBuilder.java | 3 ++- .../v3/model/builder/ProtocolInformationBuilder.java | 3 ++- .../aas4j/v3/model/builder/QualifierBuilder.java | 3 ++- .../aas4j/v3/model/builder/RangeBuilder.java | 3 ++- .../aas4j/v3/model/builder/ReferenceBuilder.java | 3 ++- .../v3/model/builder/ReferenceElementBuilder.java | 3 ++- .../v3/model/builder/RelationshipElementBuilder.java | 3 ++- .../aas4j/v3/model/builder/ResultBuilder.java | 3 ++- .../builder/SecurityAttributeObjectBuilder.java | 4 ++-- .../v3/model/builder/SpecificAssetIdBuilder.java | 3 ++- .../aas4j/v3/model/builder/SubmodelBuilder.java | 3 ++- .../v3/model/builder/SubmodelDescriptorBuilder.java | 3 ++- .../builder/SubmodelElementAttributesBuilder.java | 11 +++++++++-- .../builder/SubmodelElementCollectionBuilder.java | 11 +++++++++-- .../v3/model/builder/SubmodelElementListBuilder.java | 3 ++- .../aas4j/v3/model/builder/ValueListBuilder.java | 3 ++- .../model/impl/DefaultAdministrativeInformation.java | 9 +++++---- .../impl/DefaultAnnotatedRelationshipElement.java | 7 ++++--- .../model/impl/DefaultAssetAdministrationShell.java | 7 ++++--- .../DefaultAssetAdministrationShellDescriptor.java | 7 ++++--- .../DefaultAssetAdministrationShellEnvironment.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultAssetInformation.java | 7 ++++--- .../v3/model/impl/DefaultBaseOperationResult.java | 3 ++- .../v3/model/impl/DefaultBasicEventElement.java | 7 ++++--- .../digitaltwin/aas4j/v3/model/impl/DefaultBlob.java | 9 +++++---- .../aas4j/v3/model/impl/DefaultCapability.java | 7 ++++--- .../v3/model/impl/DefaultConceptDescription.java | 7 ++++--- .../model/impl/DefaultDataSpecificationIec61360.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultDescriptor.java | 7 ++++--- .../model/impl/DefaultEmbeddedDataSpecification.java | 3 ++- .../aas4j/v3/model/impl/DefaultEndpoint.java | 3 ++- .../aas4j/v3/model/impl/DefaultEntity.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultEnvironment.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultEventPayload.java | 5 +++-- .../aas4j/v3/model/impl/DefaultExtension.java | 7 ++++--- .../digitaltwin/aas4j/v3/model/impl/DefaultFile.java | 7 ++++--- .../digitaltwin/aas4j/v3/model/impl/DefaultKey.java | 3 ++- .../DefaultLangStringDefinitionTypeIec61360.java | 3 ++- .../v3/model/impl/DefaultLangStringNameType.java | 3 ++- .../DefaultLangStringPreferredNameTypeIec61360.java | 3 ++- .../impl/DefaultLangStringShortNameTypeIec61360.java | 3 ++- .../v3/model/impl/DefaultLangStringTextType.java | 3 ++- .../aas4j/v3/model/impl/DefaultLevelType.java | 3 ++- .../aas4j/v3/model/impl/DefaultMessage.java | 3 ++- .../v3/model/impl/DefaultMultiLanguageProperty.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultOperation.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultOperationHandle.java | 3 ++- .../aas4j/v3/model/impl/DefaultOperationRequest.java | 5 +++-- .../aas4j/v3/model/impl/DefaultOperationResult.java | 7 ++++--- .../v3/model/impl/DefaultOperationVariable.java | 3 ++- .../v3/model/impl/DefaultPackageDescription.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultProperty.java | 7 ++++--- .../v3/model/impl/DefaultProtocolInformation.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultQualifier.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultRange.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultReference.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultReferenceElement.java | 7 ++++--- .../v3/model/impl/DefaultRelationshipElement.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultResource.java | 3 ++- .../aas4j/v3/model/impl/DefaultResult.java | 7 ++++--- .../model/impl/DefaultSecurityAttributeObject.java | 3 ++- .../aas4j/v3/model/impl/DefaultSecurityTypeEnum.java | 3 ++- .../aas4j/v3/model/impl/DefaultSpecificAssetId.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultSubmodel.java | 7 ++++--- .../v3/model/impl/DefaultSubmodelDescriptor.java | 7 ++++--- .../model/impl/DefaultSubmodelElementAttributes.java | 7 ++++--- .../model/impl/DefaultSubmodelElementCollection.java | 7 ++++--- .../v3/model/impl/DefaultSubmodelElementList.java | 7 ++++--- .../aas4j/v3/model/impl/DefaultValueList.java | 7 ++++--- .../v3/model/impl/DefaultValueReferencePair.java | 3 ++- 178 files changed, 437 insertions(+), 377 deletions(-) diff --git a/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java b/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java index c308e9b11..72da6586c 100644 --- a/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java +++ b/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java @@ -53,6 +53,18 @@ public class AASXDeserializerTest { @Rule public TemporaryFolder tempFolder = new TemporaryFolder(); + @Test + public void ehTest() throws IOException, InvalidFormatException, DeserializationException { + java.io.File file = + new java.io.File( + "/Users/I562354/Documents/2_git/aas4j/dataformat-aasx/src/test/resources/aas_X901240120D_sba.aasx"); + + InputStream in = new FileInputStream(file); + AASXDeserializer deserializer = new AASXDeserializer(in); + + Environment environment = deserializer.read(); + } + @Test public void roundTrip() throws SerializationException, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index cd0f6b73d..f34e03b28 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration of all possible elements of a 'SubmodelElementList'. */ @IRI("aas:AasSubmodelElements") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index 67cb00cf4..de43ec7da 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -17,8 +17,6 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Strings with language tags */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 71ec3c1fd..16e334094 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import javax.xml.datatype.XMLGregorianCalendar; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAdministrativeInformation; + +import javax.xml.datatype.XMLGregorianCalendar; /** Administrative meta-information for an element like version information. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultAdministrativeInformation.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index 0ae2a3c87..6d86b534a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAnnotatedRelationshipElement; + +import java.util.List; /** * An annotated relationship element is a relationship element that can be annotated with additional diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index 4071e2571..eee95ea73 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShell; + +import java.util.List; /** An asset administration shell. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index 1e743d5fa..51e0d4834 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellDescriptor; + +import java.util.List; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java index eac1e50b0..7b5255044 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellEnvironment; + +import java.util.List; /** Container for the sets of different identifiables. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 4d71fb2c4..6eda562f6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetInformation; + +import java.util.List; /** * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 3ee888865..7130f5831 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration for denoting whether an asset is a type asset or an instance asset. */ @IRI("aas:AssetKind") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java index 338825682..41cee0b32 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBaseOperationResult; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultBaseOperationResult.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 8209646f4..bc62edbdd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBasicEventElement; /** A basic event element. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultBasicEventElement.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index c177a90d1..1795f74a1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBlob; /** * A 'Blob' is a data element that represents a file that is contained with its source code in the diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 5a7064394..4dc3986e8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCapability; /** * A capability is the implementation-independent description of the potential of an asset to diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 43c2ae0c8..0de07017a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultConceptDescription; + +import java.util.List; /** * The semantics of a property or other elements that may have a semantic description is defined by diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java index f093cd8c7..f16eb2e6e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCustomDataSpecification; /** * A custom data specification is a user-defined extension of the standard data specification diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 4159c0612..3c5c8c754 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * A data element is a submodel element that is not further composed out of other submodel elements. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 6545d5282..45f51013e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** * Data specification content is part of a data specification template and defines which additional diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index fba067a43..75399240b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDataSpecificationIec61360; + +import java.util.List; /** * Content of data specification template for concept descriptions for properties, values and value diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index 3c684ddee..f5dedbf81 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration listing all XSD anySimpleTypes */ @IRI("aas:DataTypeDefXsd") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 2940c37a9..4637699ca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** */ @IRI("aas:DataTypeIec61360") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index f284c2114..75505e1a1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDescriptor; + +import java.util.List; /** */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index b91704e2a..49eb1f049 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Direction */ @IRI("aas:Direction") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 951a36f6f..62060220a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEmbeddedDataSpecification; /** Embed the content of a data specification. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index 87aec35b5..2249a025f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEndpoint; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEndpoint.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index a59efc8af..387c13c4a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEntity; + +import java.util.List; /** An entity is a submodel element that is used to model entities. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEntity.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 205b764ce..79e4d7d82 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. */ @IRI("aas:EntityType") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index d94c87b4a..9a1259ff5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEnvironment; + +import java.util.List; /** Container for the sets of different identifiables. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEnvironment.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index 8737e21b0..ac846a699 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** An event element. */ @KnownSubtypes({@KnownSubtypes.Type(value = BasicEventElement.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index 79c7507c4..42b901e19 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEventPayload; /** Defines the necessary information of an event instance sent out or received. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEventPayload.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index d69020975..24b3d3f38 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** */ @IRI("aas:ExecutionState") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index e238a0ba7..8ea19826f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultExtension; + +import java.util.List; /** Single extension of an element. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultExtension.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index f59c283a2..57e2bf899 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultFile; /** A File is a data element that represents an address to a file (a locator). */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultFile.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 9c6c4d16c..185ef9d0d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -15,11 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + +import java.util.List; /** Element that can be extended by using data specification templates. */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 09ef5cab0..6d197f02c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -15,11 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + +import java.util.List; /** Element that can be extended by proprietary extensions. */ @KnownSubtypes({@KnownSubtypes.Type(value = Referable.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index a1bdb82e4..5d84d2acd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -17,8 +17,6 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** An element with a kind is an element that can either represent a template or an instance. */ @KnownSubtypes({@KnownSubtypes.Type(value = Submodel.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index cec3a4366..deef3f13e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -15,11 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + +import java.util.List; /** Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index 5c07cc6dd..baba3f286 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -17,8 +17,6 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** An element that has a globally unique identifier. */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index 7ce4ebf01..d9abb29b1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultKey; /** A key is a reference to an element by its ID. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultKey.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index 4399c6f75..d8588f386 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration of different key value types within a key. */ @IRI("aas:KeyTypes") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index a89545443..2f97a0d1c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -15,11 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + import java.io.Serializable; import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; @IRI("rdf:langString") public class LangString implements Serializable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index 7ea87c13b..b33334259 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringDefinitionTypeIec61360; /** String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 02cc9ba44..4a6b461b1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringNameType; /** String with length 128 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringNameType.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 7377fc32e..920fbdb0d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringPreferredNameTypeIec61360; /** String with length 255 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index c8bc2543f..e039af7ae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringShortNameTypeIec61360; /** String with length 18 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index 5010e4868..61c1d4d80 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringTextType; /** String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringTextType.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index d42b91c84..8c7bd3ba0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLevelType; /** * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index 309085169..b74d9a6c4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMessage; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultMessage.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java index 66d903f1e..1a1df99e5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** */ @IRI("aas:MessageType") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index a6616fae9..68781ba46 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** */ @IRI("aas:ModelType") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 2fb7a65cc..47e7e5a35 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration for denoting whether an element is a template or an instance. */ @IRI("aas:ModellingKind") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 909eb3097..862d53e61 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMultiLanguageProperty; + +import java.util.List; /** A property is a data element that has a multi-language value. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index cd872c284..2effeb2f3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperation; + +import java.util.List; /** An operation is a submodel element with input and output variables. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperation.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index 78b5de4df..66729ca89 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationHandle; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationHandle.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 5fb63a9be..71ff25734 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.math.BigInteger; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; + +import java.math.BigInteger; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index 0c9c2c490..1aa3ec1ea 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationResult; + +import java.util.List; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationResult.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index 3e4331ca2..4eb6f60c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationVariable; /** * The value of an operation variable is a submodel element that is used as input and/or output diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index 8921c4615..74f94ce44 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultPackageDescription; + +import java.util.List; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultPackageDescription.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index cda8f888b..62d7ed70e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProperty; /** A property is a data element that has a single value. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultProperty.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index a111f948c..c4ef562ad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProtocolInformation; + +import java.util.List; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultProtocolInformation.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 00b13c6b6..5c6b75b2e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -15,11 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + +import java.util.List; /** The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index a14d44dab..a5847360b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultQualifier; /** * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index 81cc9a551..a18328fa9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Enumeration for kinds of qualifiers. */ @IRI("aas:QualifierKind") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 27dc5c88e..781494292 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRange; /** A range data element is a data element that defines a range with min and max. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultRange.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index 04c7cf02e..b12f3deb1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -15,11 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; + +import java.util.List; /** An element that is referable by its 'idShort'. */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index a791107d6..b4288e4bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReference; + +import java.util.List; /** Reference to either a model element of the same or another AAS or to an external entity. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultReference.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index f9e45f978..5537afc90 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReferenceElement; /** * A reference element is a data element that defines a logical reference to another element within diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index 52a003433..a22366b98 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** Reference types */ @IRI("aas:ReferenceTypes") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 3aaebe24e..38dd2dd72 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRelationshipElement; /** * A relationship element is used to define a relationship between two elements being either diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 98f8acaaf..89f6b89ef 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResource; /** * Resource represents an address to a file (a locator). The value is an URI that can represent an diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index 40d6d30d9..36dbacffe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResult; + +import java.util.List; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultResult.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java index 28d92e9ec..4e92b268e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityAttributeObject; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java index 90abf6034..b034e8a45 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -16,8 +16,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityTypeEnum; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityTypeEnum.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index b6ad6a35d..1f219593d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSpecificAssetId; /** A specific asset ID describes a generic supplementary identifying attribute of the asset. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSpecificAssetId.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index 0877dcee3..dda2945b9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** State of an event */ @IRI("aas:StateOfEvent") diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index 9540448bd..a8089a694 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodel; + +import java.util.List; /** A submodel defines a specific aspect of the asset represented by the AAS. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodel.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index c6a3ea9ed..1863ce0c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index af5d2a612..fc1d55b71 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -16,8 +16,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; /** A submodel element is an element suitable for the description and differentiation of assets. */ @KnownSubtypes({ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index 1105a18a0..f4433a361 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementAttributes; /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index a2f221fe5..bb5bbae7c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementCollection; + +import java.util.List; /** * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index 3e3eead9d..b30d8b7d7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementList; + +import java.util.List; /** A submodel element list is an ordered list of submodel elements. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementList.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 6a76b732c..02770f824 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -15,11 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueList; + +import java.util.List; /** A set of value reference pairs. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueList.class)}) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index 6c7cb64e1..8d2d23b1b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -17,8 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueReferencePair; /** * A value reference pair within a value list. Each value has a global unique id defining its diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index 35952c801..1d91c24c0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -15,10 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; + import javax.xml.datatype.XMLGregorianCalendar; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import java.util.List; public abstract class AdministrativeInformationBuilder< T extends AdministrativeInformation, B extends AdministrativeInformationBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index a4e3ec131..be6999004 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -15,9 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; +import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class AnnotatedRelationshipElementBuilder< T extends AnnotatedRelationshipElement, B extends AnnotatedRelationshipElementBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index ba12a7fe3..e7bdbe249 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -15,9 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class AssetAdministrationShellBuilder< T extends AssetAdministrationShell, B extends AssetAdministrationShellBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index de5a3ec40..694331416 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -15,9 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class AssetAdministrationShellDescriptorBuilder< T extends AssetAdministrationShellDescriptor, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java index 7d22a5ef2..17045c0ab 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java @@ -15,9 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; +import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; +import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class AssetAdministrationShellEnvironmentBuilder< T extends AssetAdministrationShellEnvironment, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 43e5cf704..528fa7c95 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import java.util.List; + public abstract class AssetInformationBuilder< T extends AssetInformation, B extends AssetInformationBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index 4011cc2a7..2baa40410 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.StateOfEvent; +import java.util.List; + public abstract class BasicEventElementBuilder< T extends BasicEventElement, B extends BasicEventElementBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index 9a474ff81..5ca253702 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class BlobBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index 7b97bb23a..e8ac224cb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class CapabilityBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 1f798ed5b..3e93a587e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class ConceptDescriptionBuilder< T extends ConceptDescription, B extends ConceptDescriptionBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 0b05932d3..a4946d432 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -15,9 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; +import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class DataSpecificationIec61360Builder< T extends DataSpecificationIec61360, B extends DataSpecificationIec61360Builder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java index 24815abf5..efa572b10 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -15,10 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import java.util.List; + public abstract class DescriptorBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index e8176462e..831eda5c6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -15,8 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; public abstract class EmbeddedDataSpecificationBuilder< T extends EmbeddedDataSpecification, B extends EmbeddedDataSpecificationBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index a27877fbe..a61cd139f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -27,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +import java.util.List; + public abstract class EntityBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 448376be1..722ccc95b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; +import java.util.List; + public abstract class EnvironmentBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java index 9571ca1d6..019288e94 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class ExtensionBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index 031980bc2..df2a133fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class FileBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index e91ff3f88..387c68f1d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -15,8 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; public abstract class LangStringDefinitionTypeIec61360Builder< T extends LangStringDefinitionTypeIec61360, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index 45cd0e375..72dd3076c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -15,8 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; public abstract class LangStringPreferredNameTypeIec61360Builder< T extends LangStringPreferredNameTypeIec61360, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 6698e751c..0d3746ce7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -15,8 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; public abstract class LangStringShortNameTypeIec61360Builder< T extends LangStringShortNameTypeIec61360, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index f3b656b52..a32410df0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class MultiLanguagePropertyBuilder< T extends MultiLanguageProperty, B extends MultiLanguagePropertyBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index 9c91c34f3..67943bbe2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,6 +24,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class OperationBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java index eac7e6a1c..04968fa9f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -15,10 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.math.BigInteger; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import java.math.BigInteger; + public abstract class OperationRequestBuilder< T extends OperationRequest, B extends OperationRequestBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java index 77f389210..5ea9747cb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.Result; +import java.util.List; + public abstract class OperationResultBuilder< T extends OperationResult, B extends OperationResultBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java index b917d183c..f6246c21c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -15,9 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; +import java.util.List; + public abstract class PackageDescriptionBuilder< T extends PackageDescription, B extends PackageDescriptionBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index 8b6802dec..a40d89b1e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,6 +24,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class PropertyBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index 000f4d26f..b5b308318 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -15,10 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; +import java.util.List; + public abstract class ProtocolInformationBuilder< T extends ProtocolInformation, B extends ProtocolInformationBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index ac268120c..65d2c0aca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class QualifierBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index 20f436183..4f1b21725 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,6 +24,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Range; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class RangeBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index 3e464f71a..965bccd44 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; +import java.util.List; + public abstract class ReferenceBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index a4a035075..e04c0d6bc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement; +import java.util.List; + public abstract class ReferenceElementBuilder< T extends ReferenceElement, B extends ReferenceElementBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index 5166d9014..d4a888e96 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,6 +23,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement; +import java.util.List; + public abstract class RelationshipElementBuilder< T extends RelationshipElement, B extends RelationshipElementBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java index 9431a3c84..4b1182250 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java @@ -15,10 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; +import java.util.List; + public abstract class ResultBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java index aab45bc64..4028ae034 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -15,8 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; +import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; public abstract class SecurityAttributeObjectBuilder< T extends SecurityAttributeObject, B extends SecurityAttributeObjectBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index e91301c94..5d801cf40 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -15,10 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import java.util.List; + public abstract class SpecificAssetIdBuilder< T extends SpecificAssetId, B extends SpecificAssetIdBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index efd4fc21e..d3fdf1a48 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -27,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +import java.util.List; + public abstract class SubmodelBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java index bfe030a46..ff5e3cd2c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,6 +22,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; +import java.util.List; + public abstract class SubmodelDescriptorBuilder< T extends SubmodelDescriptor, B extends SubmodelDescriptorBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index 6be4f59ed..94d548e4a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -15,9 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.ModellingKind; +import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class SubmodelElementAttributesBuilder< T extends SubmodelElementAttributes, B extends SubmodelElementAttributesBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index 5927a644d..e8667b627 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -15,9 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection; + import java.util.List; -import org.eclipse.digitaltwin.aas4j.v3.model.*; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.*; public abstract class SubmodelElementCollectionBuilder< T extends SubmodelElementCollection, B extends SubmodelElementCollectionBuilder> diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index 5c6baf539..96fd5816b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -15,7 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -27,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList; +import java.util.List; + public abstract class SubmodelElementListBuilder< T extends SubmodelElementList, B extends SubmodelElementListBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index 94ef2f57c..d185054b8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -15,10 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; +import java.util.List; + public abstract class ValueListBuilder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index 98650dad4..d1b74cebf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -15,16 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import javax.xml.datatype.XMLGregorianCalendar; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AdministrativeInformationBuilder; +import javax.xml.datatype.XMLGregorianCalendar; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index da07e4994..1f1c47580 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AnnotatedRelationshipElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index 2547614c8..7e4eb56da 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java index 99c03a530..608f069f7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellDescriptorBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java index 1c82a92dc..cfafb56ed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; @@ -25,6 +22,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellEnvironmentBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index 49abc332f..9455637b3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; @@ -25,6 +22,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetInformationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java index 4629c5ae3..cf6e7fa65 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult */ @IRI("aas:BaseOperationResult") public class DefaultBaseOperationResult implements BaseOperationResult { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index 3e61f3f9c..3b3066365 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -30,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BasicEventElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index 285fc6b08..bd16efd7f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -15,10 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,6 +25,11 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BlobBuilder; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index 2982c0d78..7aabb0dae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -28,6 +25,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.CapabilityBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index 4d20981c7..0c72aa50a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -28,6 +25,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ConceptDescriptionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index a4175563e..d22c304a0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DataSpecificationIec61360Builder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java index 8c2d26dbf..70ed3ffa1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -15,14 +15,15 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor */ @IRI("aas:Descriptor") public class DefaultDescriptor implements Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index a34a02d68..23a78d33d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -15,13 +15,14 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EmbeddedDataSpecificationBuilder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java index 52a6a8a9f..2d4c98b31 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EndpointBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint */ @IRI("aas:Endpoint") public class DefaultEndpoint implements Endpoint { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index 41c40e896..060865011 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -31,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EntityBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index a800ea110..bef47f661 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; @@ -25,6 +22,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EnvironmentBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index b0cedf709..2b61ce698 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -15,13 +15,14 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Arrays; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EventPayloadBuilder; +import java.util.Arrays; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index 43a0c781c..b57dd4ed2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -15,15 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ExtensionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index a5912fa78..751813d82 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -28,6 +25,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.FileBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index f2db7a3bf..5ca78aebe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.KeyBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index 7d8ffb84e..dc76c9169 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringDefinitionTypeIec61360Builder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index 23bd491a8..6489d0842 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringNameTypeBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index 20ccf416a..ce9401fd2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringPreferredNameTypeIec61360Builder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index 3a6fc27d6..842e1eea4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringShortNameTypeIec61360Builder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index 44ffff1c0..8ebc0487f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringTextTypeBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index f7e5e44a4..be9b4dfd8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LevelTypeBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java index d3696007a..c12bcf678 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message */ @IRI("aas:Message") public class DefaultMessage implements Message { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 879fa3ce0..2f31338fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,6 +25,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MultiLanguagePropertyBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index d7500483e..dde297b32 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java index fe7d991fd..b322a5b96 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationHandleBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle */ @IRI("aas:OperationHandle") public class DefaultOperationHandle implements OperationHandle { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java index 8a22396f1..e9070b379 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -15,13 +15,14 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.math.BigInteger; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; +import java.math.BigInteger; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest */ @IRI("aas:OperationRequest") public class DefaultOperationRequest implements OperationRequest { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java index 636bb9007..f56817aeb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; @@ -25,6 +22,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult */ @IRI("aas:OperationResult") public class DefaultOperationResult implements OperationResult { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 1a141a1dd..d634f015f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationVariableBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java index 412173974..dabea88a1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -15,13 +15,14 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription */ @IRI("aas:PackageDescription") public class DefaultPackageDescription implements PackageDescription { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 642675dfd..7b7a08c15 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PropertyBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index 3969aa4c5..f073b1ed9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -15,14 +15,15 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation */ @IRI("aas:ProtocolInformation") public class DefaultProtocolInformation implements ProtocolInformation { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 25dd561b0..5b9dfe949 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; @@ -25,6 +22,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.QualifierBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index 1d419c421..d8bcb83f4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RangeBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index 67000cec5..03f88f6bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -15,15 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index 09e5bccf7..394a1b72c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,6 +25,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index 97472134e..1f3faa27d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,6 +25,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RelationshipElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index f581bd471..69c07b776 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResourceBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java index 00ee64504..d2baf9dab 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -15,14 +15,15 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResultBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result */ @IRI("aas:Result") public class DefaultResult implements Result { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java index d0252ed61..c2f25bd20 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityAttributeObjectBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java index e46f8d699..4d0c3b7c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java @@ -15,11 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityTypeEnumBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum */ @IRI("aas:SecurityTypeEnum") public class DefaultSecurityTypeEnum implements SecurityTypeEnum { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 66015be65..63ed7bb85 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -15,14 +15,15 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SpecificAssetIdBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 785d3a5c2..83d3c8fbb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -31,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java index 84bdae2a1..04054ec4e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -27,6 +24,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelDescriptorBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor */ @IRI("aas:SubmodelDescriptor") public class DefaultSubmodelDescriptor implements SubmodelDescriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java index 4547362b3..69cb41286 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementAttributesBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index 34560a37f..15222ab3a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,6 +26,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementCollectionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index 06a480894..e335d05fa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -15,9 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -31,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementListBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 62e4b0095..71e656dad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -15,14 +15,15 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueListBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index f97c32299..16c6520c6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -15,12 +15,13 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueReferencePairBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair * From 22137a4a3dfb5f7ef4611631609b05f6d40f9737 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Wed, 15 Apr 2026 17:21:26 +0200 Subject: [PATCH 06/12] add missing custom classes --- .../CustomDataSpecificationBuilder.java | 22 ++++++ .../impl/DefaultCustomDataSpecification.java | 71 +++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java new file mode 100644 index 000000000..dc8ade1a1 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.CustomDataSpecification; + +public abstract class CustomDataSpecificationBuilder< + T extends CustomDataSpecification, B extends CustomDataSpecificationBuilder> + extends ExtendableBuilder {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java new file mode 100644 index 000000000..7f8a5cf0d --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.CustomDataSpecification; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.CustomDataSpecificationBuilder; + +import java.util.Objects; + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.CustomDataSpecification + * + *

A custom data specification is a user-defined extension of the standard data specification + * content. + */ +@IRI("aas:CustomDataSpecification") +public class DefaultCustomDataSpecification implements CustomDataSpecification { + + public DefaultCustomDataSpecification() {} + + @Override + public String toString() { + return "DefaultCustomDataSpecification{" + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } + return true; + } + + /** This builder class can be used to construct a DefaultCustomDataSpecification bean. */ + public static class Builder + extends CustomDataSpecificationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultCustomDataSpecification newBuildingInstance() { + return new DefaultCustomDataSpecification(); + } + } +} From 0c3d0dd6bbd7f69c7abc90b2fef68adc0521f3e3 Mon Sep 17 00:00:00 2001 From: sebbader-sap <107036549+sebbader-sap@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:22:54 +0200 Subject: [PATCH 07/12] remove local-only test --- .../aasx/deserialization/AASXDeserializerTest.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java b/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java index 72da6586c..c308e9b11 100644 --- a/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java +++ b/dataformat-aasx/src/test/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java @@ -53,18 +53,6 @@ public class AASXDeserializerTest { @Rule public TemporaryFolder tempFolder = new TemporaryFolder(); - @Test - public void ehTest() throws IOException, InvalidFormatException, DeserializationException { - java.io.File file = - new java.io.File( - "/Users/I562354/Documents/2_git/aas4j/dataformat-aasx/src/test/resources/aas_X901240120D_sba.aasx"); - - InputStream in = new FileInputStream(file); - AASXDeserializer deserializer = new AASXDeserializer(in); - - Environment environment = deserializer.read(); - } - @Test public void roundTrip() throws SerializationException, From def61959cbe8d8900a8204bed651f70891652a26 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Wed, 27 May 2026 18:57:30 +0200 Subject: [PATCH 08/12] apply review comments for - XMLGregorianCalendar -> java Date - singular forms for getters and setters - adding annotations for AI involvement --- .../aas4j/v3/model/AasSubmodelElements.java | 166 +++-- .../aas4j/v3/model/AbstractLangString.java | 95 +-- .../v3/model/AdministrativeInformation.java | 207 +++--- .../model/AnnotatedRelationshipElement.java | 58 +- .../v3/model/AssetAdministrationShell.java | 124 ++-- .../AssetAdministrationShellDescriptor.java | 320 +++++---- .../AssetAdministrationShellEnvironment.java | 92 --- .../aas4j/v3/model/AssetInformation.java | 212 +++--- .../digitaltwin/aas4j/v3/model/AssetKind.java | 47 +- .../aas4j/v3/model/BaseOperationResult.java | 86 ++- .../aas4j/v3/model/BasicEventElement.java | 345 ++++----- .../digitaltwin/aas4j/v3/model/Blob.java | 85 +-- .../aas4j/v3/model/Capability.java | 20 +- .../aas4j/v3/model/ConceptDescription.java | 52 +- .../v3/model/CustomDataSpecification.java | 26 - .../aas4j/v3/model/DataElement.java | 28 +- .../v3/model/DataSpecificationContent.java | 19 +- .../v3/model/DataSpecificationIec61360.java | 431 ++++++------ .../aas4j/v3/model/DataTypeDefXsd.java | 283 ++++---- .../aas4j/v3/model/DataTypeIec61360.java | 240 ++++--- .../aas4j/v3/model/Descriptor.java | 85 ++- .../digitaltwin/aas4j/v3/model/Direction.java | 33 +- .../v3/model/EmbeddedDataSpecification.java | 95 +-- .../digitaltwin/aas4j/v3/model/Endpoint.java | 82 ++- .../digitaltwin/aas4j/v3/model/Entity.java | 164 ++--- .../aas4j/v3/model/EntityType.java | 43 +- .../aas4j/v3/model/Environment.java | 123 ++-- .../aas4j/v3/model/EventElement.java | 24 +- .../aas4j/v3/model/EventPayload.java | 331 ++++----- .../aas4j/v3/model/ExecutionState.java | 58 +- .../digitaltwin/aas4j/v3/model/Extension.java | 156 ++-- .../digitaltwin/aas4j/v3/model/File.java | 95 +-- .../aas4j/v3/model/HasDataSpecification.java | 70 +- .../aas4j/v3/model/HasExtensions.java | 56 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 57 +- .../aas4j/v3/model/HasSemantics.java | 104 +-- .../aas4j/v3/model/Identifiable.java | 91 +-- .../digitaltwin/aas4j/v3/model/Key.java | 95 +-- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 240 ++++--- .../aas4j/v3/model/LangString.java | 133 ++-- .../LangStringDefinitionTypeIec61360.java | 24 +- .../aas4j/v3/model/LangStringNameType.java | 24 +- .../LangStringPreferredNameTypeIec61360.java | 24 +- .../LangStringShortNameTypeIec61360.java | 24 +- .../aas4j/v3/model/LangStringTextType.java | 24 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 153 ++-- .../digitaltwin/aas4j/v3/model/Message.java | 163 +++-- .../digitaltwin/aas4j/v3/model/ModelType.java | 183 ++--- .../aas4j/v3/model/ModellingKind.java | 43 +- .../aas4j/v3/model/MultiLanguageProperty.java | 88 +-- .../digitaltwin/aas4j/v3/model/Operation.java | 122 ++-- .../aas4j/v3/model/OperationHandle.java | 65 +- .../aas4j/v3/model/OperationRequest.java | 118 ++-- .../aas4j/v3/model/OperationResult.java | 118 ++-- .../aas4j/v3/model/OperationVariable.java | 53 +- .../aas4j/v3/model/PackageDescription.java | 81 ++- .../digitaltwin/aas4j/v3/model/Property.java | 123 ++-- .../aas4j/v3/model/ProtocolInformation.java | 245 ++++--- .../aas4j/v3/model/Qualifiable.java | 58 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 205 +++--- .../aas4j/v3/model/QualifierKind.java | 41 +- .../digitaltwin/aas4j/v3/model/Range.java | 123 ++-- .../digitaltwin/aas4j/v3/model/Referable.java | 166 ++--- .../digitaltwin/aas4j/v3/model/Reference.java | 122 ++-- .../aas4j/v3/model/ReferenceElement.java | 57 +- .../aas4j/v3/model/ReferenceTypes.java | 33 +- .../aas4j/v3/model/RelationshipElement.java | 85 +-- .../digitaltwin/aas4j/v3/model/Resource.java | 85 +-- .../digitaltwin/aas4j/v3/model/Result.java | 65 +- .../v3/model/SecurityAttributeObject.java | 104 +-- .../aas4j/v3/model/SecurityTypeEnum.java | 39 +- .../aas4j/v3/model/SpecificAssetId.java | 123 ++-- .../aas4j/v3/model/StateOfEvent.java | 33 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 61 +- .../aas4j/v3/model/SubmodelDescriptor.java | 211 +++--- .../aas4j/v3/model/SubmodelElement.java | 37 +- .../v3/model/SubmodelElementAttributes.java | 55 +- .../v3/model/SubmodelElementCollection.java | 52 +- .../aas4j/v3/model/SubmodelElementList.java | 218 +++--- .../digitaltwin/aas4j/v3/model/ValueList.java | 56 +- .../aas4j/v3/model/ValueReferencePair.java | 85 +-- .../aas4j/v3/model/annotations/IRI.java | 26 +- .../v3/model/annotations/KnownSubtypes.java | 35 +- .../v3/model/builder/AbstractBuilder.java | 35 +- .../AdministrativeInformationBuilder.java | 157 ++--- .../AnnotatedRelationshipElementBuilder.java | 430 +++++------ .../AssetAdministrationShellBuilder.java | 364 +++++----- ...tAdministrationShellDescriptorBuilder.java | 335 +++++---- ...AdministrationShellEnvironmentBuilder.java | 95 --- .../builder/AssetInformationBuilder.java | 134 ++-- .../builder/BaseOperationResultBuilder.java | 81 ++- .../builder/BasicEventElementBuilder.java | 474 ++++++------- .../aas4j/v3/model/builder/BlobBuilder.java | 388 +++++----- .../aas4j/v3/model/builder/Builder.java | 13 +- .../v3/model/builder/CapabilityBuilder.java | 344 ++++----- .../builder/ConceptDescriptionBuilder.java | 320 ++++----- .../DataSpecificationIec61360Builder.java | 343 ++++----- .../v3/model/builder/DescriptorBuilder.java | 106 ++- .../EmbeddedDataSpecificationBuilder.java | 55 +- .../v3/model/builder/EndpointBuilder.java | 55 +- .../aas4j/v3/model/builder/EntityBuilder.java | 434 ++++++------ .../v3/model/builder/EnvironmentBuilder.java | 134 ++-- .../v3/model/builder/EventPayloadBuilder.java | 176 ++--- .../v3/model/builder/ExtendableBuilder.java | 16 +- .../v3/model/builder/ExtensionBuilder.java | 174 ++--- .../aas4j/v3/model/builder/FileBuilder.java | 388 +++++----- .../aas4j/v3/model/builder/KeyBuilder.java | 55 +- ...ngStringDefinitionTypeIec61360Builder.java | 56 +- .../builder/LangStringNameTypeBuilder.java | 55 +- ...tringPreferredNameTypeIec61360Builder.java | 56 +- ...angStringShortNameTypeIec61360Builder.java | 56 +- .../builder/LangStringTextTypeBuilder.java | 55 +- .../v3/model/builder/LevelTypeBuilder.java | 95 +-- .../v3/model/builder/MessageBuilder.java | 108 +-- .../builder/MultiLanguagePropertyBuilder.java | 408 +++++------ .../v3/model/builder/OperationBuilder.java | 434 ++++++------ .../model/builder/OperationHandleBuilder.java | 46 +- .../builder/OperationRequestBuilder.java | 107 +-- .../model/builder/OperationResultBuilder.java | 162 ++--- .../builder/OperationVariableBuilder.java | 35 +- .../builder/PackageDescriptionBuilder.java | 78 +- .../v3/model/builder/PropertyBuilder.java | 410 +++++------ .../builder/ProtocolInformationBuilder.java | 185 ++--- .../v3/model/builder/QualifierBuilder.java | 174 ++--- .../aas4j/v3/model/builder/RangeBuilder.java | 410 +++++------ .../v3/model/builder/ReferenceBuilder.java | 94 +-- .../builder/ReferenceElementBuilder.java | 364 +++++----- .../builder/RelationshipElementBuilder.java | 386 +++++----- .../v3/model/builder/ResourceBuilder.java | 55 +- .../aas4j/v3/model/builder/ResultBuilder.java | 63 +- .../SecurityAttributeObjectBuilder.java | 79 ++- .../model/builder/SpecificAssetIdBuilder.java | 134 ++-- .../v3/model/builder/SubmodelBuilder.java | 454 ++++++------ .../builder/SubmodelDescriptorBuilder.java | 255 ++++--- .../SubmodelElementAttributesBuilder.java | 364 +++++----- .../SubmodelElementCollectionBuilder.java | 386 +++++----- .../builder/SubmodelElementListBuilder.java | 434 ++++++------ .../v3/model/builder/ValueListBuilder.java | 54 +- .../builder/ValueReferencePairBuilder.java | 55 +- .../DefaultAdministrativeInformation.java | 289 ++++---- .../DefaultAnnotatedRelationshipElement.java | 482 ++++++------- .../impl/DefaultAssetAdministrationShell.java | 449 ++++++------ ...ultAssetAdministrationShellDescriptor.java | 457 ++++++------ .../model/impl/DefaultAssetInformation.java | 251 ++++--- .../impl/DefaultBaseOperationResult.java | 157 +++-- .../model/impl/DefaultBasicEventElement.java | 666 ++++++++---------- .../aas4j/v3/model/impl/DefaultBlob.java | 449 ++++++------ .../v3/model/impl/DefaultCapability.java | 393 +++++------ .../model/impl/DefaultConceptDescription.java | 397 +++++------ .../DefaultDataSpecificationIec61360.java | 493 +++++++------ .../v3/model/impl/DefaultDescriptor.java | 141 ++-- .../DefaultEmbeddedDataSpecification.java | 140 ++-- .../aas4j/v3/model/impl/DefaultEndpoint.java | 140 ++-- .../aas4j/v3/model/impl/DefaultEntity.java | 515 +++++++------- .../v3/model/impl/DefaultEnvironment.java | 181 +++-- .../v3/model/impl/DefaultEventPayload.java | 368 +++++----- .../aas4j/v3/model/impl/DefaultExtension.java | 285 ++++---- .../aas4j/v3/model/impl/DefaultFile.java | 447 ++++++------ .../aas4j/v3/model/impl/DefaultKey.java | 131 ++-- ...faultLangStringDefinitionTypeIec61360.java | 140 ++-- .../model/impl/DefaultLangStringNameType.java | 139 ++-- ...ltLangStringPreferredNameTypeIec61360.java | 156 ++-- ...efaultLangStringShortNameTypeIec61360.java | 140 ++-- .../model/impl/DefaultLangStringTextType.java | 139 ++-- .../aas4j/v3/model/impl/DefaultLevelType.java | 215 +++--- .../aas4j/v3/model/impl/DefaultMessage.java | 232 +++--- .../impl/DefaultMultiLanguageProperty.java | 448 ++++++------ .../aas4j/v3/model/impl/DefaultOperation.java | 481 ++++++------- .../v3/model/impl/DefaultOperationHandle.java | 128 ++-- .../model/impl/DefaultOperationRequest.java | 201 +++--- .../v3/model/impl/DefaultOperationResult.java | 206 ++---- .../model/impl/DefaultOperationVariable.java | 106 +-- .../model/impl/DefaultPackageDescription.java | 141 ++-- .../aas4j/v3/model/impl/DefaultProperty.java | 481 ++++++------- .../impl/DefaultProtocolInformation.java | 336 +++++---- .../aas4j/v3/model/impl/DefaultQualifier.java | 331 +++++---- .../aas4j/v3/model/impl/DefaultRange.java | 481 ++++++------- .../aas4j/v3/model/impl/DefaultReference.java | 168 ++--- .../model/impl/DefaultReferenceElement.java | 415 +++++------ .../impl/DefaultRelationshipElement.java | 448 ++++++------ .../aas4j/v3/model/impl/DefaultResource.java | 134 ++-- .../aas4j/v3/model/impl/DefaultResult.java | 121 ++-- .../impl/DefaultSecurityAttributeObject.java | 178 ++--- .../v3/model/impl/DefaultSpecificAssetId.java | 249 ++++--- .../aas4j/v3/model/impl/DefaultSubmodel.java | 512 +++++++------- .../model/impl/DefaultSubmodelDescriptor.java | 365 +++++----- .../DefaultSubmodelElementAttributes.java | 411 +++++------ .../DefaultSubmodelElementCollection.java | 414 +++++------ .../impl/DefaultSubmodelElementList.java | 552 +++++++-------- .../aas4j/v3/model/impl/DefaultValueList.java | 106 +-- .../model/impl/DefaultValueReferencePair.java | 139 ++-- 191 files changed, 17801 insertions(+), 17877 deletions(-) delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index f34e03b28..15425fdd0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,77 +15,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration of all possible elements of a 'SubmodelElementList'. */ + +/** + * Enumeration of all possible elements of a 'SubmodelElementList'. + */ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") - BLOB, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") - CAPABILITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") - DATA_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") - ENTITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") - EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") - FILE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") - OPERATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") - PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") - RANGE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") - REFERENCE_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") - SUBMODEL_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Blob") + BLOB, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Capability") + CAPABILITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/DataElement") + DATA_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Entity") + ENTITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/EventElement") + EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/File") + FILE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Operation") + OPERATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Property") + PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Range") + RANGE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/ReferenceElement") + REFERENCE_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElement") + SUBMODEL_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; - /** */ - @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index de43ec7da..52fd7fd57 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,54 +15,59 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** Strings with language tags */ + +/** + * Strings with language tags + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringTextType.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringTextType.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) }) public interface AbstractLangString { - /** - * Language tag conforming to BCP 47 - * - *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/language - * - * @return Returns the String for the property language. - */ - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - String getLanguage(); + /** + * Language tag conforming to BCP 47 + * + * More information under https://admin-shell.io/aas/3/0/AbstractLangString/language + * + * @return Returns the String for the property language. + */ + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + String getLanguage(); + + /** + * Language tag conforming to BCP 47 + * + * More information under https://admin-shell.io/aas/3/0/AbstractLangString/language + * + * @param language desired value for the property language. + */ + void setLanguage(String language); - /** - * Language tag conforming to BCP 47 - * - *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/language - * - * @param language desired value for the property language. - */ - void setLanguage(String language); + /** + * Text in the 'language' + * + * More information under https://admin-shell.io/aas/3/0/AbstractLangString/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + String getText(); - /** - * Text in the 'language' - * - *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - String getText(); + /** + * Text in the 'language' + * + * More information under https://admin-shell.io/aas/3/0/AbstractLangString/text + * + * @param text desired value for the property text. + */ + void setText(String text); - /** - * Text in the 'language' - * - *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/text - * - * @param text desired value for the property text. - */ - void setText(String text); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 16e334094..25e8457fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,127 +15,94 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAdministrativeInformation; -import javax.xml.datatype.XMLGregorianCalendar; -/** Administrative meta-information for an element like version information. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAdministrativeInformation.class)}) +/** + * Administrative meta-information for an element like version information. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) +}) public interface AdministrativeInformation extends HasDataSpecification { - /** - * The date and time when the element was created. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt - * - * @return Returns the XMLGregorianCalendar for the property createdAt. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") - XMLGregorianCalendar getCreatedAt(); - - /** - * The date and time when the element was created. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt - * - * @param createdAt desired value for the property createdAt. - */ - void setCreatedAt(XMLGregorianCalendar createdAt); - - /** - * Version of the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version - * - * @return Returns the String for the property version. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") - String getVersion(); - - /** - * Version of the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version - * - * @param version desired value for the property version. - */ - void setVersion(String version); - - /** - * Revision of the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision - * - * @return Returns the String for the property revision. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") - String getRevision(); - - /** - * Revision of the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision - * - * @param revision desired value for the property revision. - */ - void setRevision(String revision); - - /** - * The subject ID of the subject responsible for making the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator - * - * @return Returns the Reference for the property creator. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") - Reference getCreator(); - - /** - * The subject ID of the subject responsible for making the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator - * - * @param creator desired value for the property creator. - */ - void setCreator(Reference creator); - - /** - * Identifier of the template that guided the creation of the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId - * - * @return Returns the String for the property templateId. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") - String getTemplateId(); - - /** - * Identifier of the template that guided the creation of the element. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId - * - * @param templateId desired value for the property templateId. - */ - void setTemplateId(String templateId); - - /** - * The date and time when the element was last updated. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt - * - * @return Returns the XMLGregorianCalendar for the property updatedAt. - */ - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") - XMLGregorianCalendar getUpdatedAt(); + /** + * Version of the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version + * + * @return Returns the String for the property version. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") + String getVersion(); + + /** + * Version of the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version + * + * @param version desired value for the property version. + */ + void setVersion(String version); + + /** + * Revision of the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision + * + * @return Returns the String for the property revision. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") + String getRevision(); + + /** + * Revision of the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision + * + * @param revision desired value for the property revision. + */ + void setRevision(String revision); + + /** + * The subject ID of the subject responsible for making the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator + * + * @return Returns the Reference for the property creator. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") + Reference getCreator(); + + /** + * The subject ID of the subject responsible for making the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator + * + * @param creator desired value for the property creator. + */ + void setCreator(Reference creator); + + /** + * Identifier of the template that guided the creation of the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId + * + * @return Returns the String for the property templateId. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") + String getTemplateId(); + + /** + * Identifier of the template that guided the creation of the element. + * + * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId + * + * @param templateId desired value for the property templateId. + */ + void setTemplateId(String templateId); - /** - * The date and time when the element was last updated. - * - *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt - * - * @param updatedAt desired value for the property updatedAt. - */ - void setUpdatedAt(XMLGregorianCalendar updatedAt); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index 6d86b534a..987cc7a15 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,33 +21,35 @@ import java.util.List; + /** * An annotated relationship element is a relationship element that can be annotated with additional * data elements. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) +}) public interface AnnotatedRelationshipElement extends RelationshipElement { - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - * - *

More information under - * https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations - * - * @return Returns the List of DataElements for the property annotations. - */ - @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") - List getAnnotations(); - - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - * - *

More information under - * https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations - * - * @param annotations desired value for the property annotations. - */ - void setAnnotations(List annotations); + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + * More information under https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations + * + * @return Returns the List of DataElements for the property annotations. + */ + @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") + List getAnnotations(); + + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + * More information under https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations + * + * @param annotations desired value for the property annotations. + */ + void setAnnotations(List annotations); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index eee95ea73..2b51a7a67 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,66 +21,70 @@ import java.util.List; -/** An asset administration shell. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class)}) + +/** + * An asset administration shell. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) +}) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { - /** - * The reference to the AAS the AAS was derived from. - * - *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom - * - * @return Returns the Reference for the property derivedFrom. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") - Reference getDerivedFrom(); + /** + * The reference to the AAS the AAS was derived from. + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom + * + * @return Returns the Reference for the property derivedFrom. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") + Reference getDerivedFrom(); + + /** + * The reference to the AAS the AAS was derived from. + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom + * + * @param derivedFrom desired value for the property derivedFrom. + */ + void setDerivedFrom(Reference derivedFrom); - /** - * The reference to the AAS the AAS was derived from. - * - *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom - * - * @param derivedFrom desired value for the property derivedFrom. - */ - void setDerivedFrom(Reference derivedFrom); + /** + * Meta-information about the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation + * + * @return Returns the AssetInformation for the property assetInformation. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") + AssetInformation getAssetInformation(); - /** - * Meta-information about the asset the AAS is representing. - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation - * - * @return Returns the AssetInformation for the property assetInformation. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") - AssetInformation getAssetInformation(); + /** + * Meta-information about the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation + * + * @param assetInformation desired value for the property assetInformation. + */ + void setAssetInformation(AssetInformation assetInformation); - /** - * Meta-information about the asset the AAS is representing. - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation - * - * @param assetInformation desired value for the property assetInformation. - */ - void setAssetInformation(AssetInformation assetInformation); + /** + * References to submodels of the AAS. + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels + * + * @return Returns the List of References for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") + List getSubmodels(); - /** - * References to submodels of the AAS. - * - *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels - * - * @return Returns the List of References for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") - List getSubmodels(); + /** + * References to submodels of the AAS. + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); - /** - * References to submodels of the AAS. - * - *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index 51e0d4834..67aedfbf9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,143 +21,179 @@ import java.util.List; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) +}) public interface AssetAdministrationShellDescriptor extends Descriptor { - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description - * - * @return Returns the LangStringTextType for the property description. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") - LangStringTextType getDescription(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description - * - * @param description desired value for the property description. - */ - void setDescription(LangStringTextType description); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName - * - * @return Returns the LangStringNameType for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") - LangStringNameType getDisplayName(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName - * - * @param displayName desired value for the property displayName. - */ - void setDisplayName(LangStringNameType displayName); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId - * - * @return Returns the Reference for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") - Reference getGlobalAssetId(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(Reference globalAssetId); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") - String getIdShort(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification - * - * @return Returns the String for the property identification. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") - String getIdentification(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification - * - * @param identification desired value for the property identification. - */ - void setIdentification(String identification); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") - List getSpecificAssetIds(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @return Returns the SubmodelDescriptor for the property submodelDescriptors. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") - SubmodelDescriptor getSubmodelDescriptors(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @param submodelDescriptors desired value for the property submodelDescriptors. - */ - void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors); + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind + * + * @return Returns the AssetKind for the property assetKind. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") + AssetKind getAssetKind(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind + * + * @param assetKind desired value for the property assetKind. + */ + void setAssetKind(AssetKind assetKind); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType + * + * @return Returns the String for the property assetType. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") + String getAssetType(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType + * + * @param assetType desired value for the property assetType. + */ + void setAssetType(String assetType); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints + * + * @return Returns the List of Endpoints for the property endpoints. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") + List getEndpoints(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints + * + * @param endpoints desired value for the property endpoints. + */ + void setEndpoints(List endpoints); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") + String getGlobalAssetId(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); + + /** + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") + String getIdShort(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") + String getId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id + * + * @param id desired value for the property id. + */ + void setId(String id); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") + List getSpecificAssetIds(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @return Returns the List of SubmodelDescriptors for the property submodelDescriptors. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") + List getSubmodelDescriptors(); + + /** + * + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @param submodelDescriptors desired value for the property submodelDescriptors. + */ + void setSubmodelDescriptors(List submodelDescriptors); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java deleted file mode 100644 index 7b5255044..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellEnvironment.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellEnvironment; - -import java.util.List; - -/** Container for the sets of different identifiables. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellEnvironment.class)}) -public interface AssetAdministrationShellEnvironment { - - /** - * Asset administration shell - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells - * - * @return Returns the List of AssetAdministrationShells for the property - * assetAdministrationShells. - */ - @IRI( - "https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") - List getAssetAdministrationShells(); - - /** - * Asset administration shell - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells - * - * @param assetAdministrationShells desired value for the property assetAdministrationShells. - */ - void setAssetAdministrationShells(List assetAdministrationShells); - - /** - * Concept description - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions - * - * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") - List getConceptDescriptions(); - - /** - * Concept description - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions - * - * @param conceptDescriptions desired value for the property conceptDescriptions. - */ - void setConceptDescriptions(List conceptDescriptions); - - /** - * Submodel - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels - * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") - List getSubmodels(); - - /** - * Submodel - * - *

More information under - * https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 6eda562f6..61ce8f421 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,109 +21,113 @@ import java.util.List; + /** * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetInformation.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultAssetInformation.class) +}) public interface AssetInformation { - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind - * - * @return Returns the AssetKind for the property assetKind. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") - AssetKind getAssetKind(); - - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind - * - * @param assetKind desired value for the property assetKind. - */ - void setAssetKind(AssetKind assetKind); - - /** - * Global identifier of the asset the AAS is representing. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") - String getGlobalAssetId(); - - /** - * Global identifier of the asset the AAS is representing. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") - List getSpecificAssetIds(); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the - * asset under consideration as identified by 'globalAssetId'. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType - * - * @return Returns the String for the property assetType. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") - String getAssetType(); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the - * asset under consideration as identified by 'globalAssetId'. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType - * - * @param assetType desired value for the property assetType. - */ - void setAssetType(String assetType); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail - * - * @return Returns the Resource for the property defaultThumbnail. - */ - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") - Resource getDefaultThumbnail(); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail - * - * @param defaultThumbnail desired value for the property defaultThumbnail. - */ - void setDefaultThumbnail(Resource defaultThumbnail); + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind + * + * @return Returns the AssetKind for the property assetKind. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") + AssetKind getAssetKind(); + + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind + * + * @param assetKind desired value for the property assetKind. + */ + void setAssetKind(AssetKind assetKind); + + /** + * Global identifier of the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") + String getGlobalAssetId(); + + /** + * Global identifier of the asset the AAS is representing. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") + List getSpecificAssetIds(); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset + * under consideration as identified by 'globalAssetId'. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType + * + * @return Returns the String for the property assetType. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") + String getAssetType(); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset + * under consideration as identified by 'globalAssetId'. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType + * + * @param assetType desired value for the property assetType. + */ + void setAssetType(String assetType); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail + * + * @return Returns the Resource for the property defaultThumbnail. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") + Resource getDefaultThumbnail(); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail + * + * @param defaultThumbnail desired value for the property defaultThumbnail. + */ + void setDefaultThumbnail(Resource defaultThumbnail); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 7130f5831..4ab977420 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an asset is a type asset or an instance asset. */ + +/** + * Enumeration for denoting whether an asset is a type asset or an instance asset. + */ @IRI("aas:AssetKind") public enum AssetKind { - /** Batch */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Batch") - BATCH, - - /** Instance asset */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Instance") - INSTANCE, + /** + * Instance asset + */ + @IRI("https://admin-shell.io/aas/3/0/AssetKind/Instance") + INSTANCE, - /** Neither a type asset nor an instance asset nor a role asset */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/NotApplicable") - NOT_APPLICABLE, + /** + * Neither a type asset nor an instance asset + */ + @IRI("https://admin-shell.io/aas/3/0/AssetKind/NotApplicable") + NOT_APPLICABLE, - /** Role asset */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Role") - ROLE, + /** + * Type asset + */ + @IRI("https://admin-shell.io/aas/3/0/AssetKind/Type") + TYPE; - /** Type asset */ - @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") - TYPE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java index 41cee0b32..0da07e1a0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,41 +15,51 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBaseOperationResult; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBaseOperationResult.class)}) -public interface BaseOperationResult { - - /** - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState - * - * @return Returns the ExecutionState for the property executionState. - */ - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") - ExecutionState getExecutionState(); - - /** - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState - * - * @param executionState desired value for the property executionState. - */ - void setExecutionState(ExecutionState executionState); - - /** - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success - * - * @return Returns the boolean for the property success. - */ - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") - boolean getSuccess(); - - /** - * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success - * - * @param success desired value for the property success. - */ - void setSuccess(boolean success); + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultBaseOperationResult.class) +}) +public interface BaseOperationResult extends Result { + + /** + * + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState + * + * @return Returns the ExecutionState for the property executionState. + */ + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") + ExecutionState getExecutionState(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState + * + * @param executionState desired value for the property executionState. + */ + void setExecutionState(ExecutionState executionState); + + /** + * + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") + boolean getSuccess(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index bc62edbdd..b4544ceef 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,175 +15,180 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBasicEventElement; -/** A basic event element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBasicEventElement.class)}) + +/** + * A basic event element. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultBasicEventElement.class) +}) public interface BasicEventElement extends EventElement { - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed - * - * @return Returns the Reference for the property observed. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") - Reference getObserved(); - - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed - * - * @param observed desired value for the property observed. - */ - void setObserved(Reference observed); - - /** - * Direction of event. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction - * - * @return Returns the Direction for the property direction. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") - Direction getDirection(); - - /** - * Direction of event. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction - * - * @param direction desired value for the property direction. - */ - void setDirection(Direction direction); - - /** - * State of event. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/state - * - * @return Returns the StateOfEvent for the property state. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") - StateOfEvent getState(); - - /** - * State of event. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/state - * - * @param state desired value for the property state. - */ - void setState(StateOfEvent state); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic - * - * @return Returns the String for the property messageTopic. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") - String getMessageTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic - * - * @param messageTopic desired value for the property messageTopic. - */ - void setMessageTopic(String messageTopic); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker - * - * @return Returns the Reference for the property messageBroker. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") - Reference getMessageBroker(); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker - * - * @param messageBroker desired value for the property messageBroker. - */ - void setMessageBroker(Reference messageBroker); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output - * direction). - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate - * - * @return Returns the String for the property lastUpdate. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") - String getLastUpdate(); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output - * direction). - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate - * - * @param lastUpdate desired value for the property lastUpdate. - */ - void setLastUpdate(String lastUpdate); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the - * respective Referable can handle input events. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval - * - * @return Returns the String for the property minInterval. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") - String getMinInterval(); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the - * respective Referable can handle input events. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval - * - * @param minInterval desired value for the property minInterval. - */ - void setMinInterval(String minInterval); - - /** - * For input direction: not applicable. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval - * - * @return Returns the String for the property maxInterval. - */ - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") - String getMaxInterval(); - - /** - * For input direction: not applicable. - * - *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval - * - * @param maxInterval desired value for the property maxInterval. - */ - void setMaxInterval(String maxInterval); + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed + * + * @return Returns the Reference for the property observed. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") + Reference getObserved(); + + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed + * + * @param observed desired value for the property observed. + */ + void setObserved(Reference observed); + + /** + * Direction of event. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction + * + * @return Returns the Direction for the property direction. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") + Direction getDirection(); + + /** + * Direction of event. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction + * + * @param direction desired value for the property direction. + */ + void setDirection(Direction direction); + + /** + * State of event. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/state + * + * @return Returns the StateOfEvent for the property state. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") + StateOfEvent getState(); + + /** + * State of event. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/state + * + * @param state desired value for the property state. + */ + void setState(StateOfEvent state); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic + * + * @return Returns the String for the property messageTopic. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") + String getMessageTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic + * + * @param messageTopic desired value for the property messageTopic. + */ + void setMessageTopic(String messageTopic); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker + * + * @return Returns the Reference for the property messageBroker. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") + Reference getMessageBroker(); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker + * + * @param messageBroker desired value for the property messageBroker. + */ + void setMessageBroker(Reference messageBroker); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate + * + * @return Returns the String for the property lastUpdate. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") + String getLastUpdate(); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate + * + * @param lastUpdate desired value for the property lastUpdate. + */ + void setLastUpdate(String lastUpdate); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the respective + * Referable can handle input events. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval + * + * @return Returns the String for the property minInterval. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") + String getMinInterval(); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the respective + * Referable can handle input events. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval + * + * @param minInterval desired value for the property minInterval. + */ + void setMinInterval(String minInterval); + + /** + * For input direction: not applicable. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval + * + * @return Returns the String for the property maxInterval. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") + String getMaxInterval(); + + /** + * For input direction: not applicable. + * + * More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval + * + * @param maxInterval desired value for the property maxInterval. + */ + void setMaxInterval(String maxInterval); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index 1795f74a1..1edb58bed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +15,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBlob; + /** * A 'Blob' is a data element that represents a file that is contained with its source code in the * value attribute. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBlob.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultBlob.class) +}) public interface Blob extends DataElement { - /** - * The value of the 'Blob' instance of a blob data element. - * - *

More information under https://admin-shell.io/aas/3/2/Blob/value - * - * @return Returns the byte[] for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Blob/value") - byte[] getValue(); + /** + * The value of the 'Blob' instance of a blob data element. + * + * More information under https://admin-shell.io/aas/3/0/Blob/value + * + * @return Returns the byte[] for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Blob/value") + byte[] getValue(); + + /** + * The value of the 'Blob' instance of a blob data element. + * + * More information under https://admin-shell.io/aas/3/0/Blob/value + * + * @param value desired value for the property value. + */ + void setValue(byte[] value); - /** - * The value of the 'Blob' instance of a blob data element. - * - *

More information under https://admin-shell.io/aas/3/2/Blob/value - * - * @param value desired value for the property value. - */ - void setValue(byte[] value); + /** + * Content type of the content of the 'Blob'. + * + * More information under https://admin-shell.io/aas/3/0/Blob/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") + String getContentType(); - /** - * Content type of the content of the 'Blob'. - * - *

More information under https://admin-shell.io/aas/3/2/Blob/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") - String getContentType(); + /** + * Content type of the content of the 'Blob'. + * + * More information under https://admin-shell.io/aas/3/0/Blob/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); - /** - * Content type of the content of the 'Blob'. - * - *

More information under https://admin-shell.io/aas/3/2/Blob/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 4dc3986e8..0dc242c2f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,12 +15,18 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCapability; + /** * A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultCapability.class)}) -public interface Capability extends SubmodelElement {} +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultCapability.class) +}) +public interface Capability extends SubmodelElement { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 0de07017a..724d31fed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,29 +21,33 @@ import java.util.List; + /** * The semantics of a property or other elements that may have a semantic description is defined by * a concept description. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultConceptDescription.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultConceptDescription.class) +}) public interface ConceptDescription extends HasDataSpecification, Identifiable { - /** - * Reference to an external definition the concept is compatible to or was derived from. - * - *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf - * - * @return Returns the List of References for the property isCaseOfs. - */ - @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") - List getIsCaseOfs(); - - /** - * Reference to an external definition the concept is compatible to or was derived from. - * - *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf - * - * @param isCaseOfs desired value for the property isCaseOfs. - */ - void setIsCaseOfs(List isCaseOfs); + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + * More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf + * + * @return Returns the List of References for the property isCaseOf. + */ + @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") + List getIsCaseOf(); + + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + * More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf + * + * @param isCaseOfs desired value for the property isCaseOf. + */ + void setIsCaseOf(List isCaseOfs); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java deleted file mode 100644 index f16eb2e6e..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model; - -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCustomDataSpecification; - -/** - * A custom data specification is a user-defined extension of the standard data specification - * content. - */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultCustomDataSpecification.class)}) -public interface CustomDataSpecification extends DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 3c5c8c754..fe56cb02e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; + /** * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) -public interface DataElement extends SubmodelElement {} +public interface DataElement extends SubmodelElement { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 45f51013e..7fd9aaeec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,15 +15,18 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; + /** * Data specification content is part of a data specification template and defines which additional * attributes shall be added to the element instance that references the data specification template * and meta information about the template itself. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class), - @KnownSubtypes.Type(value = CustomDataSpecification.class) + @KnownSubtypes.Type(value = DataSpecificationIec61360.class) }) -public interface DataSpecificationContent {} +public interface DataSpecificationContent { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index 75399240b..182a70102 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,243 +21,244 @@ import java.util.List; + /** * Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) +}) public interface DataSpecificationIec61360 extends DataSpecificationContent { - /** - * Preferred name - * - *

More information under - * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName - * - * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property - * preferredNames. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") - List getPreferredNames(); + /** + * Preferred name + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName + * + * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredName. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") + List getPreferredName(); + + /** + * Preferred name + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName + * + * @param preferredNames desired value for the property preferredName. + */ + void setPreferredName(List preferredNames); - /** - * Preferred name - * - *

More information under - * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName - * - * @param preferredNames desired value for the property preferredNames. - */ - void setPreferredNames(List preferredNames); + /** + * Short name + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName + * + * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortName. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") + List getShortName(); - /** - * Short name - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName - * - * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") - List getShortNames(); + /** + * Short name + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName + * + * @param shortNames desired value for the property shortName. + */ + void setShortName(List shortNames); - /** - * Short name - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName - * - * @param shortNames desired value for the property shortNames. - */ - void setShortNames(List shortNames); + /** + * Unit + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit + * + * @return Returns the String for the property unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") + String getUnit(); - /** - * Unit - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit - * - * @return Returns the String for the property unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") - String getUnit(); + /** + * Unit + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit + * + * @param unit desired value for the property unit. + */ + void setUnit(String unit); - /** - * Unit - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit - * - * @param unit desired value for the property unit. - */ - void setUnit(String unit); + /** + * Unique unit id + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId + * + * @return Returns the Reference for the property unitId. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") + Reference getUnitId(); - /** - * Unique unit id - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId - * - * @return Returns the Reference for the property unitId. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") - Reference getUnitId(); + /** + * Unique unit id + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId + * + * @param unitId desired value for the property unitId. + */ + void setUnitId(Reference unitId); - /** - * Unique unit id - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId - * - * @param unitId desired value for the property unitId. - */ - void setUnitId(Reference unitId); + /** + * Source of definition + * + * More information under + * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition + * + * @return Returns the String for the property sourceOfDefinition. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") + String getSourceOfDefinition(); - /** - * Source of definition - * - *

More information under - * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition - * - * @return Returns the String for the property sourceOfDefinition. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") - String getSourceOfDefinition(); + /** + * Source of definition + * + * More information under + * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition + * + * @param sourceOfDefinition desired value for the property sourceOfDefinition. + */ + void setSourceOfDefinition(String sourceOfDefinition); - /** - * Source of definition - * - *

More information under - * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition - * - * @param sourceOfDefinition desired value for the property sourceOfDefinition. - */ - void setSourceOfDefinition(String sourceOfDefinition); + /** + * Symbol + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol + * + * @return Returns the String for the property symbol. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") + String getSymbol(); - /** - * Symbol - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol - * - * @return Returns the String for the property symbol. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") - String getSymbol(); + /** + * Symbol + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol + * + * @param symbol desired value for the property symbol. + */ + void setSymbol(String symbol); - /** - * Symbol - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol - * - * @param symbol desired value for the property symbol. - */ - void setSymbol(String symbol); + /** + * Data Type + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType + * + * @return Returns the DataTypeIec61360 for the property dataType. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") + DataTypeIec61360 getDataType(); - /** - * Data Type - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType - * - * @return Returns the DataTypeIec61360 for the property dataType. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") - DataTypeIec61360 getDataType(); + /** + * Data Type + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType + * + * @param dataType desired value for the property dataType. + */ + void setDataType(DataTypeIec61360 dataType); - /** - * Data Type - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType - * - * @param dataType desired value for the property dataType. - */ - void setDataType(DataTypeIec61360 dataType); + /** + * Definition in different languages + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition + * + * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definition. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") + List getDefinition(); - /** - * Definition in different languages - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition - * - * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") - List getDefinitions(); + /** + * Definition in different languages + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition + * + * @param definitions desired value for the property definition. + */ + void setDefinition(List definitions); - /** - * Definition in different languages - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition - * - * @param definitions desired value for the property definitions. - */ - void setDefinitions(List definitions); + /** + * Value Format + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat + * + * @return Returns the String for the property valueFormat. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") + String getValueFormat(); - /** - * Value Format - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat - * - * @return Returns the String for the property valueFormat. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") - String getValueFormat(); + /** + * Value Format + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat + * + * @param valueFormat desired value for the property valueFormat. + */ + void setValueFormat(String valueFormat); - /** - * Value Format - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat - * - * @param valueFormat desired value for the property valueFormat. - */ - void setValueFormat(String valueFormat); + /** + * List of allowed values + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList + * + * @return Returns the ValueList for the property valueList. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") + ValueList getValueList(); - /** - * List of allowed values - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList - * - * @return Returns the ValueList for the property valueList. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") - ValueList getValueList(); + /** + * List of allowed values + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList + * + * @param valueList desired value for the property valueList. + */ + void setValueList(ValueList valueList); - /** - * List of allowed values - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList - * - * @param valueList desired value for the property valueList. - */ - void setValueList(ValueList valueList); + /** + * Value + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") + String getValue(); - /** - * Value - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") - String getValue(); + /** + * Value + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Value - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Set of levels. + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType + * + * @return Returns the LevelType for the property levelType. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") + LevelType getLevelType(); - /** - * Set of levels. - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType - * - * @return Returns the LevelType for the property levelType. - */ - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") - LevelType getLevelType(); + /** + * Set of levels. + * + * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType + * + * @param levelType desired value for the property levelType. + */ + void setLevelType(LevelType levelType); - /** - * Set of levels. - * - *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType - * - * @param levelType desired value for the property levelType. - */ - void setLevelType(LevelType levelType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index f5dedbf81..bf328a198 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,129 +15,164 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration listing all XSD anySimpleTypes */ + +/** + * Enumeration listing all XSD anySimpleTypes + */ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") - ANY_URI, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") - BASE64BINARY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") - BOOLEAN, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") - BYTE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") - DATE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") - DATE_TIME, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") - DECIMAL, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") - DOUBLE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") - DURATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") - FLOAT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") - GDAY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") - GMONTH, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") - GMONTH_DAY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") - GYEAR, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") - GYEAR_MONTH, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") - HEX_BINARY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") - INT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") - INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") - LONG, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") - NEGATIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") - NON_NEGATIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") - NON_POSITIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") - POSITIVE_INTEGER, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") - SHORT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") - STRING, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") - TIME, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") - UNSIGNED_BYTE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") - UNSIGNED_INT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") - UNSIGNED_LONG, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/AnyUri") + ANY_URI, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Base64Binary") + BASE64BINARY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Boolean") + BOOLEAN, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Byte") + BYTE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Date") + DATE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/DateTime") + DATE_TIME, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Decimal") + DECIMAL, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double") + DOUBLE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Duration") + DURATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Float") + FLOAT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GDay") + GDAY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonth") + GMONTH, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonthDay") + GMONTH_DAY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYear") + GYEAR, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYearMonth") + GYEAR_MONTH, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/HexBinary") + HEX_BINARY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Int") + INT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Integer") + INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Long") + LONG, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NegativeInteger") + NEGATIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonNegativeInteger") + NON_NEGATIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonPositiveInteger") + NON_POSITIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/PositiveInteger") + POSITIVE_INTEGER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Short") + SHORT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/String") + STRING, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Time") + TIME, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedByte") + UNSIGNED_BYTE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedInt") + UNSIGNED_INT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedLong") + UNSIGNED_LONG, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedShort") + UNSIGNED_SHORT; - /** */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") - UNSIGNED_SHORT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 4637699ca..704b1929b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,113 +15,135 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** */ + +/** +*/ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { - /** values containing the content of a file. Values may be binaries. */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Blob") - BLOB, - - /** values representing truth of logic or Boolean algebra (TRUE, FALSE) */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Boolean") - BOOLEAN, - - /** - * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from - * IEC 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Date") - DATE, - - /** - * values containing an address to a file. The values are of type URI and can represent an - * absolute or relative path. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/File") - FILE, - - /** - * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C - * Recommendation 28:2014) - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Html") - HTML, - - /** values containing values of type INTEGER but are no currencies or measures */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCount") - INTEGER_COUNT, - - /** values containing values of type INTEGER that are currencies */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCurrency") - INTEGER_CURRENCY, - - /** - * values containing values that are measure of type INTEGER. In addition such a value comes with - * a physical unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerMeasure") - INTEGER_MEASURE, - - /** values conforming to ISO/IEC 11179 series global identifier sequences */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Irdi") - IRDI, - - /** values containing values of type STRING conformant to Rfc 3987 */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Iri") - IRI, - - /** values containing values of type rational */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Rational") - RATIONAL, - - /** - * values containing values of type rational. In addition such a value comes with a physical unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RationalMeasure") - RATIONAL_MEASURE, - - /** - * values containing numbers that can be written as a terminating or non-terminating decimal; a - * rational or irrational number but are no currencies or measures - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCount") - REAL_COUNT, - - /** values containing values of type REAL that are currencies */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCurrency") - REAL_CURRENCY, - - /** - * values containing values that are measures of type REAL. In addition such a value comes with a - * physical unit. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealMeasure") - REAL_MEASURE, - - /** values consisting of sequence of characters but cannot be translated into other languages */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/String") - STRING, - - /** - * values containing string but shall be represented as different string in different languages - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/StringTranslatable") - STRING_TRANSLATABLE, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Time") - TIME, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") - TIMESTAMP; + /** + * values containing the content of a file. Values may be binaries. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Blob") + BLOB, + + /** + * values representing truth of logic or Boolean algebra (TRUE, FALSE) + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Boolean") + BOOLEAN, + + /** + * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from IEC + * 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Date") + DATE, + + /** + * values containing an address to a file. The values are of type URI and can represent an absolute + * or relative path. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/File") + FILE, + + /** + * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C + * Recommendation 28:2014) + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Html") + HTML, + + /** + * values containing values of type INTEGER but are no currencies or measures + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCount") + INTEGER_COUNT, + + /** + * values containing values of type INTEGER that are currencies + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCurrency") + INTEGER_CURRENCY, + + /** + * values containing values that are measure of type INTEGER. In addition such a value comes with a + * physical unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerMeasure") + INTEGER_MEASURE, + + /** + * values conforming to ISO/IEC 11179 series global identifier sequences + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Irdi") + IRDI, + + /** + * values containing values of type STRING conformant to Rfc 3987 + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Iri") + IRI, + + /** + * values containing values of type rational + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Rational") + RATIONAL, + + /** + * values containing values of type rational. In addition such a value comes with a physical unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RationalMeasure") + RATIONAL_MEASURE, + + /** + * values containing numbers that can be written as a terminating or non-terminating decimal; a + * rational or irrational number but are no currencies or measures + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCount") + REAL_COUNT, + + /** + * values containing values of type REAL that are currencies + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCurrency") + REAL_CURRENCY, + + /** + * values containing values that are measures of type REAL. In addition such a value comes with a + * physical unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealMeasure") + REAL_MEASURE, + + /** + * values consisting of sequence of characters but cannot be translated into other languages + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/String") + STRING, + + /** + * values containing string but shall be represented as different string in different languages + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/StringTranslatable") + STRING_TRANSLATABLE, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Time") + TIME, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Timestamp") + TIMESTAMP; + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index 75505e1a1..5611270ec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,26 +21,65 @@ import java.util.List; -/** */ + +/** +*/ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDescriptor.class), - @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), - @KnownSubtypes.Type(value = SubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultDescriptor.class), + @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), + @KnownSubtypes.Type(value = SubmodelDescriptor.class) }) public interface Descriptor { - /** - * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints - * - * @return Returns the List of Endpoints for the property endpoints. - */ - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - List getEndpoints(); - - /** - * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); + /** + * + * More information under https://admin-shell.io/aas/3/0/Descriptor/description + * + * @return Returns the List of LangStringTextTypes for the property description. + */ + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + List getDescription(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Descriptor/description + * + * @param descriptions desired value for the property description. + */ + void setDescription(List descriptions); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName + * + * @return Returns the List of LangStringNameTypes for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + List getDisplayName(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName + * + * @param displayNames desired value for the property displayName. + */ + void setDisplayName(List displayNames); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions + * + * @return Returns the List of Extensions for the property extensions. + */ + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + List getExtensions(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions + * + * @param extensions desired value for the property extensions. + */ + void setExtensions(List extensions); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index 49eb1f049..5b8d0a575 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Direction */ + +/** + * Direction + */ @IRI("aas:Direction") public enum Direction { - /** Input direction. */ - @IRI("https://admin-shell.io/aas/3/2/Direction/Input") - INPUT, + /** + * Input direction. + */ + @IRI("https://admin-shell.io/aas/3/0/Direction/Input") + INPUT, + + /** + * Output direction + */ + @IRI("https://admin-shell.io/aas/3/0/Direction/Output") + OUTPUT; - /** Output direction */ - @IRI("https://admin-shell.io/aas/3/2/Direction/Output") - OUTPUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 62060220a..48c3a2ccb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,53 +15,58 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEmbeddedDataSpecification; -/** Embed the content of a data specification. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class)}) + +/** + * Embed the content of a data specification. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) +}) public interface EmbeddedDataSpecification { - /** - * Reference to the data specification - * - *

More information under - * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification - * - * @return Returns the Reference for the property dataSpecification. - */ - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") - Reference getDataSpecification(); + /** + * Reference to the data specification + * + * More information under https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification + * + * @return Returns the Reference for the property dataSpecification. + */ + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") + Reference getDataSpecification(); + + /** + * Reference to the data specification + * + * More information under https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification + * + * @param dataSpecification desired value for the property dataSpecification. + */ + void setDataSpecification(Reference dataSpecification); - /** - * Reference to the data specification - * - *

More information under - * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification - * - * @param dataSpecification desired value for the property dataSpecification. - */ - void setDataSpecification(Reference dataSpecification); + /** + * Actual content of the data specification + * + * More information under + * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent + * + * @return Returns the DataSpecificationContent for the property dataSpecificationContent. + */ + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") + DataSpecificationContent getDataSpecificationContent(); - /** - * Actual content of the data specification - * - *

More information under - * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent - * - * @return Returns the DataSpecificationContent for the property dataSpecificationContent. - */ - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") - DataSpecificationContent getDataSpecificationContent(); + /** + * Actual content of the data specification + * + * More information under + * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent + * + * @param dataSpecificationContent desired value for the property dataSpecificationContent. + */ + void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); - /** - * Actual content of the data specification - * - *

More information under - * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent - * - * @param dataSpecificationContent desired value for the property dataSpecificationContent. - */ - void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index 2249a025f..8d5db6a4f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,41 +15,51 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEndpoint; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEndpoint.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEndpoint.class) +}) public interface Endpoint { - /** - * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface - * - * @return Returns the String for the property _interface. - */ - @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") - String get_interface(); - - /** - * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface - * - * @param _interface desired value for the property _interface. - */ - void set_interface(String _interface); - - /** - * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation - * - * @return Returns the ProtocolInformation for the property protocolInformation. - */ - @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") - ProtocolInformation getProtocolInformation(); - - /** - * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation - * - * @param protocolInformation desired value for the property protocolInformation. - */ - void setProtocolInformation(ProtocolInformation protocolInformation); + /** + * + * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface + * + * @return Returns the String for the property _interface. + */ + @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") + String get_interface(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface + * + * @param _interface desired value for the property _interface. + */ + void set_interface(String _interface); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation + * + * @return Returns the ProtocolInformation for the property protocolInformation. + */ + @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") + ProtocolInformation getProtocolInformation(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation + * + * @param protocolInformation desired value for the property protocolInformation. + */ + void setProtocolInformation(ProtocolInformation protocolInformation); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index 387c13c4a..c29c453e2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,87 +21,93 @@ import java.util.List; -/** An entity is a submodel element that is used to model entities. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEntity.class)}) + +/** + * An entity is a submodel element that is used to model entities. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEntity.class) +}) public interface Entity extends SubmodelElement { - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/statements - * - * @return Returns the List of SubmodelElements for the property statements. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/statements") - List getStatements(); + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + * More information under https://admin-shell.io/aas/3/0/Entity/statements + * + * @return Returns the List of SubmodelElements for the property statements. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/statements") + List getStatements(); + + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + * More information under https://admin-shell.io/aas/3/0/Entity/statements + * + * @param statements desired value for the property statements. + */ + void setStatements(List statements); - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/statements - * - * @param statements desired value for the property statements. - */ - void setStatements(List statements); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + * More information under https://admin-shell.io/aas/3/0/Entity/entityType + * + * @return Returns the EntityType for the property entityType. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") + EntityType getEntityType(); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/entityType - * - * @return Returns the EntityType for the property entityType. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") - EntityType getEntityType(); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + * More information under https://admin-shell.io/aas/3/0/Entity/entityType + * + * @param entityType desired value for the property entityType. + */ + void setEntityType(EntityType entityType); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/entityType - * - * @param entityType desired value for the property entityType. - */ - void setEntityType(EntityType entityType); + /** + * Global identifier of the asset the entity is representing. + * + * More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") + String getGlobalAssetId(); - /** - * Global identifier of the asset the entity is representing. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") - String getGlobalAssetId(); + /** + * Global identifier of the asset the entity is representing. + * + * More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); - /** - * Global identifier of the asset the entity is representing. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset represented + * by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") + List getSpecificAssetIds(); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset - * represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") - List getSpecificAssetIds(); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset represented + * by the Asset Administration Shell. + * + * More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset - * represented by the Asset Administration Shell. - * - *

More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 79e4d7d82..31441465f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,23 +15,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. */ + +/** + * Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. + */ @IRI("aas:EntityType") public enum EntityType { - /** - * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/2/EntityType/CoManagedEntity") - CO_MANAGED_ENTITY, - - /** - * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") - SELF_MANAGED_ENTITY; + /** + * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/0/EntityType/CoManagedEntity") + CO_MANAGED_ENTITY, + + /** + * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/0/EntityType/SelfManagedEntity") + SELF_MANAGED_ENTITY; + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index 9a1259ff5..e41524972 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,65 +21,70 @@ import java.util.List; -/** Container for the sets of different identifiables. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEnvironment.class)}) + +/** + * Container for the sets of different identifiables. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEnvironment.class) +}) public interface Environment { - /** - * Asset administration shell - * - *

More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells - * - * @return Returns the List of AssetAdministrationShells for the property - * assetAdministrationShells. - */ - @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") - List getAssetAdministrationShells(); + /** + * Asset administration shell + * + * More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells + * + * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. + */ + @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") + List getAssetAdministrationShells(); + + /** + * Asset administration shell + * + * More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells + * + * @param assetAdministrationShells desired value for the property assetAdministrationShells. + */ + void setAssetAdministrationShells(List assetAdministrationShells); - /** - * Asset administration shell - * - *

More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells - * - * @param assetAdministrationShells desired value for the property assetAdministrationShells. - */ - void setAssetAdministrationShells(List assetAdministrationShells); + /** + * Submodel + * + * More information under https://admin-shell.io/aas/3/0/Environment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") + List getSubmodels(); - /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/2/Environment/submodels - * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") - List getSubmodels(); + /** + * Submodel + * + * More information under https://admin-shell.io/aas/3/0/Environment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); - /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/2/Environment/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * Concept description + * + * More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions + * + * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. + */ + @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") + List getConceptDescriptions(); - /** - * Concept description - * - *

More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions - * - * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. - */ - @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") - List getConceptDescriptions(); + /** + * Concept description + * + * More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions + * + * @param conceptDescriptions desired value for the property conceptDescriptions. + */ + void setConceptDescriptions(List conceptDescriptions); - /** - * Concept description - * - *

More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions - * - * @param conceptDescriptions desired value for the property conceptDescriptions. - */ - void setConceptDescriptions(List conceptDescriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index ac846a699..c8756c97e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,8 +15,16 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An event element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = BasicEventElement.class)}) -public interface EventElement extends SubmodelElement {} + +/** + * An event element. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = BasicEventElement.class) +}) +public interface EventElement extends SubmodelElement { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index 42b901e19..42720b37c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,167 +15,174 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEventPayload; -/** Defines the necessary information of an event instance sent out or received. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEventPayload.class)}) + +/** + * Defines the necessary information of an event instance sent out or received. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultEventPayload.class) +}) public interface EventPayload { - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/source - * - * @return Returns the Reference for the property source. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") - Reference getSource(); - - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/source - * - * @param source desired value for the property source. - */ - void setSource(Reference source); - - /** - * 'semanticId' of the source event element, if available - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId - * - * @return Returns the Reference for the property sourceSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") - Reference getSourceSemanticId(); - - /** - * 'semanticId' of the source event element, if available - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId - * - * @param sourceSemanticId desired value for the property sourceSemanticId. - */ - void setSourceSemanticId(Reference sourceSemanticId); - - /** - * Reference to the referable, which defines the scope of the event. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference - * - * @return Returns the Reference for the property observableReference. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") - Reference getObservableReference(); - - /** - * Reference to the referable, which defines the scope of the event. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference - * - * @param observableReference desired value for the property observableReference. - */ - void setObservableReference(Reference observableReference); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId - * - * @return Returns the Reference for the property observableSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") - Reference getObservableSemanticId(); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId - * - * @param observableSemanticId desired value for the property observableSemanticId. - */ - void setObservableSemanticId(Reference observableSemanticId); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/topic - * - * @return Returns the String for the property topic. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") - String getTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/topic - * - * @param topic desired value for the property topic. - */ - void setTopic(String topic); - - /** - * Subject, who/which initiated the creation. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId - * - * @return Returns the Reference for the property subjectId. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") - Reference getSubjectId(); - - /** - * Subject, who/which initiated the creation. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId - * - * @param subjectId desired value for the property subjectId. - */ - void setSubjectId(Reference subjectId); - - /** - * Timestamp in UTC, when this event was triggered. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp - * - * @return Returns the String for the property timeStamp. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") - String getTimeStamp(); - - /** - * Timestamp in UTC, when this event was triggered. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp - * - * @param timeStamp desired value for the property timeStamp. - */ - void setTimeStamp(String timeStamp); - - /** - * Event specific payload. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/payload - * - * @return Returns the byte[] for the property payload. - */ - @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") - byte[] getPayload(); - - /** - * Event specific payload. - * - *

More information under https://admin-shell.io/aas/3/2/EventPayload/payload - * - * @param payload desired value for the property payload. - */ - void setPayload(byte[] payload); + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/source + * + * @return Returns the Reference for the property source. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") + Reference getSource(); + + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/source + * + * @param source desired value for the property source. + */ + void setSource(Reference source); + + /** + * 'semanticId' of the source event element, if available + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId + * + * @return Returns the Reference for the property sourceSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") + Reference getSourceSemanticId(); + + /** + * 'semanticId' of the source event element, if available + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId + * + * @param sourceSemanticId desired value for the property sourceSemanticId. + */ + void setSourceSemanticId(Reference sourceSemanticId); + + /** + * Reference to the referable, which defines the scope of the event. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference + * + * @return Returns the Reference for the property observableReference. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") + Reference getObservableReference(); + + /** + * Reference to the referable, which defines the scope of the event. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference + * + * @param observableReference desired value for the property observableReference. + */ + void setObservableReference(Reference observableReference); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId + * + * @return Returns the Reference for the property observableSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") + Reference getObservableSemanticId(); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId + * + * @param observableSemanticId desired value for the property observableSemanticId. + */ + void setObservableSemanticId(Reference observableSemanticId); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/topic + * + * @return Returns the String for the property topic. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") + String getTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/topic + * + * @param topic desired value for the property topic. + */ + void setTopic(String topic); + + /** + * Subject, who/which initiated the creation. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId + * + * @return Returns the Reference for the property subjectId. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") + Reference getSubjectId(); + + /** + * Subject, who/which initiated the creation. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId + * + * @param subjectId desired value for the property subjectId. + */ + void setSubjectId(Reference subjectId); + + /** + * Timestamp in UTC, when this event was triggered. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp + * + * @return Returns the String for the property timeStamp. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") + String getTimeStamp(); + + /** + * Timestamp in UTC, when this event was triggered. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp + * + * @param timeStamp desired value for the property timeStamp. + */ + void setTimeStamp(String timeStamp); + + /** + * Event specific payload. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/payload + * + * @return Returns the byte[] for the property payload. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") + byte[] getPayload(); + + /** + * Event specific payload. + * + * More information under https://admin-shell.io/aas/3/0/EventPayload/payload + * + * @param payload desired value for the property payload. + */ + void setPayload(byte[] payload); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index 24b3d3f38..d184636fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,33 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** */ + +/** +*/ @IRI("aas:ExecutionState") public enum ExecutionState { - /** */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") - CANCELED, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Canceled") + CANCELED, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Completed") + COMPLETED, - /** */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") - COMPLETED, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Failed") + FAILED, - /** */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") - FAILED, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Initiated") + INITIATED, - /** */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") - INITIATED, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Running") + RUNNING, - /** */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") - RUNNING, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Timeout") + TIMEOUT; - /** */ - @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Timeout") - TIMEOUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index 8ea19826f..c3c5f2659 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,83 +21,89 @@ import java.util.List; -/** Single extension of an element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultExtension.class)}) + +/** + * Single extension of an element. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultExtension.class) +}) public interface Extension extends HasSemantics { - /** - * Name of the extension. - * - *

More information under https://admin-shell.io/aas/3/2/Extension/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/name") - String getName(); + /** + * Name of the extension. + * + * More information under https://admin-shell.io/aas/3/0/Extension/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/name") + String getName(); + + /** + * Name of the extension. + * + * More information under https://admin-shell.io/aas/3/0/Extension/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * Name of the extension. - * - *

More information under https://admin-shell.io/aas/3/2/Extension/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * Type of the value of the extension. + * + * More information under https://admin-shell.io/aas/3/0/Extension/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") + DataTypeDefXsd getValueType(); - /** - * Type of the value of the extension. - * - *

More information under https://admin-shell.io/aas/3/2/Extension/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") - DataTypeDefXsd getValueType(); + /** + * Type of the value of the extension. + * + * More information under https://admin-shell.io/aas/3/0/Extension/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Type of the value of the extension. - * - *

More information under https://admin-shell.io/aas/3/2/Extension/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Value of the extension + * + * More information under https://admin-shell.io/aas/3/0/Extension/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/value") + String getValue(); - /** - * Value of the extension - * - *

More information under https://admin-shell.io/aas/3/2/Extension/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/value") - String getValue(); + /** + * Value of the extension + * + * More information under https://admin-shell.io/aas/3/0/Extension/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Value of the extension - * - *

More information under https://admin-shell.io/aas/3/2/Extension/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Reference to an element the extension refers to. + * + * More information under https://admin-shell.io/aas/3/0/Extension/refersTo + * + * @return Returns the List of References for the property refersTo. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") + List getRefersTo(); - /** - * Reference to an element the extension refers to. - * - *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo - * - * @return Returns the List of References for the property refersTos. - */ - @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") - List getRefersTos(); + /** + * Reference to an element the extension refers to. + * + * More information under https://admin-shell.io/aas/3/0/Extension/refersTo + * + * @param refersTos desired value for the property refersTo. + */ + void setRefersTo(List refersTos); - /** - * Reference to an element the extension refers to. - * - *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo - * - * @param refersTos desired value for the property refersTos. - */ - void setRefersTos(List refersTos); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index 57e2bf899..ed40d2d1e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,49 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultFile; -/** A File is a data element that represents an address to a file (a locator). */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultFile.class)}) + +/** + * A File is a data element that represents an address to a file (a locator). + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultFile.class) +}) public interface File extends DataElement { - /** - * Path and name of the referenced file (with file extension). - * - *

More information under https://admin-shell.io/aas/3/2/File/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/File/value") - String getValue(); - - /** - * Path and name of the referenced file (with file extension). - * - *

More information under https://admin-shell.io/aas/3/2/File/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/2/File/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/2/File/contentType") - String getContentType(); - - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/2/File/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Path and name of the referenced file (with file extension). + * + * More information under https://admin-shell.io/aas/3/0/File/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/File/value") + String getValue(); + + /** + * Path and name of the referenced file (with file extension). + * + * More information under https://admin-shell.io/aas/3/0/File/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/0/File/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/0/File/contentType") + String getContentType(); + + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/0/File/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 185ef9d0d..a6c7711e8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,36 +20,40 @@ import java.util.List; -/** Element that can be extended by using data specification templates. */ + +/** + * Element that can be extended by using data specification templates. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasDataSpecification { - /** - * Embedded data specification. - * - *

More information under - * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications - * - * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. - */ - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - List getEmbeddedDataSpecifications(); - - /** - * Embedded data specification. - * - *

More information under - * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. - */ - void setEmbeddedDataSpecifications(List embeddedDataSpecifications); + /** + * Embedded data specification. + * + * More information under + * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications + * + * @return Returns the List of EmbeddedDataSpecifications for the property + * embeddedDataSpecifications. + */ + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + List getEmbeddedDataSpecifications(); + + /** + * Embedded data specification. + * + * More information under + * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. + */ + void setEmbeddedDataSpecifications(List embeddedDataSpecifications); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 6d197f02c..761b5baca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,26 +20,32 @@ import java.util.List; -/** Element that can be extended by proprietary extensions. */ -@KnownSubtypes({@KnownSubtypes.Type(value = Referable.class)}) + +/** + * Element that can be extended by proprietary extensions. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = Referable.class) +}) public interface HasExtensions { - /** - * An extension of the element. - * - *

More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions - * - * @return Returns the List of Extensions for the property extensions. - */ - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - List getExtensions(); - - /** - * An extension of the element. - * - *

More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions - * - * @param extensions desired value for the property extensions. - */ - void setExtensions(List extensions); + /** + * An extension of the element. + * + * More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions + * + * @return Returns the List of Extensions for the property extensions. + */ + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + List getExtensions(); + + /** + * An extension of the element. + * + * More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions + * + * @param extensions desired value for the property extensions. + */ + void setExtensions(List extensions); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index 5d84d2acd..a8e19c0cd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,29 +15,36 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An element with a kind is an element that can either represent a template or an instance. */ -@KnownSubtypes({@KnownSubtypes.Type(value = Submodel.class)}) + +/** + * An element with a kind is an element that can either represent a template or an instance. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = Submodel.class) +}) public interface HasKind { - /** - * Kind of the element: either template or instance. - * - *

More information under https://admin-shell.io/aas/3/2/HasKind/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") - ModellingKind getKind(); - - /** - * Kind of the element: either template or instance. - * - *

More information under https://admin-shell.io/aas/3/2/HasKind/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); + /** + * Kind of the element: either type or instance. + * + * More information under https://admin-shell.io/aas/3/0/HasKind/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") + ModellingKind getKind(); + + /** + * Kind of the element: either type or instance. + * + * More information under https://admin-shell.io/aas/3/0/HasKind/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index deef3f13e..8b83f9e7d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,56 +20,60 @@ import java.util.List; -/** Element that can have a semantic definition plus some supplemental semantic definitions. */ + +/** + * Element that can have a semantic definition plus some supplemental semantic definitions. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element - * or also main semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - Reference getSemanticId(); + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element or + * also main semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + Reference getSemanticId(); + + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element or + * also main semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element - * or also main semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds + * + * @return Returns the List of References for the property supplementalSemanticIds. + */ + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + List getSupplementalSemanticIds(); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds - * - * @return Returns the List of References for the property supplementalSemanticIds. - */ - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - List getSupplementalSemanticIds(); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + * More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds + * + * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. + */ + void setSupplementalSemanticIds(List supplementalSemanticIds); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - * - *

More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds - * - * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. - */ - void setSupplementalSemanticIds(List supplementalSemanticIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index baba3f286..f878c8cbb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +15,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** An element that has a globally unique identifier. */ + +/** + * An element that has a globally unique identifier. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { - /** - * Administrative information of an identifiable element. - * - *

More information under https://admin-shell.io/aas/3/2/Identifiable/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - AdministrativeInformation getAdministration(); + /** + * Administrative information of an identifiable element. + * + * More information under https://admin-shell.io/aas/3/0/Identifiable/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + AdministrativeInformation getAdministration(); + + /** + * Administrative information of an identifiable element. + * + * More information under https://admin-shell.io/aas/3/0/Identifiable/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); - /** - * Administrative information of an identifiable element. - * - *

More information under https://admin-shell.io/aas/3/2/Identifiable/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); + /** + * The globally unique identification of the element. + * + * More information under https://admin-shell.io/aas/3/0/Identifiable/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + String getId(); - /** - * The globally unique identification of the element. - * - *

More information under https://admin-shell.io/aas/3/2/Identifiable/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - String getId(); + /** + * The globally unique identification of the element. + * + * More information under https://admin-shell.io/aas/3/0/Identifiable/id + * + * @param id desired value for the property id. + */ + void setId(String id); - /** - * The globally unique identification of the element. - * - *

More information under https://admin-shell.io/aas/3/2/Identifiable/id - * - * @param id desired value for the property id. - */ - void setId(String id); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index d9abb29b1..f91b08a96 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,49 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultKey; -/** A key is a reference to an element by its ID. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultKey.class)}) + +/** + * A key is a reference to an element by its ID. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultKey.class) +}) public interface Key { - /** - * Denotes which kind of entity is referenced. - * - *

More information under https://admin-shell.io/aas/3/2/Key/type - * - * @return Returns the KeyTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/Key/type") - KeyTypes getType(); - - /** - * Denotes which kind of entity is referenced. - * - *

More information under https://admin-shell.io/aas/3/2/Key/type - * - * @param type desired value for the property type. - */ - void setType(KeyTypes type); - - /** - * The key value, for example an IRDI or an URI - * - *

More information under https://admin-shell.io/aas/3/2/Key/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Key/value") - String getValue(); - - /** - * The key value, for example an IRDI or an URI - * - *

More information under https://admin-shell.io/aas/3/2/Key/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Denotes which kind of entity is referenced. + * + * More information under https://admin-shell.io/aas/3/0/Key/type + * + * @return Returns the KeyTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/Key/type") + KeyTypes getType(); + + /** + * Denotes which kind of entity is referenced. + * + * More information under https://admin-shell.io/aas/3/0/Key/type + * + * @param type desired value for the property type. + */ + void setType(KeyTypes type); + + /** + * The key value, for example an IRDI or an URI + * + * More information under https://admin-shell.io/aas/3/0/Key/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Key/value") + String getValue(); + + /** + * The key value, for example an IRDI or an URI + * + * More information under https://admin-shell.io/aas/3/0/Key/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index d8588f386..a83148985 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,105 +15,145 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration of different key value types within a key. */ + +/** + * Enumeration of different key value types within a key. + */ @IRI("aas:KeyTypes") public enum KeyTypes { - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") - BLOB, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") - CAPABILITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** Data element. */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") - DATA_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") - ENTITY, - - /** Event. */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") - EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") - FILE, - - /** Bookmark or a similar local identifier of a subordinate part of a primary resource */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") - FRAGMENT_REFERENCE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") - GLOBAL_REFERENCE, - - /** Identifiable. */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Identifiable") - IDENTIFIABLE, - - /** Property with a value that can be provided in multiple languages */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") - OPERATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") - PROPERTY, - - /** Range with min and max */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") - RANGE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") - REFERABLE, - - /** Reference */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ReferenceElement") - REFERENCE_ELEMENT, - - /** Relationship */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") - SUBMODEL, - - /** Submodel Element */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElement") - SUBMODEL_ELEMENT, - - /** Struct of Submodel Elements */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Blob") + BLOB, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Capability") + CAPABILITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** + * Data element. + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/DataElement") + DATA_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Entity") + ENTITY, + + /** + * Event. + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/EventElement") + EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/File") + FILE, + + /** + * Bookmark or a similar local identifier of a subordinate part of a primary resource + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/FragmentReference") + FRAGMENT_REFERENCE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference") + GLOBAL_REFERENCE, + + /** + * Identifiable. + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Identifiable") + IDENTIFIABLE, + + /** + * Property with a value that can be provided in multiple languages + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Operation") + OPERATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Property") + PROPERTY, + + /** + * Range with min and max + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Range") + RANGE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Referable") + REFERABLE, + + /** + * Reference + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ReferenceElement") + REFERENCE_ELEMENT, + + /** + * Relationship + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Submodel") + SUBMODEL, + + /** + * Submodel Element + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElement") + SUBMODEL_ELEMENT, + + /** + * Struct of Submodel Elements + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + + /** + * List of Submodel Elements + */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; - /** List of Submodel Elements */ - @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index 2f97a0d1c..e9c52a8bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,73 +20,74 @@ import java.io.Serializable; import java.util.Objects; + @IRI("rdf:langString") public class LangString implements Serializable { - private String language = null; - private String value = null; + private String language = null; + private String value = null; - public LangString() { - super(); - } + public LangString() { + super(); + } - public LangString(String valueAndLanguage) { - if (valueAndLanguage.contains("@")) { - String[] splitString = valueAndLanguage.split("@"); - this.value = splitString[0]; - this.language = splitString[1]; - } else { - this.value = valueAndLanguage; + public LangString(String valueAndLanguage) { + if (valueAndLanguage.contains("@")) { + String[] splitString = valueAndLanguage.split("@"); + this.value = splitString[0]; + this.language = splitString[1]; + } else { + this.value = valueAndLanguage; + } } - } - - public LangString(String value, String language) { - this.value = value; - this.language = language; - } - - public String getLanguage() { - return language; - } - - public void setLanguage(String language) { - this.language = language; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - LangString other = (LangString) obj; - return Objects.equals(this.language, other.language) - && Objects.equals(this.value, other.value); + + public LangString(String value, String language) { + this.value = value; + this.language = language; } - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.value); - } - - @Override - public String toString() { - String result = this.value; - if (this.language != null && !this.language.isEmpty()) { - return "\"" + result + "\"@" + this.language; + + public String getLanguage() { + return language; } - return result; - } + + public void setLanguage(String language) { + this.language = language; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + LangString other = (LangString) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.value, other.value); + } + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.value); + } + + @Override + public String toString() { + String result = this.value; + if (this.language != null && !this.language.isEmpty()) { + return "\"" + result + "\"@" + this.language; + } + return result; + } + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index b33334259..fb49700bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringDefinitionTypeIec61360; -/** String with length 1023 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class)}) -public interface LangStringDefinitionTypeIec61360 extends AbstractLangString {} + +/** + * String with length 1023 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) +}) +public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 4a6b461b1..1fe4604ef 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringNameType; -/** String with length 128 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringNameType.class)}) -public interface LangStringNameType extends AbstractLangString {} + +/** + * String with length 128 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringNameType.class) +}) +public interface LangStringNameType extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 920fbdb0d..e03afda72 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringPreferredNameTypeIec61360; -/** String with length 255 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class)}) -public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString {} + +/** + * String with length 255 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) +}) +public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index e039af7ae..98fcdaf14 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringShortNameTypeIec61360; -/** String with length 18 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class)}) -public interface LangStringShortNameTypeIec61360 extends AbstractLangString {} + +/** + * String with length 18 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) +}) +public interface LangStringShortNameTypeIec61360 extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index 61c1d4d80..2ff44c065 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringTextType; -/** String with length 1023 maximum and minimum 1 characters and with language tags */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringTextType.class)}) -public interface LangStringTextType extends AbstractLangString {} + +/** + * String with length 1023 maximum and minimum 1 characters and with language tags + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLangStringTextType.class) +}) +public interface LangStringTextType extends AbstractLangString { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index 8c7bd3ba0..4f3931d96 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,90 +15,95 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLevelType; + /** * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and * MAX. True means that the value is available, false means the value is not available. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLevelType.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultLevelType.class) +}) public interface LevelType { - /** - * Minimum of the value - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/min - * - * @return Returns the boolean for the property min. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/min") - boolean getMin(); + /** + * Minimum of the value + * + * More information under https://admin-shell.io/aas/3/0/LevelType/min + * + * @return Returns the boolean for the property min. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/min") + boolean getMin(); + + /** + * Minimum of the value + * + * More information under https://admin-shell.io/aas/3/0/LevelType/min + * + * @param min desired value for the property min. + */ + void setMin(boolean min); - /** - * Minimum of the value - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/min - * - * @param min desired value for the property min. - */ - void setMin(boolean min); + /** + * Nominal value (value as designated) + * + * More information under https://admin-shell.io/aas/3/0/LevelType/nom + * + * @return Returns the boolean for the property nom. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") + boolean getNom(); - /** - * Nominal value (value as designated) - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/nom - * - * @return Returns the boolean for the property nom. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") - boolean getNom(); + /** + * Nominal value (value as designated) + * + * More information under https://admin-shell.io/aas/3/0/LevelType/nom + * + * @param nom desired value for the property nom. + */ + void setNom(boolean nom); - /** - * Nominal value (value as designated) - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/nom - * - * @param nom desired value for the property nom. - */ - void setNom(boolean nom); + /** + * Value as typically present + * + * More information under https://admin-shell.io/aas/3/0/LevelType/typ + * + * @return Returns the boolean for the property typ. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") + boolean getTyp(); - /** - * Value as typically present - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/typ - * - * @return Returns the boolean for the property typ. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") - boolean getTyp(); + /** + * Value as typically present + * + * More information under https://admin-shell.io/aas/3/0/LevelType/typ + * + * @param typ desired value for the property typ. + */ + void setTyp(boolean typ); - /** - * Value as typically present - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/typ - * - * @param typ desired value for the property typ. - */ - void setTyp(boolean typ); + /** + * Maximum of the value + * + * More information under https://admin-shell.io/aas/3/0/LevelType/max + * + * @return Returns the boolean for the property max. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/max") + boolean getMax(); - /** - * Maximum of the value - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/max - * - * @return Returns the boolean for the property max. - */ - @IRI("https://admin-shell.io/aas/3/2/LevelType/max") - boolean getMax(); + /** + * Maximum of the value + * + * More information under https://admin-shell.io/aas/3/0/LevelType/max + * + * @param max desired value for the property max. + */ + void setMax(boolean max); - /** - * Maximum of the value - * - *

More information under https://admin-shell.io/aas/3/2/LevelType/max - * - * @param max desired value for the property max. - */ - void setMax(boolean max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index b74d9a6c4..6d0a29988 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,71 +15,102 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMessage; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMessage.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultMessage.class) +}) public interface Message { - /** - * More information under https://admin-shell.io/aas/3/2/Message/code - * - * @return Returns the String for the property code. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/code") - String getCode(); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/code - * - * @param code desired value for the property code. - */ - void setCode(String code); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/messageType - * - * @return Returns the MessageType for the property messageType. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/messageType") - MessageType getMessageType(); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/messageType - * - * @param messageType desired value for the property messageType. - */ - void setMessageType(MessageType messageType); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/text") - String getText(); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/text - * - * @param text desired value for the property text. - */ - void setText(String text); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/timestamp - * - * @return Returns the String for the property timestamp. - */ - @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") - String getTimestamp(); - - /** - * More information under https://admin-shell.io/aas/3/2/Message/timestamp - * - * @param timestamp desired value for the property timestamp. - */ - void setTimestamp(String timestamp); + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/code + * + * @return Returns the String for the property code. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/code") + String getCode(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/code + * + * @param code desired value for the property code. + */ + void setCode(String code); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/correlationId + * + * @return Returns the String for the property correlationId. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") + String getCorrelationId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/correlationId + * + * @param correlationId desired value for the property correlationId. + */ + void setCorrelationId(String correlationId); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/messageType + * + * @return Returns the MessageTypeEnum for the property messageType. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/messageType") + MessageTypeEnum getMessageType(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/messageType + * + * @param messageType desired value for the property messageType. + */ + void setMessageType(MessageTypeEnum messageType); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/text") + String getText(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/text + * + * @param text desired value for the property text. + */ + void setText(String text); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/timestamp + * + * @return Returns the String for the property timestamp. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") + String getTimestamp(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Message/timestamp + * + * @param timestamp desired value for the property timestamp. + */ + void setTimestamp(String timestamp); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index 68781ba46..575cbda96 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,85 +15,108 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** */ + +/** +*/ @IRI("aas:ModelType") public enum ModelType { - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") - BLOB, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") - CAPABILITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") - ENTITY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/File") - FILE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") - OPERATION, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") - PROPERTY, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") - QUALIFIER, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") - RANGE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") - REFERENCE, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") - REFERENCE_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") - SUBMODEL, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Blob") + BLOB, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Capability") + CAPABILITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Entity") + ENTITY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/File") + FILE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Operation") + OPERATION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Property") + PROPERTY, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Qualifier") + QUALIFIER, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Range") + RANGE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Reference") + REFERENCE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/ReferenceElement") + REFERENCE_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Submodel") + SUBMODEL, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; - /** */ - @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 47e7e5a35..4fc98a180 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,23 +15,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an element is a template or an instance. */ + +/** + * Enumeration for denoting whether an element is a template or an instance. + */ @IRI("aas:ModellingKind") public enum ModellingKind { - /** - * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a - * corresponding element template. - */ - @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Instance") - INSTANCE, - - /** - * Specification of the common features of a structured element in sufficient detail that such a - * instance can be instantiated using it - */ - @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") - TEMPLATE; + /** + * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a + * corresponding element template. + */ + @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Instance") + INSTANCE, + + /** + * Specification of the common features of a structured element in sufficient detail that such a + * instance can be instantiated using it + */ + @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Template") + TEMPLATE; + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 862d53e61..5058811c4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,45 +21,51 @@ import java.util.List; -/** A property is a data element that has a multi-language value. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class)}) + +/** + * A property is a data element that has a multi-language value. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) +}) public interface MultiLanguageProperty extends DataElement { - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value - * - * @return Returns the List of LangStringTextTypes for the property values. - */ - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") - List getValues(); + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value + * + * @return Returns the List of LangStringTextTypes for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") + List getValue(); + + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value + * + * @param values desired value for the property value. + */ + void setValue(List values); - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value - * - * @param values desired value for the property values. - */ - void setValues(List values); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") + Reference getValueId(); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") - Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index 2effeb2f3..093835165 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,64 +21,70 @@ import java.util.List; -/** An operation is a submodel element with input and output variables. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperation.class)}) + +/** + * An operation is a submodel element with input and output variables. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperation.class) +}) public interface Operation extends SubmodelElement { - /** - * Input parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/2/Operation/inputVariables - * - * @return Returns the List of OperationVariables for the property inputVariables. - */ - @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") - List getInputVariables(); + /** + * Input parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/0/Operation/inputVariables + * + * @return Returns the List of OperationVariables for the property inputVariables. + */ + @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") + List getInputVariables(); + + /** + * Input parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/0/Operation/inputVariables + * + * @param inputVariables desired value for the property inputVariables. + */ + void setInputVariables(List inputVariables); - /** - * Input parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/2/Operation/inputVariables - * - * @param inputVariables desired value for the property inputVariables. - */ - void setInputVariables(List inputVariables); + /** + * Output parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/0/Operation/outputVariables + * + * @return Returns the List of OperationVariables for the property outputVariables. + */ + @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") + List getOutputVariables(); - /** - * Output parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/2/Operation/outputVariables - * - * @return Returns the List of OperationVariables for the property outputVariables. - */ - @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") - List getOutputVariables(); + /** + * Output parameter of the operation. + * + * More information under https://admin-shell.io/aas/3/0/Operation/outputVariables + * + * @param outputVariables desired value for the property outputVariables. + */ + void setOutputVariables(List outputVariables); - /** - * Output parameter of the operation. - * - *

More information under https://admin-shell.io/aas/3/2/Operation/outputVariables - * - * @param outputVariables desired value for the property outputVariables. - */ - void setOutputVariables(List outputVariables); + /** + * Parameter that is input and output of the operation. + * + * More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables + * + * @return Returns the List of OperationVariables for the property inoutputVariables. + */ + @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") + List getInoutputVariables(); - /** - * Parameter that is input and output of the operation. - * - *

More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables - * - * @return Returns the List of OperationVariables for the property inoutputVariables. - */ - @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") - List getInoutputVariables(); + /** + * Parameter that is input and output of the operation. + * + * More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables + * + * @param inoutputVariables desired value for the property inoutputVariables. + */ + void setInoutputVariables(List inoutputVariables); - /** - * Parameter that is input and output of the operation. - * - *

More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables - * - * @param inoutputVariables desired value for the property inoutputVariables. - */ - void setInoutputVariables(List inoutputVariables); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index 66729ca89..60987eed4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,41 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationHandle; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationHandle.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationHandle.class) +}) public interface OperationHandle { - /** - * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId - * - * @return Returns the String for the property handleId. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") - String getHandleId(); - - /** - * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId - * - * @param handleId desired value for the property handleId. - */ - void setHandleId(String handleId); - - /** - * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId - * - * @return Returns the String for the property requestId. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") - String getRequestId(); - - /** - * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId - * - * @param requestId desired value for the property requestId. - */ - void setRequestId(String requestId); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId + * + * @return Returns the String for the property handleId. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") + String getHandleId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId + * + * @param handleId desired value for the property handleId. + */ + void setHandleId(String handleId); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 71ff25734..6806b24a4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,69 +19,65 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; -import java.math.BigInteger; +import java.util.List; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) -public interface OperationRequest { - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments - * - * @return Returns the OperationVariable for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") - OperationVariable getInoutputArguments(); +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationRequest.class) +}) +public interface OperationRequest { - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(OperationVariable inoutputArguments); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments + * + * @return Returns the List of OperationVariables for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") + List getInoutputArguments(); - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments - * - * @return Returns the OperationVariable for the property inputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") - OperationVariable getInputArguments(); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(List inoutputArguments); - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments - * - * @param inputArguments desired value for the property inputArguments. - */ - void setInputArguments(OperationVariable inputArguments); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments + * + * @return Returns the List of OperationVariables for the property inputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") + List getInputArguments(); - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId - * - * @return Returns the String for the property requestId. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") - String getRequestId(); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments + * + * @param inputArguments desired value for the property inputArguments. + */ + void setInputArguments(List inputArguments); - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId - * - * @param requestId desired value for the property requestId. - */ - void setRequestId(String requestId); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration + * + * @return Returns the String for the property clientTimeoutDuration. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") + String getClientTimeoutDuration(); - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout - * - * @return Returns the BigInteger for the property timeout. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") - BigInteger getTimeout(); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration + * + * @param clientTimeoutDuration desired value for the property clientTimeoutDuration. + */ + void setClientTimeoutDuration(String clientTimeoutDuration); - /** - * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout - * - * @param timeout desired value for the property timeout. - */ - void setTimeout(BigInteger timeout); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index 1aa3ec1ea..7ba79ee45 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,82 +21,46 @@ import java.util.List; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationResult.class)}) -public interface OperationResult { - - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult - * - * @return Returns the List of Results for the property executionResults. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") - List getExecutionResults(); - - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult - * - * @param executionResults desired value for the property executionResults. - */ - void setExecutionResults(List executionResults); - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState - * - * @return Returns the List of ExecutionStates for the property executionStates. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") - List getExecutionStates(); - - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState - * - * @param executionStates desired value for the property executionStates. - */ - void setExecutionStates(List executionStates); - - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments - * - * @return Returns the List of OperationVariables for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") - List getInoutputArguments(); +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationResult.class) +}) +public interface OperationResult { - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(List inoutputArguments); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments + * + * @return Returns the List of OperationVariables for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") + List getInoutputArguments(); - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments - * - * @return Returns the List of OperationVariables for the property outputArguments. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") - List getOutputArguments(); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(List inoutputArguments); - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments - * - * @param outputArguments desired value for the property outputArguments. - */ - void setOutputArguments(List outputArguments); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments + * + * @return Returns the List of OperationVariables for the property outputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") + List getOutputArguments(); - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId - * - * @return Returns the List of Strings for the property requestIds. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") - List getRequestIds(); + /** + * + * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments + * + * @param outputArguments desired value for the property outputArguments. + */ + void setOutputArguments(List outputArguments); - /** - * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId - * - * @param requestIds desired value for the property requestIds. - */ - void setRequestIds(List requestIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index 4eb6f60c3..c61563481 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,33 +15,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationVariable; + /** * The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationVariable.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultOperationVariable.class) +}) public interface OperationVariable { - /** - * Describes an argument or result of an operation via a submodel element - * - *

More information under https://admin-shell.io/aas/3/2/OperationVariable/value - * - * @return Returns the SubmodelElement for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") - SubmodelElement getValue(); - - /** - * Describes an argument or result of an operation via a submodel element - * - *

More information under https://admin-shell.io/aas/3/2/OperationVariable/value - * - * @param value desired value for the property value. - */ - void setValue(SubmodelElement value); + /** + * Describes an argument or result of an operation via a submodel element + * + * More information under https://admin-shell.io/aas/3/0/OperationVariable/value + * + * @return Returns the SubmodelElement for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") + SubmodelElement getValue(); + + /** + * Describes an argument or result of an operation via a submodel element + * + * More information under https://admin-shell.io/aas/3/0/OperationVariable/value + * + * @param value desired value for the property value. + */ + void setValue(SubmodelElement value); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index 74f94ce44..8360f4e62 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,37 +21,46 @@ import java.util.List; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultPackageDescription.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultPackageDescription.class) +}) public interface PackageDescription { - /** - * More information under https://admin-shell.io/aas/3/2/PackageDescription/items - * - * @return Returns the List of Strings for the property items. - */ - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") - List getItems(); - - /** - * More information under https://admin-shell.io/aas/3/2/PackageDescription/items - * - * @param items desired value for the property items. - */ - void setItems(List items); - - /** - * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId - * - * @return Returns the String for the property packageId. - */ - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") - String getPackageId(); - - /** - * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId - * - * @param packageId desired value for the property packageId. - */ - void setPackageId(String packageId); + /** + * + * More information under https://admin-shell.io/aas/3/0/PackageDescription/items + * + * @return Returns the List of Strings for the property items. + */ + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") + List getItems(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/PackageDescription/items + * + * @param items desired value for the property items. + */ + void setItems(List items); + + /** + * + * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId + * + * @return Returns the String for the property packageId. + */ + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") + String getPackageId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId + * + * @param packageId desired value for the property packageId. + */ + void setPackageId(String packageId); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index 62d7ed70e..72fc83156 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,68 +15,75 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProperty; -/** A property is a data element that has a single value. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProperty.class)}) + +/** + * A property is a data element that has a single value. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultProperty.class) +}) public interface Property extends DataElement { - /** - * Data type of the value - * - *

More information under https://admin-shell.io/aas/3/2/Property/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Property/valueType") - DataTypeDefXsd getValueType(); + /** + * Data type of the value + * + * More information under https://admin-shell.io/aas/3/0/Property/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Property/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the value + * + * More information under https://admin-shell.io/aas/3/0/Property/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Data type of the value - * - *

More information under https://admin-shell.io/aas/3/2/Property/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/0/Property/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Property/value") + String getValue(); - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/2/Property/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Property/value") - String getValue(); + /** + * The value of the property instance. + * + * More information under https://admin-shell.io/aas/3/0/Property/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The value of the property instance. - * - *

More information under https://admin-shell.io/aas/3/2/Property/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/0/Property/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/Property/valueId") + Reference getValueId(); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/2/Property/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/Property/valueId") - Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/0/Property/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/2/Property/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index c4ef562ad..172ed35aa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,116 +21,131 @@ import java.util.List; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProtocolInformation.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultProtocolInformation.class) +}) public interface ProtocolInformation { - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress - * - * @return Returns the String for the property endpointAddress. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") - String getEndpointAddress(); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress - * - * @param endpointAddress desired value for the property endpointAddress. - */ - void setEndpointAddress(String endpointAddress); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol - * - * @return Returns the String for the property endpointProtocol. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") - String getEndpointProtocol(); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol - * - * @param endpointProtocol desired value for the property endpointProtocol. - */ - void setEndpointProtocol(String endpointProtocol); - - /** - * More information under - * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion - * - * @return Returns the String for the property endpointProtocolVersion. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") - String getEndpointProtocolVersion(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion - * - * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. - */ - void setEndpointProtocolVersion(String endpointProtocolVersion); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes - * - * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") - List getSecurityAttributes(); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes - * - * @param securityAttributes desired value for the property securityAttributes. - */ - void setSecurityAttributes(List securityAttributes); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol - * - * @return Returns the String for the property subprotocol. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") - String getSubprotocol(); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol - * - * @param subprotocol desired value for the property subprotocol. - */ - void setSubprotocol(String subprotocol); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody - * - * @return Returns the String for the property subprotocolBody. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") - String getSubprotocolBody(); - - /** - * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody - * - * @param subprotocolBody desired value for the property subprotocolBody. - */ - void setSubprotocolBody(String subprotocolBody); - - /** - * More information under - * https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding - * - * @return Returns the String for the property subprotocolBodyEncoding. - */ - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") - String getSubprotocolBodyEncoding(); - - /** - * More information under - * https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. - */ - void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href + * + * @return Returns the String for the property href. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") + String getHref(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href + * + * @param href desired value for the property href. + */ + void setHref(String href); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol + * + * @return Returns the String for the property endpointProtocol. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") + String getEndpointProtocol(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol + * + * @param endpointProtocol desired value for the property endpointProtocol. + */ + void setEndpointProtocol(String endpointProtocol); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion + * + * @return Returns the List of Strings for the property endpointProtocolVersion. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") + List getEndpointProtocolVersion(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion + * + * @param endpointProtocolVersions desired value for the property endpointProtocolVersion. + */ + void setEndpointProtocolVersion(List endpointProtocolVersions); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol + * + * @return Returns the String for the property subprotocol. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") + String getSubprotocol(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol + * + * @param subprotocol desired value for the property subprotocol. + */ + void setSubprotocol(String subprotocol); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody + * + * @return Returns the String for the property subprotocolBody. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") + String getSubprotocolBody(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody + * + * @param subprotocolBody desired value for the property subprotocolBody. + */ + void setSubprotocolBody(String subprotocolBody); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding + * + * @return Returns the String for the property subprotocolBodyEncoding. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") + String getSubprotocolBodyEncoding(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. + */ + void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes + * + * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") + List getSecurityAttributes(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes + * + * @param securityAttributes desired value for the property securityAttributes. + */ + void setSecurityAttributes(List securityAttributes); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 5c6b75b2e..2ee290d33 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,30 +20,34 @@ import java.util.List; -/** The value of a qualifiable element may be further qualified by one or more qualifiers. */ + +/** + * The value of a qualifiable element may be further qualified by one or more qualifiers. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Qualifiable { - /** - * Additional qualification of a qualifiable element. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers - * - * @return Returns the List of Qualifiers for the property qualifiers. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - List getQualifiers(); - - /** - * Additional qualification of a qualifiable element. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers - * - * @param qualifiers desired value for the property qualifiers. - */ - void setQualifiers(List qualifiers); + /** + * Additional qualification of a qualifiable element. + * + * More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers + * + * @return Returns the List of Qualifiers for the property qualifiers. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + List getQualifiers(); + + /** + * Additional qualification of a qualifiable element. + * + * More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers + * + * @param qualifiers desired value for the property qualifiers. + */ + void setQualifiers(List qualifiers); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index a5847360b..fd3876c9d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,109 +15,114 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultQualifier; + /** * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultQualifier.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultQualifier.class) +}) public interface Qualifier extends HasSemantics { - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/kind - * - * @return Returns the QualifierKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") - QualifierKind getKind(); - - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/kind - * - * @param kind desired value for the property kind. - */ - void setKind(QualifierKind kind); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/type - * - * @return Returns the String for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") - String getType(); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/type - * - * @param type desired value for the property type. - */ - void setType(String type); - - /** - * Data type of the qualifier value. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the qualifier value. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); - - /** - * The qualifier value is the value of the qualifier. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") - String getValue(); - - /** - * The qualifier value is the value of the qualifier. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") - Reference getValueId(); - - /** - * Reference to the global unique ID of a coded value. - * - *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/kind + * + * @return Returns the QualifierKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") + QualifierKind getKind(); + + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/kind + * + * @param kind desired value for the property kind. + */ + void setKind(QualifierKind kind); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/type + * + * @return Returns the String for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") + String getType(); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/type + * + * @param type desired value for the property type. + */ + void setType(String type); + + /** + * Data type of the qualifier value. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the qualifier value. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); + + /** + * The qualifier value is the value of the qualifier. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") + String getValue(); + + /** + * The qualifier value is the value of the qualifier. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") + Reference getValueId(); + + /** + * Reference to the global unique ID of a coded value. + * + * More information under https://admin-shell.io/aas/3/0/Qualifier/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index a18328fa9..e9ac14084 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,21 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for kinds of qualifiers. */ + +/** + * Enumeration for kinds of qualifiers. + */ @IRI("aas:QualifierKind") public enum QualifierKind { - /** qualifies the semantic definition the element is referring to ('semanticId') */ - @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ConceptQualifier") - CONCEPT_QUALIFIER, + /** + * qualifies the semantic definition the element is referring to ('semanticId') + */ + @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ConceptQualifier") + CONCEPT_QUALIFIER, + + /** + * qualifies the elements within a specific submodel on concept level. + */ + @IRI("https://admin-shell.io/aas/3/0/QualifierKind/TemplateQualifier") + TEMPLATE_QUALIFIER, - /** qualifies the elements within a specific submodel on concept level. */ - @IRI("https://admin-shell.io/aas/3/2/QualifierKind/TemplateQualifier") - TEMPLATE_QUALIFIER, + /** + * qualifies the value of the element and can change during run-time. + */ + @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ValueQualifier") + VALUE_QUALIFIER; - /** qualifies the value of the element and can change during run-time. */ - @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") - VALUE_QUALIFIER; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 781494292..9c9c60f51 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,68 +15,75 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRange; -/** A range data element is a data element that defines a range with min and max. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultRange.class)}) + +/** + * A range data element is a data element that defines a range with min and max. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultRange.class) +}) public interface Range extends DataElement { - /** - * Data type of the min und max - * - *

More information under https://admin-shell.io/aas/3/2/Range/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/2/Range/valueType") - DataTypeDefXsd getValueType(); + /** + * Data type of the min und max + * + * More information under https://admin-shell.io/aas/3/0/Range/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Range/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the min und max + * + * More information under https://admin-shell.io/aas/3/0/Range/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Data type of the min und max - * - *

More information under https://admin-shell.io/aas/3/2/Range/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * The minimum value of the range. + * + * More information under https://admin-shell.io/aas/3/0/Range/min + * + * @return Returns the String for the property min. + */ + @IRI("https://admin-shell.io/aas/3/0/Range/min") + String getMin(); - /** - * The minimum value of the range. - * - *

More information under https://admin-shell.io/aas/3/2/Range/min - * - * @return Returns the String for the property min. - */ - @IRI("https://admin-shell.io/aas/3/2/Range/min") - String getMin(); + /** + * The minimum value of the range. + * + * More information under https://admin-shell.io/aas/3/0/Range/min + * + * @param min desired value for the property min. + */ + void setMin(String min); - /** - * The minimum value of the range. - * - *

More information under https://admin-shell.io/aas/3/2/Range/min - * - * @param min desired value for the property min. - */ - void setMin(String min); + /** + * The maximum value of the range. + * + * More information under https://admin-shell.io/aas/3/0/Range/max + * + * @return Returns the String for the property max. + */ + @IRI("https://admin-shell.io/aas/3/0/Range/max") + String getMax(); - /** - * The maximum value of the range. - * - *

More information under https://admin-shell.io/aas/3/2/Range/max - * - * @return Returns the String for the property max. - */ - @IRI("https://admin-shell.io/aas/3/2/Range/max") - String getMax(); + /** + * The maximum value of the range. + * + * More information under https://admin-shell.io/aas/3/0/Range/max + * + * @param max desired value for the property max. + */ + void setMax(String max); - /** - * The maximum value of the range. - * - *

More information under https://admin-shell.io/aas/3/2/Range/max - * - * @param max desired value for the property max. - */ - void setMax(String max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index b12f3deb1..de8f7983e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,91 +20,95 @@ import java.util.List; -/** An element that is referable by its 'idShort'. */ + +/** + * An element that is referable by its 'idShort'. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Identifiable.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/category - * - * @return Returns the String for the property category. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - String getCategory(); + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + * More information under https://admin-shell.io/aas/3/0/Referable/category + * + * @return Returns the String for the property category. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + String getCategory(); + + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + * More information under https://admin-shell.io/aas/3/0/Referable/category + * + * @param category desired value for the property category. + */ + void setCategory(String category); - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/category - * - * @param category desired value for the property category. - */ - void setCategory(String category); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable this + * ID is an identifying string of the element within its name space. + * + * More information under https://admin-shell.io/aas/3/0/Referable/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + String getIdShort(); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable - * this ID is an identifying string of the element within its name space. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - String getIdShort(); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable this + * ID is an identifying string of the element within its name space. + * + * More information under https://admin-shell.io/aas/3/0/Referable/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable - * this ID is an identifying string of the element within its name space. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); + /** + * Display name. Can be provided in several languages. + * + * More information under https://admin-shell.io/aas/3/0/Referable/displayName + * + * @return Returns the List of LangStringNameTypes for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + List getDisplayName(); - /** - * Display name. Can be provided in several languages. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayNames. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - List getDisplayNames(); + /** + * Display name. Can be provided in several languages. + * + * More information under https://admin-shell.io/aas/3/0/Referable/displayName + * + * @param displayNames desired value for the property displayName. + */ + void setDisplayName(List displayNames); - /** - * Display name. Can be provided in several languages. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/displayName - * - * @param displayNames desired value for the property displayNames. - */ - void setDisplayNames(List displayNames); + /** + * Description or comments on the element. + * + * More information under https://admin-shell.io/aas/3/0/Referable/description + * + * @return Returns the List of LangStringTextTypes for the property description. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + List getDescription(); - /** - * Description or comments on the element. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/description - * - * @return Returns the List of LangStringTextTypes for the property descriptions. - */ - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - List getDescriptions(); + /** + * Description or comments on the element. + * + * More information under https://admin-shell.io/aas/3/0/Referable/description + * + * @param descriptions desired value for the property description. + */ + void setDescription(List descriptions); - /** - * Description or comments on the element. - * - *

More information under https://admin-shell.io/aas/3/2/Referable/description - * - * @param descriptions desired value for the property descriptions. - */ - void setDescriptions(List descriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index b4288e4bb..ee6ceffda 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,64 +21,70 @@ import java.util.List; -/** Reference to either a model element of the same or another AAS or to an external entity. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReference.class)}) + +/** + * Reference to either a model element of the same or another AAS or to an external entity. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultReference.class) +}) public interface Reference { - /** - * Type of the reference. - * - *

More information under https://admin-shell.io/aas/3/2/Reference/type - * - * @return Returns the ReferenceTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/Reference/type") - ReferenceTypes getType(); + /** + * Type of the reference. + * + * More information under https://admin-shell.io/aas/3/0/Reference/type + * + * @return Returns the ReferenceTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/Reference/type") + ReferenceTypes getType(); + + /** + * Type of the reference. + * + * More information under https://admin-shell.io/aas/3/0/Reference/type + * + * @param type desired value for the property type. + */ + void setType(ReferenceTypes type); - /** - * Type of the reference. - * - *

More information under https://admin-shell.io/aas/3/2/Reference/type - * - * @param type desired value for the property type. - */ - void setType(ReferenceTypes type); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + * More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId + * + * @return Returns the Reference for the property referredSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") + Reference getReferredSemanticId(); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * - *

More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId - * - * @return Returns the Reference for the property referredSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") - Reference getReferredSemanticId(); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + * More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId + * + * @param referredSemanticId desired value for the property referredSemanticId. + */ + void setReferredSemanticId(Reference referredSemanticId); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * - *

More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId - * - * @param referredSemanticId desired value for the property referredSemanticId. - */ - void setReferredSemanticId(Reference referredSemanticId); + /** + * Unique references in their name space. + * + * More information under https://admin-shell.io/aas/3/0/Reference/keys + * + * @return Returns the List of Keys for the property keys. + */ + @IRI("https://admin-shell.io/aas/3/0/Reference/keys") + List getKeys(); - /** - * Unique references in their name space. - * - *

More information under https://admin-shell.io/aas/3/2/Reference/keys - * - * @return Returns the List of Keys for the property keys. - */ - @IRI("https://admin-shell.io/aas/3/2/Reference/keys") - List getKeys(); + /** + * Unique references in their name space. + * + * More information under https://admin-shell.io/aas/3/0/Reference/keys + * + * @param keys desired value for the property keys. + */ + void setKeys(List keys); - /** - * Unique references in their name space. - * - *

More information under https://admin-shell.io/aas/3/2/Reference/keys - * - * @param keys desired value for the property keys. - */ - void setKeys(List keys); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index 5537afc90..40a6de3a5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,35 +15,40 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReferenceElement; + /** * A reference element is a data element that defines a logical reference to another element within * the same or another AAS or a reference to an external object or entity. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReferenceElement.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultReferenceElement.class) +}) public interface ReferenceElement extends DataElement { - /** - * Global reference to an external object or entity or a logical reference to another element - * within the same or another AAS (i.e. a model reference to a Referable). - * - *

More information under https://admin-shell.io/aas/3/2/ReferenceElement/value - * - * @return Returns the Reference for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") - Reference getValue(); - - /** - * Global reference to an external object or entity or a logical reference to another element - * within the same or another AAS (i.e. a model reference to a Referable). - * - *

More information under https://admin-shell.io/aas/3/2/ReferenceElement/value - * - * @param value desired value for the property value. - */ - void setValue(Reference value); + /** + * Global reference to an external object or entity or a logical reference to another element within + * the same or another AAS (i.e. a model reference to a Referable). + * + * More information under https://admin-shell.io/aas/3/0/ReferenceElement/value + * + * @return Returns the Reference for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") + Reference getValue(); + + /** + * Global reference to an external object or entity or a logical reference to another element within + * the same or another AAS (i.e. a model reference to a Referable). + * + * More information under https://admin-shell.io/aas/3/0/ReferenceElement/value + * + * @param value desired value for the property value. + */ + void setValue(Reference value); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index a22366b98..54509783f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Reference types */ + +/** + * Reference types + */ @IRI("aas:ReferenceTypes") public enum ReferenceTypes { - /** External reference. */ - @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ExternalReference") - EXTERNAL_REFERENCE, + /** + * External reference. + */ + @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ExternalReference") + EXTERNAL_REFERENCE, + + /** + * Model reference. + */ + @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference") + MODEL_REFERENCE; - /** Model reference. */ - @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") - MODEL_REFERENCE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 38dd2dd72..986c78aa2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,55 +15,58 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRelationshipElement; + /** * A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { - /** - * Reference to the first element in the relationship taking the role of the subject. - * - *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/first - * - * @return Returns the Reference for the property first. - */ - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") - Reference getFirst(); + /** + * Reference to the first element in the relationship taking the role of the subject. + * + * More information under https://admin-shell.io/aas/3/0/RelationshipElement/first + * + * @return Returns the Reference for the property first. + */ + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + Reference getFirst(); + + /** + * Reference to the first element in the relationship taking the role of the subject. + * + * More information under https://admin-shell.io/aas/3/0/RelationshipElement/first + * + * @param first desired value for the property first. + */ + void setFirst(Reference first); - /** - * Reference to the first element in the relationship taking the role of the subject. - * - *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/first - * - * @param first desired value for the property first. - */ - void setFirst(Reference first); + /** + * Reference to the second element in the relationship taking the role of the object. + * + * More information under https://admin-shell.io/aas/3/0/RelationshipElement/second + * + * @return Returns the Reference for the property second. + */ + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + Reference getSecond(); - /** - * Reference to the second element in the relationship taking the role of the object. - * - *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/second - * - * @return Returns the Reference for the property second. - */ - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") - Reference getSecond(); + /** + * Reference to the second element in the relationship taking the role of the object. + * + * More information under https://admin-shell.io/aas/3/0/RelationshipElement/second + * + * @param second desired value for the property second. + */ + void setSecond(Reference second); - /** - * Reference to the second element in the relationship taking the role of the object. - * - *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/second - * - * @param second desired value for the property second. - */ - void setSecond(Reference second); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 89f6b89ef..4534c1408 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +15,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResource; + /** * Resource represents an address to a file (a locator). The value is an URI that can represent an * absolute or relative path */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResource.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultResource.class) +}) public interface Resource { - /** - * Path and name of the resource (with file extension). - * - *

More information under https://admin-shell.io/aas/3/2/Resource/path - * - * @return Returns the String for the property path. - */ - @IRI("https://admin-shell.io/aas/3/2/Resource/path") - String getPath(); + /** + * Path and name of the resource (with file extension). + * + * More information under https://admin-shell.io/aas/3/0/Resource/path + * + * @return Returns the String for the property path. + */ + @IRI("https://admin-shell.io/aas/3/0/Resource/path") + String getPath(); + + /** + * Path and name of the resource (with file extension). + * + * More information under https://admin-shell.io/aas/3/0/Resource/path + * + * @param path desired value for the property path. + */ + void setPath(String path); - /** - * Path and name of the resource (with file extension). - * - *

More information under https://admin-shell.io/aas/3/2/Resource/path - * - * @param path desired value for the property path. - */ - void setPath(String path); + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/0/Resource/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") + String getContentType(); - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/2/Resource/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") - String getContentType(); + /** + * Content type of the content of the file. + * + * More information under https://admin-shell.io/aas/3/0/Resource/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); - /** - * Content type of the content of the file. - * - *

More information under https://admin-shell.io/aas/3/2/Resource/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index 36dbacffe..ff1f97932 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,37 +21,30 @@ import java.util.List; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResult.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultResult.class), + @KnownSubtypes.Type(value = BaseOperationResult.class) +}) public interface Result { - /** - * More information under https://admin-shell.io/aas/3/2/Result/messages - * - * @return Returns the List of Messages for the property messages. - */ - @IRI("https://admin-shell.io/aas/3/2/Result/messages") - List getMessages(); - - /** - * More information under https://admin-shell.io/aas/3/2/Result/messages - * - * @param messages desired value for the property messages. - */ - void setMessages(List messages); - - /** - * More information under https://admin-shell.io/aas/3/2/Result/success - * - * @return Returns the boolean for the property success. - */ - @IRI("https://admin-shell.io/aas/3/2/Result/success") - boolean getSuccess(); - - /** - * More information under https://admin-shell.io/aas/3/2/Result/success - * - * @param success desired value for the property success. - */ - void setSuccess(boolean success); + /** + * + * More information under https://admin-shell.io/aas/3/0/Result/messages + * + * @return Returns the List of Messages for the property messages. + */ + @IRI("https://admin-shell.io/aas/3/0/Result/messages") + List getMessages(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/Result/messages + * + * @param messages desired value for the property messages. + */ + void setMessages(List messages); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java index 4e92b268e..eada6211a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,56 +15,68 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityAttributeObject; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class)}) + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class) +}) public interface SecurityAttributeObject { - /** - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key - * - * @return Returns the String for the property key. - */ - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") - String getKey(); + /** + * + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type + * + * @return Returns the SecurityTypeEnum for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") + SecurityTypeEnum getType(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type + * + * @param type desired value for the property type. + */ + void setType(SecurityTypeEnum type); - /** - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key - * - * @param key desired value for the property key. - */ - void setKey(String key); + /** + * + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key + * + * @return Returns the String for the property key. + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") + String getKey(); - /** - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") - String getValue(); + /** + * + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key + * + * @param key desired value for the property key. + */ + void setKey(String key); - /** - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") + String getValue(); - /** - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type - * - * @return Returns the SecurityTypeEnum for the property type. - */ - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") - SecurityTypeEnum getType(); + /** + * + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type - * - * @param type desired value for the property type. - */ - void setType(SecurityTypeEnum type); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java index b034e8a45..81dc1f0fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,9 +15,28 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityTypeEnum; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityTypeEnum.class)}) -public interface SecurityTypeEnum {} +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + + +/** +*/ +@IRI("aas:SecurityTypeEnum") +public enum SecurityTypeEnum { + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/None") + NONE, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/Rfc_Tlsa") + RFC_TLSA, + + /** + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/W3c_Did") + W3C_DID; + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index 1f219593d..c868e3e2b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,68 +15,75 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSpecificAssetId; -/** A specific asset ID describes a generic supplementary identifying attribute of the asset. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSpecificAssetId.class)}) + +/** + * A specific asset ID describes a generic supplementary identifying attribute of the asset. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) +}) public interface SpecificAssetId extends HasSemantics { - /** - * Name of the identifier - * - *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") - String getName(); + /** + * Name of the identifier + * + * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") + String getName(); + + /** + * Name of the identifier + * + * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * Name of the identifier - * - *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * The value of the specific asset identifier with the corresponding name. + * + * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") + String getValue(); - /** - * The value of the specific asset identifier with the corresponding name. - * - *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") - String getValue(); + /** + * The value of the specific asset identifier with the corresponding name. + * + * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The value of the specific asset identifier with the corresponding name. - * - *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The (external) subject the key belongs to or has meaning to. + * + * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId + * + * @return Returns the Reference for the property externalSubjectId. + */ + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") + Reference getExternalSubjectId(); - /** - * The (external) subject the key belongs to or has meaning to. - * - *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId - * - * @return Returns the Reference for the property externalSubjectId. - */ - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") - Reference getExternalSubjectId(); + /** + * The (external) subject the key belongs to or has meaning to. + * + * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId + * + * @param externalSubjectId desired value for the property externalSubjectId. + */ + void setExternalSubjectId(Reference externalSubjectId); - /** - * The (external) subject the key belongs to or has meaning to. - * - *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId - * - * @param externalSubjectId desired value for the property externalSubjectId. - */ - void setExternalSubjectId(Reference externalSubjectId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index dda2945b9..3d9069b73 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,17 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** State of an event */ + +/** + * State of an event + */ @IRI("aas:StateOfEvent") public enum StateOfEvent { - /** Event is off. */ - @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/Off") - OFF, + /** + * Event is off. + */ + @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/Off") + OFF, + + /** + * Event is on + */ + @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/On") + ON; - /** Event is on */ - @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") - ON; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index a8089a694..574f0e1d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,27 +21,32 @@ import java.util.List; -/** A submodel defines a specific aspect of the asset represented by the AAS. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodel.class)}) -public interface Submodel - extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { - - /** - * A submodel consists of zero or more submodel elements. - * - *

More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements - * - * @return Returns the List of SubmodelElements for the property submodelElements. - */ - @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") - List getSubmodelElements(); - - /** - * A submodel consists of zero or more submodel elements. - * - *

More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements - * - * @param submodelElements desired value for the property submodelElements. - */ - void setSubmodelElements(List submodelElements); + +/** + * A submodel defines a specific aspect of the asset represented by the AAS. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodel.class) +}) +public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { + + /** + * A submodel consists of zero or more submodel elements. + * + * More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements + * + * @return Returns the List of SubmodelElements for the property submodelElements. + */ + @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") + List getSubmodelElements(); + + /** + * A submodel consists of zero or more submodel elements. + * + * More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements + * + * @param submodelElements desired value for the property submodelElements. + */ + void setSubmodelElements(List submodelElements); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index 1863ce0c3..703609a1b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,97 +19,116 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class)}) +import java.util.List; + + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) +}) public interface SubmodelDescriptor extends Descriptor { - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description - * - * @return Returns the LangStringTextType for the property description. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") - LangStringTextType getDescription(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description - * - * @param description desired value for the property description. - */ - void setDescription(LangStringTextType description); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName - * - * @return Returns the LangStringNameType for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") - LangStringNameType getDisplayName(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName - * - * @param displayName desired value for the property displayName. - */ - void setDisplayName(LangStringNameType displayName); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") - String getIdShort(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification - * - * @return Returns the String for the property identification. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") - String getIdentification(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification - * - * @param identification desired value for the property identification. - */ - void setIdentification(String identification); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") - Reference getSemanticId(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints + * + * @return Returns the List of Endpoints for the property endpoints. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") + List getEndpoints(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints + * + * @param endpoints desired value for the property endpoints. + */ + void setEndpoints(List endpoints); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") + String getIdShort(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") + String getId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id + * + * @param id desired value for the property id. + */ + void setId(String id); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") + Reference getSemanticId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId + * + * @return Returns the List of References for the property supplementalSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") + List getSupplementalSemanticId(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId + * + * @param supplementalSemanticIds desired value for the property supplementalSemanticId. + */ + void setSupplementalSemanticId(List supplementalSemanticIds); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index fc1d55b71..870e2815e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,18 +15,23 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -/** A submodel element is an element suitable for the description and differentiation of assets. */ + +/** + * A submodel element is an element suitable for the description and differentiation of assets. + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) -public interface SubmodelElement - extends Referable, HasDataSpecification, HasSemantics, Qualifiable {} +public interface SubmodelElement extends Referable, HasDataSpecification, HasSemantics, Qualifiable { + +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index f4433a361..b6b60236b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,27 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementAttributes; -/** */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class)}) -public interface SubmodelElementAttributes - extends Referable, HasDataSpecification, HasSemantics, Qualifiable { - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") - ModellingKind getKind(); - - /** - * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); + +/** +*/ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) +}) +public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") + ModellingKind getKind(); + + /** + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index bb5bbae7c..2080567bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,29 +21,33 @@ import java.util.List; + /** * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) +}) public interface SubmodelElementCollection extends SubmodelElement { - /** - * Submodel element contained in the collection. - * - *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value - * - * @return Returns the List of SubmodelElements for the property values. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") - List getValues(); - - /** - * Submodel element contained in the collection. - * - *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value - * - * @param values desired value for the property values. - */ - void setValues(List values); + /** + * Submodel element contained in the collection. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value + * + * @return Returns the List of SubmodelElements for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") + List getValue(); + + /** + * Submodel element contained in the collection. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value + * + * @param values desired value for the property value. + */ + void setValue(List values); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index b30d8b7d7..7e94212b4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,110 +21,110 @@ import java.util.List; -/** A submodel element list is an ordered list of submodel elements. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementList.class)}) + +/** + * A submodel element list is an ordered list of submodel elements. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) +}) public interface SubmodelElementList extends SubmodelElement { - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - * - *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant - * - * @return Returns the boolean for the property orderRelevant. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") - boolean getOrderRelevant(); - - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - * - *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant - * - * @param orderRelevant desired value for the property orderRelevant. - */ - void setOrderRelevant(boolean orderRelevant); - - /** - * Semantic ID the submodel elements contained in the list match to. - * - *

More information under - * https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement - * - * @return Returns the Reference for the property semanticIdListElement. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") - Reference getSemanticIdListElement(); - - /** - * Semantic ID the submodel elements contained in the list match to. - * - *

More information under - * https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement - * - * @param semanticIdListElement desired value for the property semanticIdListElement. - */ - void setSemanticIdListElement(Reference semanticIdListElement); - - /** - * The submodel element type of the submodel elements contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement - * - * @return Returns the AasSubmodelElements for the property typeValueListElement. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") - AasSubmodelElements getTypeValueListElement(); - - /** - * The submodel element type of the submodel elements contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement - * - * @param typeValueListElement desired value for the property typeValueListElement. - */ - void setTypeValueListElement(AasSubmodelElements typeValueListElement); - - /** - * The value type of the submodel element contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement - * - * @return Returns the DataTypeDefXsd for the property valueTypeListElement. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") - DataTypeDefXsd getValueTypeListElement(); - - /** - * The value type of the submodel element contained in the list. - * - *

More information under - * https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement - * - * @param valueTypeListElement desired value for the property valueTypeListElement. - */ - void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); - - /** - * Submodel element contained in the list. - * - *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value - * - * @return Returns the List of SubmodelElements for the property values. - */ - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") - List getValues(); - - /** - * Submodel element contained in the list. - * - *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value - * - * @param values desired value for the property values. - */ - void setValues(List values); + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant + * + * @return Returns the boolean for the property orderRelevant. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") + boolean getOrderRelevant(); + + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant + * + * @param orderRelevant desired value for the property orderRelevant. + */ + void setOrderRelevant(boolean orderRelevant); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement + * + * @return Returns the Reference for the property semanticIdListElement. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") + Reference getSemanticIdListElement(); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement + * + * @param semanticIdListElement desired value for the property semanticIdListElement. + */ + void setSemanticIdListElement(Reference semanticIdListElement); + + /** + * The submodel element type of the submodel elements contained in the list. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement + * + * @return Returns the AasSubmodelElements for the property typeValueListElement. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") + AasSubmodelElements getTypeValueListElement(); + + /** + * The submodel element type of the submodel elements contained in the list. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement + * + * @param typeValueListElement desired value for the property typeValueListElement. + */ + void setTypeValueListElement(AasSubmodelElements typeValueListElement); + + /** + * The value type of the submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement + * + * @return Returns the DataTypeDefXsd for the property valueTypeListElement. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") + DataTypeDefXsd getValueTypeListElement(); + + /** + * The value type of the submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement + * + * @param valueTypeListElement desired value for the property valueTypeListElement. + */ + void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); + + /** + * Submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value + * + * @return Returns the List of SubmodelElements for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") + List getValue(); + + /** + * Submodel element contained in the list. + * + * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value + * + * @param values desired value for the property value. + */ + void setValue(List values); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 02770f824..9313bc322 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,26 +21,32 @@ import java.util.List; -/** A set of value reference pairs. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueList.class)}) + +/** + * A set of value reference pairs. + */ +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultValueList.class) +}) public interface ValueList { - /** - * A pair of a value together with its global unique id. - * - *

More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs - * - * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. - */ - @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") - List getValueReferencePairs(); - - /** - * A pair of a value together with its global unique id. - * - *

More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs - * - * @param valueReferencePairs desired value for the property valueReferencePairs. - */ - void setValueReferencePairs(List valueReferencePairs); + /** + * A pair of a value together with its global unique id. + * + * More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs + * + * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. + */ + @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") + List getValueReferencePairs(); + + /** + * A pair of a value together with its global unique id. + * + * More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs + * + * @param valueReferencePairs desired value for the property valueReferencePairs. + */ + void setValueReferencePairs(List valueReferencePairs); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index 8d2d23b1b..53d12d3bf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +15,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; + import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueReferencePair; + /** * A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueReferencePair.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DefaultValueReferencePair.class) +}) public interface ValueReferencePair { - /** - * The value of the referenced concept definition of the value in 'valueId'. - * - *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") - String getValue(); + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") + String getValue(); + + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The value of the referenced concept definition of the value in 'valueId'. - * - *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Global unique id of the value. + * + * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") + Reference getValueId(); - /** - * Global unique id of the value. - * - *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") - Reference getValueId(); + /** + * Global unique id of the value. + * + * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); - /** - * Global unique id of the value. - * - *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 6a677f067..075f2353a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,12 +21,12 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface IRI { - /** - * This annotation stores the IRI under which a certain element of a model is defined. Expected - * behaviour when de-referencing the value of this annotation is a definition and further - * information about this element. - * - * @return IRI defining an element - */ - public String[] value() default {}; + /** + * This annotation stores the IRI under which a certain element of a model is defined. Expected + * behaviour when de-referencing the value of this annotation is a definition and further + * information about this element. + * + * @return IRI defining an element + */ + public String[] value() default {}; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index be6835d2e..535f8e991 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,18 +21,19 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface KnownSubtypes { - /** - * This element stores the known sub-types, e.g. implementing classes of an interface, or - * extending classes of a class. Note that this list can never be expected to be complete, as - * custom implementations will not be included. - * - * @return List of known implementing subtypes - */ - public KnownSubtypes.Type[] value(); + /** + * This element stores the known sub-types, e.g. implementing classes of an interface, or extending + * classes of a class. Note that this list can never be expected to be complete, as custom + * implementations will not be included. + * + * @return List of known implementing subtypes + */ + public KnownSubtypes.Type[] value(); - public @interface Type { - Class value(); + public @interface Type { + Class value(); + + String name() default ""; + } - String name() default ""; - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index 8d821c7a5..2090757dc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,20 +17,21 @@ public abstract class AbstractBuilder implements Builder { - private final T buildingInstance; + private final T buildingInstance; - protected AbstractBuilder() { - buildingInstance = newBuildingInstance(); - } + protected AbstractBuilder() { + buildingInstance = newBuildingInstance(); + } - protected abstract T newBuildingInstance(); + protected abstract T newBuildingInstance(); - protected T getBuildingInstance() { - return buildingInstance; - } + protected T getBuildingInstance() { + return buildingInstance; + } + + @Override + public T build() { + return buildingInstance; + } - @Override - public T build() { - return buildingInstance; - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index 1d91c24c0..f75faf333 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,98 +19,75 @@ import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import javax.xml.datatype.XMLGregorianCalendar; import java.util.List; -public abstract class AdministrativeInformationBuilder< - T extends AdministrativeInformation, B extends AdministrativeInformationBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for createdAt - * - * @param createdAt desired value to be set - * @return Builder object with new value for createdAt - */ - public B createdAt(XMLGregorianCalendar createdAt) { - getBuildingInstance().setCreatedAt(createdAt); - return getSelf(); - } - /** - * This function allows setting a value for version - * - * @param version desired value to be set - * @return Builder object with new value for version - */ - public B version(String version) { - getBuildingInstance().setVersion(version); - return getSelf(); - } +public abstract class AdministrativeInformationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for revision - * - * @param revision desired value to be set - * @return Builder object with new value for revision - */ - public B revision(String revision) { - getBuildingInstance().setRevision(revision); - return getSelf(); - } + /** + * This function allows setting a value for version + * + * @param version desired value to be set + * @return Builder object with new value for version + */ + public B version(String version) { + getBuildingInstance().setVersion(version); + return getSelf(); + } - /** - * This function allows setting a value for creator - * - * @param creator desired value to be set - * @return Builder object with new value for creator - */ - public B creator(Reference creator) { - getBuildingInstance().setCreator(creator); - return getSelf(); - } + /** + * This function allows setting a value for revision + * + * @param revision desired value to be set + * @return Builder object with new value for revision + */ + public B revision(String revision) { + getBuildingInstance().setRevision(revision); + return getSelf(); + } - /** - * This function allows setting a value for templateId - * - * @param templateId desired value to be set - * @return Builder object with new value for templateId - */ - public B templateId(String templateId) { - getBuildingInstance().setTemplateId(templateId); - return getSelf(); - } + /** + * This function allows setting a value for creator + * + * @param creator desired value to be set + * @return Builder object with new value for creator + */ + public B creator(Reference creator) { + getBuildingInstance().setCreator(creator); + return getSelf(); + } - /** - * This function allows setting a value for updatedAt - * - * @param updatedAt desired value to be set - * @return Builder object with new value for updatedAt - */ - public B updatedAt(XMLGregorianCalendar updatedAt) { - getBuildingInstance().setUpdatedAt(updatedAt); - return getSelf(); - } + /** + * This function allows setting a value for templateId + * + * @param templateId desired value to be set + * @return Builder object with new value for templateId + */ + public B templateId(String templateId) { + getBuildingInstance().setTemplateId(templateId); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index be6999004..daf076fb1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,216 +26,216 @@ import java.util.List; -public abstract class AnnotatedRelationshipElementBuilder< - T extends AnnotatedRelationshipElement, B extends AnnotatedRelationshipElementBuilder> + +public abstract class AnnotatedRelationshipElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for annotations - * - * @param annotations desired value to be set - * @return Builder object with new value for annotations - */ - public B annotations(List annotations) { - getBuildingInstance().setAnnotations(annotations); - return getSelf(); - } - - /** - * This function allows adding a value to the List annotations - * - * @param annotations desired value to be added - * @return Builder object with new value for annotations - */ - public B annotations(DataElement annotations) { - getBuildingInstance().getAnnotations().add(annotations); - return getSelf(); - } - - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for annotations + * + * @param annotations desired value to be set + * @return Builder object with new value for annotations + */ + public B annotations(List annotations) { + getBuildingInstance().setAnnotations(annotations); + return getSelf(); + } + + /** + * This function allows adding a value to the List annotations + * + * @param annotations desired value to be added + * @return Builder object with new value for annotations + */ + public B annotations(DataElement annotations) { + getBuildingInstance().getAnnotations().add(annotations); + return getSelf(); + } + + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index e7bdbe249..e2820dc4c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,183 +26,183 @@ import java.util.List; -public abstract class AssetAdministrationShellBuilder< - T extends AssetAdministrationShell, B extends AssetAdministrationShellBuilder> + +public abstract class AssetAdministrationShellBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for derivedFrom - * - * @param derivedFrom desired value to be set - * @return Builder object with new value for derivedFrom - */ - public B derivedFrom(Reference derivedFrom) { - getBuildingInstance().setDerivedFrom(derivedFrom); - return getSelf(); - } - - /** - * This function allows setting a value for assetInformation - * - * @param assetInformation desired value to be set - * @return Builder object with new value for assetInformation - */ - public B assetInformation(AssetInformation assetInformation) { - getBuildingInstance().setAssetInformation(assetInformation); - return getSelf(); - } - - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Reference submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for derivedFrom + * + * @param derivedFrom desired value to be set + * @return Builder object with new value for derivedFrom + */ + public B derivedFrom(Reference derivedFrom) { + getBuildingInstance().setDerivedFrom(derivedFrom); + return getSelf(); + } + + /** + * This function allows setting a value for assetInformation + * + * @param assetInformation desired value to be set + * @return Builder object with new value for assetInformation + */ + public B assetInformation(AssetInformation assetInformation) { + getBuildingInstance().setAssetInformation(assetInformation); + return getSelf(); + } + + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Reference submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index 694331416..10faa0151 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,138 +17,215 @@ import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; import java.util.List; -public abstract class AssetAdministrationShellDescriptorBuilder< - T extends AssetAdministrationShellDescriptor, - B extends AssetAdministrationShellDescriptorBuilder> + +public abstract class AssetAdministrationShellDescriptorBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(Reference globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for identification - * - * @param identification desired value to be set - * @return Builder object with new value for identification - */ - public B identification(String identification) { - getBuildingInstance().setIdentification(identification); - return getSelf(); - } - - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } - - /** - * This function allows setting a value for submodelDescriptors - * - * @param submodelDescriptors desired value to be set - * @return Builder object with new value for submodelDescriptors - */ - public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { - getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for assetKind + * + * @param assetKind desired value to be set + * @return Builder object with new value for assetKind + */ + public B assetKind(AssetKind assetKind) { + getBuildingInstance().setAssetKind(assetKind); + return getSelf(); + } + + /** + * This function allows setting a value for assetType + * + * @param assetType desired value to be set + * @return Builder object with new value for assetType + */ + public B assetType(String assetType) { + getBuildingInstance().setAssetType(assetType); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } + + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } + + /** + * This function allows setting a value for submodelDescriptors + * + * @param submodelDescriptors desired value to be set + * @return Builder object with new value for submodelDescriptors + */ + public B submodelDescriptors(List submodelDescriptors) { + getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodelDescriptors + * + * @param submodelDescriptors desired value to be added + * @return Builder object with new value for submodelDescriptors + */ + public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { + getBuildingInstance().getSubmodelDescriptors().add(submodelDescriptors); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java deleted file mode 100644 index 17045c0ab..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellEnvironmentBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.builder; - -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; -import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; -import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; - -import java.util.List; - -public abstract class AssetAdministrationShellEnvironmentBuilder< - T extends AssetAdministrationShellEnvironment, - B extends AssetAdministrationShellEnvironmentBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for assetAdministrationShells - * - * @param assetAdministrationShells desired value to be set - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(List assetAdministrationShells) { - getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); - return getSelf(); - } - - /** - * This function allows adding a value to the List assetAdministrationShells - * - * @param assetAdministrationShells desired value to be added - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); - return getSelf(); - } - - /** - * This function allows setting a value for conceptDescriptions - * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List conceptDescriptions - * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); - return getSelf(); - } - - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } -} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 528fa7c95..974bbcae2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,73 +22,73 @@ import java.util.List; -public abstract class AssetInformationBuilder< - T extends AssetInformation, B extends AssetInformationBuilder> + +public abstract class AssetInformationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } + /** + * This function allows setting a value for assetKind + * + * @param assetKind desired value to be set + * @return Builder object with new value for assetKind + */ + public B assetKind(AssetKind assetKind) { + getBuildingInstance().setAssetKind(assetKind); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } + /** + * This function allows setting a value for assetType + * + * @param assetType desired value to be set + * @return Builder object with new value for assetType + */ + public B assetType(String assetType) { + getBuildingInstance().setAssetType(assetType); + return getSelf(); + } - /** - * This function allows setting a value for defaultThumbnail - * - * @param defaultThumbnail desired value to be set - * @return Builder object with new value for defaultThumbnail - */ - public B defaultThumbnail(Resource defaultThumbnail) { - getBuildingInstance().setDefaultThumbnail(defaultThumbnail); - return getSelf(); - } + /** + * This function allows setting a value for defaultThumbnail + * + * @param defaultThumbnail desired value to be set + * @return Builder object with new value for defaultThumbnail + */ + public B defaultThumbnail(Resource defaultThumbnail) { + getBuildingInstance().setDefaultThumbnail(defaultThumbnail); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java index f6372fd11..eea07026f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,30 +17,55 @@ import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; +import org.eclipse.digitaltwin.aas4j.v3.model.Message; -public abstract class BaseOperationResultBuilder< - T extends BaseOperationResult, B extends BaseOperationResultBuilder> +import java.util.List; + + +public abstract class BaseOperationResultBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for executionState - * - * @param executionState desired value to be set - * @return Builder object with new value for executionState - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().setExecutionState(executionState); - return getSelf(); - } - - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } + /** + * This function allows setting a value for executionState + * + * @param executionState desired value to be set + * @return Builder object with new value for executionState + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().setExecutionState(executionState); + return getSelf(); + } + + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); + return getSelf(); + } + + /** + * This function allows setting a value for messages + * + * @param messages desired value to be set + * @return Builder object with new value for messages + */ + public B messages(List messages) { + getBuildingInstance().setMessages(messages); + return getSelf(); + } + + /** + * This function allows adding a value to the List messages + * + * @param messages desired value to be added + * @return Builder object with new value for messages + */ + public B messages(Message messages) { + getBuildingInstance().getMessages().add(messages); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index 2baa40410..cec473db9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,260 +27,260 @@ import java.util.List; -public abstract class BasicEventElementBuilder< - T extends BasicEventElement, B extends BasicEventElementBuilder> + +public abstract class BasicEventElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for observed - * - * @param observed desired value to be set - * @return Builder object with new value for observed - */ - public B observed(Reference observed) { - getBuildingInstance().setObserved(observed); - return getSelf(); - } + /** + * This function allows setting a value for observed + * + * @param observed desired value to be set + * @return Builder object with new value for observed + */ + public B observed(Reference observed) { + getBuildingInstance().setObserved(observed); + return getSelf(); + } - /** - * This function allows setting a value for direction - * - * @param direction desired value to be set - * @return Builder object with new value for direction - */ - public B direction(Direction direction) { - getBuildingInstance().setDirection(direction); - return getSelf(); - } + /** + * This function allows setting a value for direction + * + * @param direction desired value to be set + * @return Builder object with new value for direction + */ + public B direction(Direction direction) { + getBuildingInstance().setDirection(direction); + return getSelf(); + } - /** - * This function allows setting a value for state - * - * @param state desired value to be set - * @return Builder object with new value for state - */ - public B state(StateOfEvent state) { - getBuildingInstance().setState(state); - return getSelf(); - } + /** + * This function allows setting a value for state + * + * @param state desired value to be set + * @return Builder object with new value for state + */ + public B state(StateOfEvent state) { + getBuildingInstance().setState(state); + return getSelf(); + } - /** - * This function allows setting a value for messageTopic - * - * @param messageTopic desired value to be set - * @return Builder object with new value for messageTopic - */ - public B messageTopic(String messageTopic) { - getBuildingInstance().setMessageTopic(messageTopic); - return getSelf(); - } + /** + * This function allows setting a value for messageTopic + * + * @param messageTopic desired value to be set + * @return Builder object with new value for messageTopic + */ + public B messageTopic(String messageTopic) { + getBuildingInstance().setMessageTopic(messageTopic); + return getSelf(); + } - /** - * This function allows setting a value for messageBroker - * - * @param messageBroker desired value to be set - * @return Builder object with new value for messageBroker - */ - public B messageBroker(Reference messageBroker) { - getBuildingInstance().setMessageBroker(messageBroker); - return getSelf(); - } + /** + * This function allows setting a value for messageBroker + * + * @param messageBroker desired value to be set + * @return Builder object with new value for messageBroker + */ + public B messageBroker(Reference messageBroker) { + getBuildingInstance().setMessageBroker(messageBroker); + return getSelf(); + } - /** - * This function allows setting a value for lastUpdate - * - * @param lastUpdate desired value to be set - * @return Builder object with new value for lastUpdate - */ - public B lastUpdate(String lastUpdate) { - getBuildingInstance().setLastUpdate(lastUpdate); - return getSelf(); - } + /** + * This function allows setting a value for lastUpdate + * + * @param lastUpdate desired value to be set + * @return Builder object with new value for lastUpdate + */ + public B lastUpdate(String lastUpdate) { + getBuildingInstance().setLastUpdate(lastUpdate); + return getSelf(); + } - /** - * This function allows setting a value for minInterval - * - * @param minInterval desired value to be set - * @return Builder object with new value for minInterval - */ - public B minInterval(String minInterval) { - getBuildingInstance().setMinInterval(minInterval); - return getSelf(); - } + /** + * This function allows setting a value for minInterval + * + * @param minInterval desired value to be set + * @return Builder object with new value for minInterval + */ + public B minInterval(String minInterval) { + getBuildingInstance().setMinInterval(minInterval); + return getSelf(); + } - /** - * This function allows setting a value for maxInterval - * - * @param maxInterval desired value to be set - * @return Builder object with new value for maxInterval - */ - public B maxInterval(String maxInterval) { - getBuildingInstance().setMaxInterval(maxInterval); - return getSelf(); - } + /** + * This function allows setting a value for maxInterval + * + * @param maxInterval desired value to be set + * @return Builder object with new value for maxInterval + */ + public B maxInterval(String maxInterval) { + getBuildingInstance().setMaxInterval(maxInterval); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index 5ca253702..6ffa4a9e0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,193 +25,193 @@ import java.util.List; -public abstract class BlobBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(byte[] value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + +public abstract class BlobBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(byte[] value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index 979dc6f0a..cdc11013e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,5 +17,6 @@ public interface Builder { - public T build(); + public T build(); + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index e8ac224cb..295f35882 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,171 +25,171 @@ import java.util.List; -public abstract class CapabilityBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + +public abstract class CapabilityBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 3e93a587e..57919df59 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,161 +25,161 @@ import java.util.List; -public abstract class ConceptDescriptionBuilder< - T extends ConceptDescription, B extends ConceptDescriptionBuilder> + +public abstract class ConceptDescriptionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for isCaseOfs - * - * @param isCaseOfs desired value to be set - * @return Builder object with new value for isCaseOfs - */ - public B isCaseOfs(List isCaseOfs) { - getBuildingInstance().setIsCaseOfs(isCaseOfs); - return getSelf(); - } - - /** - * This function allows adding a value to the List isCaseOfs - * - * @param isCaseOf desired value to be added - * @return Builder object with new value for isCaseOfs - */ - public B isCaseOf(Reference isCaseOf) { - getBuildingInstance().getIsCaseOfs().add(isCaseOf); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for isCaseOf + * + * @param isCaseOfs desired value to be set + * @return Builder object with new value for isCaseOf + */ + public B isCaseOf(List isCaseOfs) { + getBuildingInstance().setIsCaseOf(isCaseOfs); + return getSelf(); + } + + /** + * This function allows adding a value to the List isCaseOf + * + * @param isCaseOf desired value to be added + * @return Builder object with new value for isCaseOf + */ + public B isCaseOf(Reference isCaseOf) { + getBuildingInstance().getIsCaseOf().add(isCaseOf); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index a4946d432..361b5cb1b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,172 +26,173 @@ import java.util.List; -public abstract class DataSpecificationIec61360Builder< - T extends DataSpecificationIec61360, B extends DataSpecificationIec61360Builder> + +public abstract class DataSpecificationIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for preferredNames - * - * @param preferredNames desired value to be set - * @return Builder object with new value for preferredNames - */ - public B preferredNames(List preferredNames) { - getBuildingInstance().setPreferredNames(preferredNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List preferredNames - * - * @param preferredName desired value to be added - * @return Builder object with new value for preferredNames - */ - public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { - getBuildingInstance().getPreferredNames().add(preferredName); - return getSelf(); - } - - /** - * This function allows setting a value for shortNames - * - * @param shortNames desired value to be set - * @return Builder object with new value for shortNames - */ - public B shortNames(List shortNames) { - getBuildingInstance().setShortNames(shortNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List shortNames - * - * @param shortName desired value to be added - * @return Builder object with new value for shortNames - */ - public B shortName(LangStringShortNameTypeIec61360 shortName) { - getBuildingInstance().getShortNames().add(shortName); - return getSelf(); - } - - /** - * This function allows setting a value for unit - * - * @param unit desired value to be set - * @return Builder object with new value for unit - */ - public B unit(String unit) { - getBuildingInstance().setUnit(unit); - return getSelf(); - } - - /** - * This function allows setting a value for unitId - * - * @param unitId desired value to be set - * @return Builder object with new value for unitId - */ - public B unitId(Reference unitId) { - getBuildingInstance().setUnitId(unitId); - return getSelf(); - } - - /** - * This function allows setting a value for sourceOfDefinition - * - * @param sourceOfDefinition desired value to be set - * @return Builder object with new value for sourceOfDefinition - */ - public B sourceOfDefinition(String sourceOfDefinition) { - getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); - return getSelf(); - } - - /** - * This function allows setting a value for symbol - * - * @param symbol desired value to be set - * @return Builder object with new value for symbol - */ - public B symbol(String symbol) { - getBuildingInstance().setSymbol(symbol); - return getSelf(); - } - - /** - * This function allows setting a value for dataType - * - * @param dataType desired value to be set - * @return Builder object with new value for dataType - */ - public B dataType(DataTypeIec61360 dataType) { - getBuildingInstance().setDataType(dataType); - return getSelf(); - } - - /** - * This function allows setting a value for definitions - * - * @param definitions desired value to be set - * @return Builder object with new value for definitions - */ - public B definitions(List definitions) { - getBuildingInstance().setDefinitions(definitions); - return getSelf(); - } - - /** - * This function allows adding a value to the List definitions - * - * @param definition desired value to be added - * @return Builder object with new value for definitions - */ - public B definition(LangStringDefinitionTypeIec61360 definition) { - getBuildingInstance().getDefinitions().add(definition); - return getSelf(); - } - - /** - * This function allows setting a value for valueFormat - * - * @param valueFormat desired value to be set - * @return Builder object with new value for valueFormat - */ - public B valueFormat(String valueFormat) { - getBuildingInstance().setValueFormat(valueFormat); - return getSelf(); - } - - /** - * This function allows setting a value for valueList - * - * @param valueList desired value to be set - * @return Builder object with new value for valueList - */ - public B valueList(ValueList valueList) { - getBuildingInstance().setValueList(valueList); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for levelType - * - * @param levelType desired value to be set - * @return Builder object with new value for levelType - */ - public B levelType(LevelType levelType) { - getBuildingInstance().setLevelType(levelType); - return getSelf(); - } + /** + * This function allows setting a value for preferredName + * + * @param preferredNames desired value to be set + * @return Builder object with new value for preferredName + */ + public B preferredName(List preferredNames) { + getBuildingInstance().setPreferredName(preferredNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List preferredName + * + * @param preferredName desired value to be added + * @return Builder object with new value for preferredName + */ + public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { + getBuildingInstance().getPreferredName().add(preferredName); + return getSelf(); + } + + /** + * This function allows setting a value for shortName + * + * @param shortNames desired value to be set + * @return Builder object with new value for shortName + */ + public B shortName(List shortNames) { + getBuildingInstance().setShortName(shortNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List shortName + * + * @param shortName desired value to be added + * @return Builder object with new value for shortName + */ + public B shortName(LangStringShortNameTypeIec61360 shortName) { + getBuildingInstance().getShortName().add(shortName); + return getSelf(); + } + + /** + * This function allows setting a value for unit + * + * @param unit desired value to be set + * @return Builder object with new value for unit + */ + public B unit(String unit) { + getBuildingInstance().setUnit(unit); + return getSelf(); + } + + /** + * This function allows setting a value for unitId + * + * @param unitId desired value to be set + * @return Builder object with new value for unitId + */ + public B unitId(Reference unitId) { + getBuildingInstance().setUnitId(unitId); + return getSelf(); + } + + /** + * This function allows setting a value for sourceOfDefinition + * + * @param sourceOfDefinition desired value to be set + * @return Builder object with new value for sourceOfDefinition + */ + public B sourceOfDefinition(String sourceOfDefinition) { + getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); + return getSelf(); + } + + /** + * This function allows setting a value for symbol + * + * @param symbol desired value to be set + * @return Builder object with new value for symbol + */ + public B symbol(String symbol) { + getBuildingInstance().setSymbol(symbol); + return getSelf(); + } + + /** + * This function allows setting a value for dataType + * + * @param dataType desired value to be set + * @return Builder object with new value for dataType + */ + public B dataType(DataTypeIec61360 dataType) { + getBuildingInstance().setDataType(dataType); + return getSelf(); + } + + /** + * This function allows setting a value for definition + * + * @param definitions desired value to be set + * @return Builder object with new value for definition + */ + public B definition(List definitions) { + getBuildingInstance().setDefinition(definitions); + return getSelf(); + } + + /** + * This function allows adding a value to the List definition + * + * @param definition desired value to be added + * @return Builder object with new value for definition + */ + public B definition(LangStringDefinitionTypeIec61360 definition) { + getBuildingInstance().getDefinition().add(definition); + return getSelf(); + } + + /** + * This function allows setting a value for valueFormat + * + * @param valueFormat desired value to be set + * @return Builder object with new value for valueFormat + */ + public B valueFormat(String valueFormat) { + getBuildingInstance().setValueFormat(valueFormat); + return getSelf(); + } + + /** + * This function allows setting a value for valueList + * + * @param valueList desired value to be set + * @return Builder object with new value for valueList + */ + public B valueList(ValueList valueList) { + getBuildingInstance().setValueList(valueList); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for levelType + * + * @param levelType desired value to be set + * @return Builder object with new value for levelType + */ + public B levelType(LevelType levelType) { + getBuildingInstance().setLevelType(levelType); + return getSelf(); + } + } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java index efa572b10..1e7b4c9c0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,32 +16,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import java.util.List; -public abstract class DescriptorBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } + +public abstract class DescriptorBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index 831eda5c6..f92f45fe4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,33 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class EmbeddedDataSpecificationBuilder< - T extends EmbeddedDataSpecification, B extends EmbeddedDataSpecificationBuilder> + +public abstract class EmbeddedDataSpecificationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for dataSpecification - * - * @param dataSpecification desired value to be set - * @return Builder object with new value for dataSpecification - */ - public B dataSpecification(Reference dataSpecification) { - getBuildingInstance().setDataSpecification(dataSpecification); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecification + * + * @param dataSpecification desired value to be set + * @return Builder object with new value for dataSpecification + */ + public B dataSpecification(Reference dataSpecification) { + getBuildingInstance().setDataSpecification(dataSpecification); + return getSelf(); + } - /** - * This function allows setting a value for dataSpecificationContent - * - * @param dataSpecificationContent desired value to be set - * @return Builder object with new value for dataSpecificationContent - */ - public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecificationContent + * + * @param dataSpecificationContent desired value to be set + * @return Builder object with new value for dataSpecificationContent + */ + public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java index 0a11733b7..a1040c6b4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; -public abstract class EndpointBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for _interface - * - * @param _interface desired value to be set - * @return Builder object with new value for _interface - */ - public B _interface(String _interface) { - getBuildingInstance().set_interface(_interface); - return getSelf(); - } +public abstract class EndpointBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for _interface + * + * @param _interface desired value to be set + * @return Builder object with new value for _interface + */ + public B _interface(String _interface) { + getBuildingInstance().set_interface(_interface); + return getSelf(); + } - /** - * This function allows setting a value for protocolInformation - * - * @param protocolInformation desired value to be set - * @return Builder object with new value for protocolInformation - */ - public B protocolInformation(ProtocolInformation protocolInformation) { - getBuildingInstance().setProtocolInformation(protocolInformation); - return getSelf(); - } + /** + * This function allows setting a value for protocolInformation + * + * @param protocolInformation desired value to be set + * @return Builder object with new value for protocolInformation + */ + public B protocolInformation(ProtocolInformation protocolInformation) { + getBuildingInstance().setProtocolInformation(protocolInformation); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index a61cd139f..6314d0c74 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,237 +28,237 @@ import java.util.List; -public abstract class EntityBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for statements - * - * @param statements desired value to be set - * @return Builder object with new value for statements - */ - public B statements(List statements) { - getBuildingInstance().setStatements(statements); - return getSelf(); - } +public abstract class EntityBuilder> extends ExtendableBuilder { - /** - * This function allows adding a value to the List statements - * - * @param statements desired value to be added - * @return Builder object with new value for statements - */ - public B statements(SubmodelElement statements) { - getBuildingInstance().getStatements().add(statements); - return getSelf(); - } + /** + * This function allows setting a value for statements + * + * @param statements desired value to be set + * @return Builder object with new value for statements + */ + public B statements(List statements) { + getBuildingInstance().setStatements(statements); + return getSelf(); + } - /** - * This function allows setting a value for entityType - * - * @param entityType desired value to be set - * @return Builder object with new value for entityType - */ - public B entityType(EntityType entityType) { - getBuildingInstance().setEntityType(entityType); - return getSelf(); - } + /** + * This function allows adding a value to the List statements + * + * @param statements desired value to be added + * @return Builder object with new value for statements + */ + public B statements(SubmodelElement statements) { + getBuildingInstance().getStatements().add(statements); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for entityType + * + * @param entityType desired value to be set + * @return Builder object with new value for entityType + */ + public B entityType(EntityType entityType) { + getBuildingInstance().setEntityType(entityType); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 722ccc95b..60288ffc2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,72 +22,72 @@ import java.util.List; -public abstract class EnvironmentBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for assetAdministrationShells - * - * @param assetAdministrationShells desired value to be set - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(List assetAdministrationShells) { - getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); - return getSelf(); - } +public abstract class EnvironmentBuilder> extends ExtendableBuilder { - /** - * This function allows adding a value to the List assetAdministrationShells - * - * @param assetAdministrationShells desired value to be added - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows setting a value for assetAdministrationShells + * + * @param assetAdministrationShells desired value to be set + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(List assetAdministrationShells) { + getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } + /** + * This function allows adding a value to the List assetAdministrationShells + * + * @param assetAdministrationShells desired value to be added + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } - /** - * This function allows setting a value for conceptDescriptions - * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Submodel submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } - /** - * This function allows adding a value to the List conceptDescriptions - * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); - return getSelf(); - } + /** + * This function allows setting a value for conceptDescriptions + * + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List conceptDescriptions + * + * @param conceptDescriptions desired value to be added + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(ConceptDescription conceptDescriptions) { + getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index ea78983d4..b3e691032 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,98 +15,98 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -public abstract class EventPayloadBuilder< - T extends EventPayload, B extends EventPayloadBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for source - * - * @param source desired value to be set - * @return Builder object with new value for source - */ - public B source(Reference source) { - getBuildingInstance().setSource(source); - return getSelf(); - } +public abstract class EventPayloadBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for source + * + * @param source desired value to be set + * @return Builder object with new value for source + */ + public B source(Reference source) { + getBuildingInstance().setSource(source); + return getSelf(); + } - /** - * This function allows setting a value for sourceSemanticId - * - * @param sourceSemanticId desired value to be set - * @return Builder object with new value for sourceSemanticId - */ - public B sourceSemanticId(Reference sourceSemanticId) { - getBuildingInstance().setSourceSemanticId(sourceSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for sourceSemanticId + * + * @param sourceSemanticId desired value to be set + * @return Builder object with new value for sourceSemanticId + */ + public B sourceSemanticId(Reference sourceSemanticId) { + getBuildingInstance().setSourceSemanticId(sourceSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for observableReference - * - * @param observableReference desired value to be set - * @return Builder object with new value for observableReference - */ - public B observableReference(Reference observableReference) { - getBuildingInstance().setObservableReference(observableReference); - return getSelf(); - } + /** + * This function allows setting a value for observableReference + * + * @param observableReference desired value to be set + * @return Builder object with new value for observableReference + */ + public B observableReference(Reference observableReference) { + getBuildingInstance().setObservableReference(observableReference); + return getSelf(); + } - /** - * This function allows setting a value for observableSemanticId - * - * @param observableSemanticId desired value to be set - * @return Builder object with new value for observableSemanticId - */ - public B observableSemanticId(Reference observableSemanticId) { - getBuildingInstance().setObservableSemanticId(observableSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for observableSemanticId + * + * @param observableSemanticId desired value to be set + * @return Builder object with new value for observableSemanticId + */ + public B observableSemanticId(Reference observableSemanticId) { + getBuildingInstance().setObservableSemanticId(observableSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for topic - * - * @param topic desired value to be set - * @return Builder object with new value for topic - */ - public B topic(String topic) { - getBuildingInstance().setTopic(topic); - return getSelf(); - } + /** + * This function allows setting a value for topic + * + * @param topic desired value to be set + * @return Builder object with new value for topic + */ + public B topic(String topic) { + getBuildingInstance().setTopic(topic); + return getSelf(); + } - /** - * This function allows setting a value for subjectId - * - * @param subjectId desired value to be set - * @return Builder object with new value for subjectId - */ - public B subjectId(Reference subjectId) { - getBuildingInstance().setSubjectId(subjectId); - return getSelf(); - } + /** + * This function allows setting a value for subjectId + * + * @param subjectId desired value to be set + * @return Builder object with new value for subjectId + */ + public B subjectId(Reference subjectId) { + getBuildingInstance().setSubjectId(subjectId); + return getSelf(); + } - /** - * This function allows setting a value for timeStamp - * - * @param timeStamp desired value to be set - * @return Builder object with new value for timeStamp - */ - public B timeStamp(String timeStamp) { - getBuildingInstance().setTimeStamp(timeStamp); - return getSelf(); - } + /** + * This function allows setting a value for timeStamp + * + * @param timeStamp desired value to be set + * @return Builder object with new value for timeStamp + */ + public B timeStamp(String timeStamp) { + getBuildingInstance().setTimeStamp(timeStamp); + return getSelf(); + } - /** - * This function allows setting a value for payload - * - * @param payload desired value to be set - * @return Builder object with new value for payload - */ - public B payload(byte[] payload) { - getBuildingInstance().setPayload(payload); - return getSelf(); - } + /** + * This function allows setting a value for payload + * + * @param payload desired value to be set + * @return Builder object with new value for payload + */ + public B payload(byte[] payload) { + getBuildingInstance().setPayload(payload); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java index 8ffd57b76..f11f39f72 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,8 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -public abstract class ExtendableBuilder> - extends AbstractBuilder { +public abstract class ExtendableBuilder> extends AbstractBuilder { + + protected abstract B getSelf(); - protected abstract B getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java index 019288e94..d6dc6f4b4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,94 +21,94 @@ import java.util.List; -public abstract class ExtensionBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } +public abstract class ExtensionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for refersTos - * - * @param refersTos desired value to be set - * @return Builder object with new value for refersTos - */ - public B refersTos(List refersTos) { - getBuildingInstance().setRefersTos(refersTos); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows adding a value to the List refersTos - * - * @param refersTo desired value to be added - * @return Builder object with new value for refersTos - */ - public B refersTo(Reference refersTo) { - getBuildingInstance().getRefersTos().add(refersTo); - return getSelf(); - } + /** + * This function allows setting a value for refersTo + * + * @param refersTos desired value to be set + * @return Builder object with new value for refersTo + */ + public B refersTo(List refersTos) { + getBuildingInstance().setRefersTo(refersTos); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List refersTo + * + * @param refersTo desired value to be added + * @return Builder object with new value for refersTo + */ + public B refersTo(Reference refersTo) { + getBuildingInstance().getRefersTo().add(refersTo); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index df2a133fc..ad8c008dd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,193 +25,193 @@ import java.util.List; -public abstract class FileBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + +public abstract class FileBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index 3ec90acd9..131e0ee5d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; -public abstract class KeyBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(KeyTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } +public abstract class KeyBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(KeyTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index 387c68f1d..b6d43e28e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; -public abstract class LangStringDefinitionTypeIec61360Builder< - T extends LangStringDefinitionTypeIec61360, - B extends LangStringDefinitionTypeIec61360Builder> + +public abstract class LangStringDefinitionTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index 243793ae4..2df57ae9c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -public abstract class LangStringNameTypeBuilder< - T extends LangStringNameType, B extends LangStringNameTypeBuilder> + +public abstract class LangStringNameTypeBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index 72dd3076c..685de3530 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; -public abstract class LangStringPreferredNameTypeIec61360Builder< - T extends LangStringPreferredNameTypeIec61360, - B extends LangStringPreferredNameTypeIec61360Builder> + +public abstract class LangStringPreferredNameTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 0d3746ce7..2b37bb3d5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; -public abstract class LangStringShortNameTypeIec61360Builder< - T extends LangStringShortNameTypeIec61360, - B extends LangStringShortNameTypeIec61360Builder> + +public abstract class LangStringShortNameTypeIec61360Builder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index 57491cd0c..55e927566 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -public abstract class LangStringTextTypeBuilder< - T extends LangStringTextType, B extends LangStringTextTypeBuilder> + +public abstract class LangStringTextTypeBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index e0bf0ccb6..47bc13d6c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,52 +15,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; -public abstract class LevelTypeBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(boolean min) { - getBuildingInstance().setMin(min); - return getSelf(); - } +public abstract class LevelTypeBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(boolean min) { + getBuildingInstance().setMin(min); + return getSelf(); + } - /** - * This function allows setting a value for nom - * - * @param nom desired value to be set - * @return Builder object with new value for nom - */ - public B nom(boolean nom) { - getBuildingInstance().setNom(nom); - return getSelf(); - } + /** + * This function allows setting a value for nom + * + * @param nom desired value to be set + * @return Builder object with new value for nom + */ + public B nom(boolean nom) { + getBuildingInstance().setNom(nom); + return getSelf(); + } - /** - * This function allows setting a value for typ - * - * @param typ desired value to be set - * @return Builder object with new value for typ - */ - public B typ(boolean typ) { - getBuildingInstance().setTyp(typ); - return getSelf(); - } + /** + * This function allows setting a value for typ + * + * @param typ desired value to be set + * @return Builder object with new value for typ + */ + public B typ(boolean typ) { + getBuildingInstance().setTyp(typ); + return getSelf(); + } - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(boolean max) { - getBuildingInstance().setMax(max); - return getSelf(); - } + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(boolean max) { + getBuildingInstance().setMax(max); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java index 1834ab299..2450de674 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,53 +15,65 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; +import org.eclipse.digitaltwin.aas4j.v3.model.MessageTypeEnum; + + +public abstract class MessageBuilder> extends ExtendableBuilder { -public abstract class MessageBuilder> - extends ExtendableBuilder { + /** + * This function allows setting a value for code + * + * @param code desired value to be set + * @return Builder object with new value for code + */ + public B code(String code) { + getBuildingInstance().setCode(code); + return getSelf(); + } - /** - * This function allows setting a value for code - * - * @param code desired value to be set - * @return Builder object with new value for code - */ - public B code(String code) { - getBuildingInstance().setCode(code); - return getSelf(); - } + /** + * This function allows setting a value for correlationId + * + * @param correlationId desired value to be set + * @return Builder object with new value for correlationId + */ + public B correlationId(String correlationId) { + getBuildingInstance().setCorrelationId(correlationId); + return getSelf(); + } - /** - * This function allows setting a value for messageType - * - * @param messageType desired value to be set - * @return Builder object with new value for messageType - */ - public B messageType(MessageType messageType) { - getBuildingInstance().setMessageType(messageType); - return getSelf(); - } + /** + * This function allows setting a value for messageType + * + * @param messageType desired value to be set + * @return Builder object with new value for messageType + */ + public B messageType(MessageTypeEnum messageType) { + getBuildingInstance().setMessageType(messageType); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } - /** - * This function allows setting a value for timestamp - * - * @param timestamp desired value to be set - * @return Builder object with new value for timestamp - */ - public B timestamp(String timestamp) { - getBuildingInstance().setTimestamp(timestamp); - return getSelf(); - } + /** + * This function allows setting a value for timestamp + * + * @param timestamp desired value to be set + * @return Builder object with new value for timestamp + */ + public B timestamp(String timestamp) { + getBuildingInstance().setTimestamp(timestamp); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index a32410df0..e947767eb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,205 +25,205 @@ import java.util.List; -public abstract class MultiLanguagePropertyBuilder< - T extends MultiLanguageProperty, B extends MultiLanguagePropertyBuilder> + +public abstract class MultiLanguagePropertyBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for values - * - * @param values desired value to be set - * @return Builder object with new value for values - */ - public B values(List values) { - getBuildingInstance().setValues(values); - return getSelf(); - } - - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(LangStringTextType value) { - getBuildingInstance().getValues().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param values desired value to be set + * @return Builder object with new value for value + */ + public B value(List values) { + getBuildingInstance().setValue(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List value + * + * @param value desired value to be added + * @return Builder object with new value for value + */ + public B value(LangStringTextType value) { + getBuildingInstance().getValue().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index 67943bbe2..c8270827f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,237 +26,237 @@ import java.util.List; -public abstract class OperationBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for inputVariables - * - * @param inputVariables desired value to be set - * @return Builder object with new value for inputVariables - */ - public B inputVariables(List inputVariables) { - getBuildingInstance().setInputVariables(inputVariables); - return getSelf(); - } +public abstract class OperationBuilder> extends ExtendableBuilder { - /** - * This function allows adding a value to the List inputVariables - * - * @param inputVariables desired value to be added - * @return Builder object with new value for inputVariables - */ - public B inputVariables(OperationVariable inputVariables) { - getBuildingInstance().getInputVariables().add(inputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inputVariables + * + * @param inputVariables desired value to be set + * @return Builder object with new value for inputVariables + */ + public B inputVariables(List inputVariables) { + getBuildingInstance().setInputVariables(inputVariables); + return getSelf(); + } - /** - * This function allows setting a value for outputVariables - * - * @param outputVariables desired value to be set - * @return Builder object with new value for outputVariables - */ - public B outputVariables(List outputVariables) { - getBuildingInstance().setOutputVariables(outputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inputVariables + * + * @param inputVariables desired value to be added + * @return Builder object with new value for inputVariables + */ + public B inputVariables(OperationVariable inputVariables) { + getBuildingInstance().getInputVariables().add(inputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List outputVariables - * - * @param outputVariables desired value to be added - * @return Builder object with new value for outputVariables - */ - public B outputVariables(OperationVariable outputVariables) { - getBuildingInstance().getOutputVariables().add(outputVariables); - return getSelf(); - } + /** + * This function allows setting a value for outputVariables + * + * @param outputVariables desired value to be set + * @return Builder object with new value for outputVariables + */ + public B outputVariables(List outputVariables) { + getBuildingInstance().setOutputVariables(outputVariables); + return getSelf(); + } - /** - * This function allows setting a value for inoutputVariables - * - * @param inoutputVariables desired value to be set - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(List inoutputVariables) { - getBuildingInstance().setInoutputVariables(inoutputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List outputVariables + * + * @param outputVariables desired value to be added + * @return Builder object with new value for outputVariables + */ + public B outputVariables(OperationVariable outputVariables) { + getBuildingInstance().getOutputVariables().add(outputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputVariables - * - * @param inoutputVariables desired value to be added - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(OperationVariable inoutputVariables) { - getBuildingInstance().getInoutputVariables().add(inoutputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inoutputVariables + * + * @param inoutputVariables desired value to be set + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(List inoutputVariables) { + getBuildingInstance().setInoutputVariables(inoutputVariables); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputVariables + * + * @param inoutputVariables desired value to be added + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(OperationVariable inoutputVariables) { + getBuildingInstance().getInoutputVariables().add(inoutputVariables); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java index 0fa9b74ec..1307ed2b5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,31 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; -public abstract class OperationHandleBuilder< - T extends OperationHandle, B extends OperationHandleBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for handleId - * - * @param handleId desired value to be set - * @return Builder object with new value for handleId - */ - public B handleId(String handleId) { - getBuildingInstance().setHandleId(handleId); - return getSelf(); - } +public abstract class OperationHandleBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for requestId - * - * @param requestId desired value to be set - * @return Builder object with new value for requestId - */ - public B requestId(String requestId) { - getBuildingInstance().setRequestId(requestId); - return getSelf(); - } + /** + * This function allows setting a value for handleId + * + * @param handleId desired value to be set + * @return Builder object with new value for handleId + */ + public B handleId(String handleId) { + getBuildingInstance().setHandleId(handleId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java index 04968fa9f..54e5652af 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -18,53 +18,64 @@ import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import java.math.BigInteger; +import java.util.List; -public abstract class OperationRequestBuilder< - T extends OperationRequest, B extends OperationRequestBuilder> + +public abstract class OperationRequestBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(List inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } + + /** + * This function allows adding a value to the List inoutputArguments + * + * @param inoutputArguments desired value to be added + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().getInoutputArguments().add(inoutputArguments); + return getSelf(); + } - /** - * This function allows setting a value for inputArguments - * - * @param inputArguments desired value to be set - * @return Builder object with new value for inputArguments - */ - public B inputArguments(OperationVariable inputArguments) { - getBuildingInstance().setInputArguments(inputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inputArguments + * + * @param inputArguments desired value to be set + * @return Builder object with new value for inputArguments + */ + public B inputArguments(List inputArguments) { + getBuildingInstance().setInputArguments(inputArguments); + return getSelf(); + } - /** - * This function allows setting a value for requestId - * - * @param requestId desired value to be set - * @return Builder object with new value for requestId - */ - public B requestId(String requestId) { - getBuildingInstance().setRequestId(requestId); - return getSelf(); - } + /** + * This function allows adding a value to the List inputArguments + * + * @param inputArguments desired value to be added + * @return Builder object with new value for inputArguments + */ + public B inputArguments(OperationVariable inputArguments) { + getBuildingInstance().getInputArguments().add(inputArguments); + return getSelf(); + } - /** - * This function allows setting a value for timeout - * - * @param timeout desired value to be set - * @return Builder object with new value for timeout - */ - public B timeout(BigInteger timeout) { - getBuildingInstance().setTimeout(timeout); - return getSelf(); - } + /** + * This function allows setting a value for clientTimeoutDuration + * + * @param clientTimeoutDuration desired value to be set + * @return Builder object with new value for clientTimeoutDuration + */ + public B clientTimeoutDuration(String clientTimeoutDuration) { + getBuildingInstance().setClientTimeoutDuration(clientTimeoutDuration); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java index 5ea9747cb..edf5b944f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,124 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import org.eclipse.digitaltwin.aas4j.v3.model.Result; import java.util.List; -public abstract class OperationResultBuilder< - T extends OperationResult, B extends OperationResultBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for executionResults - * - * @param executionResults desired value to be set - * @return Builder object with new value for executionResults - */ - public B executionResults(List executionResults) { - getBuildingInstance().setExecutionResults(executionResults); - return getSelf(); - } - - /** - * This function allows adding a value to the List executionResults - * - * @param executionResult desired value to be added - * @return Builder object with new value for executionResults - */ - public B executionResult(Result executionResult) { - getBuildingInstance().getExecutionResults().add(executionResult); - return getSelf(); - } - - /** - * This function allows setting a value for executionStates - * - * @param executionStates desired value to be set - * @return Builder object with new value for executionStates - */ - public B executionStates(List executionStates) { - getBuildingInstance().setExecutionStates(executionStates); - return getSelf(); - } - /** - * This function allows adding a value to the List executionStates - * - * @param executionState desired value to be added - * @return Builder object with new value for executionStates - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().getExecutionStates().add(executionState); - return getSelf(); - } - - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } - - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); - return getSelf(); - } +public abstract class OperationResultBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for outputArguments - * - * @param outputArguments desired value to be set - * @return Builder object with new value for outputArguments - */ - public B outputArguments(List outputArguments) { - getBuildingInstance().setOutputArguments(outputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(List inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List outputArguments - * - * @param outputArguments desired value to be added - * @return Builder object with new value for outputArguments - */ - public B outputArguments(OperationVariable outputArguments) { - getBuildingInstance().getOutputArguments().add(outputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputArguments + * + * @param inoutputArguments desired value to be added + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().getInoutputArguments().add(inoutputArguments); + return getSelf(); + } - /** - * This function allows setting a value for requestIds - * - * @param requestIds desired value to be set - * @return Builder object with new value for requestIds - */ - public B requestIds(List requestIds) { - getBuildingInstance().setRequestIds(requestIds); - return getSelf(); - } + /** + * This function allows setting a value for outputArguments + * + * @param outputArguments desired value to be set + * @return Builder object with new value for outputArguments + */ + public B outputArguments(List outputArguments) { + getBuildingInstance().setOutputArguments(outputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List requestIds - * - * @param requestId desired value to be added - * @return Builder object with new value for requestIds - */ - public B requestId(String requestId) { - getBuildingInstance().getRequestIds().add(requestId); - return getSelf(); - } + /** + * This function allows adding a value to the List outputArguments + * + * @param outputArguments desired value to be added + * @return Builder object with new value for outputArguments + */ + public B outputArguments(OperationVariable outputArguments) { + getBuildingInstance().getOutputArguments().add(outputArguments); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index b42de883f..cddb89a47 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,21 +15,22 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -public abstract class OperationVariableBuilder< - T extends OperationVariable, B extends OperationVariableBuilder> + +public abstract class OperationVariableBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(SubmodelElement value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java index f6246c21c..6fd672705 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,40 +19,40 @@ import java.util.List; -public abstract class PackageDescriptionBuilder< - T extends PackageDescription, B extends PackageDescriptionBuilder> + +public abstract class PackageDescriptionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for items - * - * @param items desired value to be set - * @return Builder object with new value for items - */ - public B items(List items) { - getBuildingInstance().setItems(items); - return getSelf(); - } - - /** - * This function allows adding a value to the List items - * - * @param items desired value to be added - * @return Builder object with new value for items - */ - public B items(String items) { - getBuildingInstance().getItems().add(items); - return getSelf(); - } - - /** - * This function allows setting a value for packageId - * - * @param packageId desired value to be set - * @return Builder object with new value for packageId - */ - public B packageId(String packageId) { - getBuildingInstance().setPackageId(packageId); - return getSelf(); - } + /** + * This function allows setting a value for items + * + * @param items desired value to be set + * @return Builder object with new value for items + */ + public B items(List items) { + getBuildingInstance().setItems(items); + return getSelf(); + } + + /** + * This function allows adding a value to the List items + * + * @param items desired value to be added + * @return Builder object with new value for items + */ + public B items(String items) { + getBuildingInstance().getItems().add(items); + return getSelf(); + } + + /** + * This function allows setting a value for packageId + * + * @param packageId desired value to be set + * @return Builder object with new value for packageId + */ + public B packageId(String packageId) { + getBuildingInstance().setPackageId(packageId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index a40d89b1e..a18ec2874 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,204 +26,204 @@ import java.util.List; -public abstract class PropertyBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + +public abstract class PropertyBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index b5b308318..c94565ef6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,95 +20,106 @@ import java.util.List; -public abstract class ProtocolInformationBuilder< - T extends ProtocolInformation, B extends ProtocolInformationBuilder> + +public abstract class ProtocolInformationBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for endpointAddress - * - * @param endpointAddress desired value to be set - * @return Builder object with new value for endpointAddress - */ - public B endpointAddress(String endpointAddress) { - getBuildingInstance().setEndpointAddress(endpointAddress); - return getSelf(); - } + /** + * This function allows setting a value for href + * + * @param href desired value to be set + * @return Builder object with new value for href + */ + public B href(String href) { + getBuildingInstance().setHref(href); + return getSelf(); + } + + /** + * This function allows setting a value for endpointProtocol + * + * @param endpointProtocol desired value to be set + * @return Builder object with new value for endpointProtocol + */ + public B endpointProtocol(String endpointProtocol) { + getBuildingInstance().setEndpointProtocol(endpointProtocol); + return getSelf(); + } - /** - * This function allows setting a value for endpointProtocol - * - * @param endpointProtocol desired value to be set - * @return Builder object with new value for endpointProtocol - */ - public B endpointProtocol(String endpointProtocol) { - getBuildingInstance().setEndpointProtocol(endpointProtocol); - return getSelf(); - } + /** + * This function allows setting a value for endpointProtocolVersion + * + * @param endpointProtocolVersions desired value to be set + * @return Builder object with new value for endpointProtocolVersion + */ + public B endpointProtocolVersion(List endpointProtocolVersions) { + getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersions); + return getSelf(); + } - /** - * This function allows setting a value for endpointProtocolVersion - * - * @param endpointProtocolVersion desired value to be set - * @return Builder object with new value for endpointProtocolVersion - */ - public B endpointProtocolVersion(String endpointProtocolVersion) { - getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); - return getSelf(); - } + /** + * This function allows adding a value to the List endpointProtocolVersion + * + * @param endpointProtocolVersion desired value to be added + * @return Builder object with new value for endpointProtocolVersion + */ + public B endpointProtocolVersion(String endpointProtocolVersion) { + getBuildingInstance().getEndpointProtocolVersion().add(endpointProtocolVersion); + return getSelf(); + } - /** - * This function allows setting a value for securityAttributes - * - * @param securityAttributes desired value to be set - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(List securityAttributes) { - getBuildingInstance().setSecurityAttributes(securityAttributes); - return getSelf(); - } + /** + * This function allows setting a value for subprotocol + * + * @param subprotocol desired value to be set + * @return Builder object with new value for subprotocol + */ + public B subprotocol(String subprotocol) { + getBuildingInstance().setSubprotocol(subprotocol); + return getSelf(); + } - /** - * This function allows adding a value to the List securityAttributes - * - * @param securityAttributes desired value to be added - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(SecurityAttributeObject securityAttributes) { - getBuildingInstance().getSecurityAttributes().add(securityAttributes); - return getSelf(); - } + /** + * This function allows setting a value for subprotocolBody + * + * @param subprotocolBody desired value to be set + * @return Builder object with new value for subprotocolBody + */ + public B subprotocolBody(String subprotocolBody) { + getBuildingInstance().setSubprotocolBody(subprotocolBody); + return getSelf(); + } - /** - * This function allows setting a value for subprotocol - * - * @param subprotocol desired value to be set - * @return Builder object with new value for subprotocol - */ - public B subprotocol(String subprotocol) { - getBuildingInstance().setSubprotocol(subprotocol); - return getSelf(); - } + /** + * This function allows setting a value for subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value to be set + * @return Builder object with new value for subprotocolBodyEncoding + */ + public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { + getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); + return getSelf(); + } - /** - * This function allows setting a value for subprotocolBody - * - * @param subprotocolBody desired value to be set - * @return Builder object with new value for subprotocolBody - */ - public B subprotocolBody(String subprotocolBody) { - getBuildingInstance().setSubprotocolBody(subprotocolBody); - return getSelf(); - } + /** + * This function allows setting a value for securityAttributes + * + * @param securityAttributes desired value to be set + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(List securityAttributes) { + getBuildingInstance().setSecurityAttributes(securityAttributes); + return getSelf(); + } - /** - * This function allows setting a value for subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value to be set - * @return Builder object with new value for subprotocolBodyEncoding - */ - public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { - getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); - return getSelf(); - } + /** + * This function allows adding a value to the List securityAttributes + * + * @param securityAttributes desired value to be added + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(SecurityAttributeObject securityAttributes) { + getBuildingInstance().getSecurityAttributes().add(securityAttributes); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index 65d2c0aca..24427c217 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,94 +22,94 @@ import java.util.List; -public abstract class QualifierBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(QualifierKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } +public abstract class QualifierBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(String type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(QualifierKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(String type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index 4f1b21725..acb29b566 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,204 +26,204 @@ import java.util.List; -public abstract class RangeBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(String min) { - getBuildingInstance().setMin(min); - return getSelf(); - } - - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(String max) { - getBuildingInstance().setMax(max); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + +public abstract class RangeBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(String min) { + getBuildingInstance().setMin(min); + return getSelf(); + } + + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(String max) { + getBuildingInstance().setMax(max); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index 965bccd44..afec436d6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,50 +21,50 @@ import java.util.List; -public abstract class ReferenceBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(ReferenceTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } +public abstract class ReferenceBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for referredSemanticId - * - * @param referredSemanticId desired value to be set - * @return Builder object with new value for referredSemanticId - */ - public B referredSemanticId(Reference referredSemanticId) { - getBuildingInstance().setReferredSemanticId(referredSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(ReferenceTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for keys - * - * @param keys desired value to be set - * @return Builder object with new value for keys - */ - public B keys(List keys) { - getBuildingInstance().setKeys(keys); - return getSelf(); - } + /** + * This function allows setting a value for referredSemanticId + * + * @param referredSemanticId desired value to be set + * @return Builder object with new value for referredSemanticId + */ + public B referredSemanticId(Reference referredSemanticId) { + getBuildingInstance().setReferredSemanticId(referredSemanticId); + return getSelf(); + } - /** - * This function allows adding a value to the List keys - * - * @param keys desired value to be added - * @return Builder object with new value for keys - */ - public B keys(Key keys) { - getBuildingInstance().getKeys().add(keys); - return getSelf(); - } + /** + * This function allows setting a value for keys + * + * @param keys desired value to be set + * @return Builder object with new value for keys + */ + public B keys(List keys) { + getBuildingInstance().setKeys(keys); + return getSelf(); + } + + /** + * This function allows adding a value to the List keys + * + * @param keys desired value to be added + * @return Builder object with new value for keys + */ + public B keys(Key keys) { + getBuildingInstance().getKeys().add(keys); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index e04c0d6bc..5987c0ca2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,183 +25,183 @@ import java.util.List; -public abstract class ReferenceElementBuilder< - T extends ReferenceElement, B extends ReferenceElementBuilder> + +public abstract class ReferenceElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(Reference value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(Reference value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index d4a888e96..9d9785150 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,194 +25,194 @@ import java.util.List; -public abstract class RelationshipElementBuilder< - T extends RelationshipElement, B extends RelationshipElementBuilder> + +public abstract class RelationshipElementBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index 2e563b1e6..9fd9b7d69 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,30 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Resource; -public abstract class ResourceBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for path - * - * @param path desired value to be set - * @return Builder object with new value for path - */ - public B path(String path) { - getBuildingInstance().setPath(path); - return getSelf(); - } +public abstract class ResourceBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for path + * + * @param path desired value to be set + * @return Builder object with new value for path + */ + public B path(String path) { + getBuildingInstance().setPath(path); + return getSelf(); + } - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java index 4b1182250..db842fc77 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,39 +20,28 @@ import java.util.List; -public abstract class ResultBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } +public abstract class ResultBuilder> extends ExtendableBuilder { - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } + /** + * This function allows setting a value for messages + * + * @param messages desired value to be set + * @return Builder object with new value for messages + */ + public B messages(List messages) { + getBuildingInstance().setMessages(messages); + return getSelf(); + } - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } + /** + * This function allows adding a value to the List messages + * + * @param messages desired value to be added + * @return Builder object with new value for messages + */ + public B messages(Message messages) { + getBuildingInstance().getMessages().add(messages); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java index 4028ae034..5277d7b60 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,43 +15,44 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; -public abstract class SecurityAttributeObjectBuilder< - T extends SecurityAttributeObject, B extends SecurityAttributeObjectBuilder> + +public abstract class SecurityAttributeObjectBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for key - * - * @param key desired value to be set - * @return Builder object with new value for key - */ - public B key(String key) { - getBuildingInstance().setKey(key); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(SecurityTypeEnum type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(SecurityTypeEnum type) { + getBuildingInstance().setType(type); + return getSelf(); + } + + /** + * This function allows setting a value for key + * + * @param key desired value to be set + * @return Builder object with new value for key + */ + public B key(String key) { + getBuildingInstance().setKey(key); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index 5d801cf40..508446f79 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,73 +20,73 @@ import java.util.List; -public abstract class SpecificAssetIdBuilder< - T extends SpecificAssetId, B extends SpecificAssetIdBuilder> + +public abstract class SpecificAssetIdBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for externalSubjectId - * - * @param externalSubjectId desired value to be set - * @return Builder object with new value for externalSubjectId - */ - public B externalSubjectId(Reference externalSubjectId) { - getBuildingInstance().setExternalSubjectId(externalSubjectId); - return getSelf(); - } + /** + * This function allows setting a value for externalSubjectId + * + * @param externalSubjectId desired value to be set + * @return Builder object with new value for externalSubjectId + */ + public B externalSubjectId(Reference externalSubjectId) { + getBuildingInstance().setExternalSubjectId(externalSubjectId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index d3fdf1a48..1b6e7d099 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,226 +28,226 @@ import java.util.List; -public abstract class SubmodelBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for submodelElements - * - * @param submodelElements desired value to be set - * @return Builder object with new value for submodelElements - */ - public B submodelElements(List submodelElements) { - getBuildingInstance().setSubmodelElements(submodelElements); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelElements - * - * @param submodelElements desired value to be added - * @return Builder object with new value for submodelElements - */ - public B submodelElements(SubmodelElement submodelElements) { - getBuildingInstance().getSubmodelElements().add(submodelElements); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + +public abstract class SubmodelBuilder> extends ExtendableBuilder { + + /** + * This function allows setting a value for submodelElements + * + * @param submodelElements desired value to be set + * @return Builder object with new value for submodelElements + */ + public B submodelElements(List submodelElements) { + getBuildingInstance().setSubmodelElements(submodelElements); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodelElements + * + * @param submodelElements desired value to be added + * @return Builder object with new value for submodelElements + */ + public B submodelElements(SubmodelElement submodelElements) { + getBuildingInstance().getSubmodelElements().add(submodelElements); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java index ff5e3cd2c..0897fbd3e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,6 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; @@ -24,95 +25,161 @@ import java.util.List; -public abstract class SubmodelDescriptorBuilder< - T extends SubmodelDescriptor, B extends SubmodelDescriptorBuilder> + +public abstract class SubmodelDescriptorBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param description desired value to be set - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().setDescription(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayName desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().setDisplayName(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for identification - * - * @param identification desired value to be set - * @return Builder object with new value for identification - */ - public B identification(String identification) { - getBuildingInstance().setIdentification(identification); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticId + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticId + */ + public B supplementalSemanticId(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticId(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticId + * + * @param supplementalSemanticId desired value to be added + * @return Builder object with new value for supplementalSemanticId + */ + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticId().add(supplementalSemanticId); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index 94d548e4a..cb8efe402 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,183 +26,183 @@ import java.util.List; -public abstract class SubmodelElementAttributesBuilder< - T extends SubmodelElementAttributes, B extends SubmodelElementAttributesBuilder> + +public abstract class SubmodelElementAttributesBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index e8667b627..c6745c9de 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,194 +26,194 @@ import java.util.List; -public abstract class SubmodelElementCollectionBuilder< - T extends SubmodelElementCollection, B extends SubmodelElementCollectionBuilder> + +public abstract class SubmodelElementCollectionBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for values - * - * @param values desired value to be set - * @return Builder object with new value for values - */ - public B values(List values) { - getBuildingInstance().setValues(values); - return getSelf(); - } - - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValues().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param values desired value to be set + * @return Builder object with new value for value + */ + public B value(List values) { + getBuildingInstance().setValue(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List value + * + * @param value desired value to be added + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValue().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index 96fd5816b..57a2d612c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,238 +28,238 @@ import java.util.List; -public abstract class SubmodelElementListBuilder< - T extends SubmodelElementList, B extends SubmodelElementListBuilder> + +public abstract class SubmodelElementListBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for orderRelevant - * - * @param orderRelevant desired value to be set - * @return Builder object with new value for orderRelevant - */ - public B orderRelevant(boolean orderRelevant) { - getBuildingInstance().setOrderRelevant(orderRelevant); - return getSelf(); - } + /** + * This function allows setting a value for orderRelevant + * + * @param orderRelevant desired value to be set + * @return Builder object with new value for orderRelevant + */ + public B orderRelevant(boolean orderRelevant) { + getBuildingInstance().setOrderRelevant(orderRelevant); + return getSelf(); + } - /** - * This function allows setting a value for semanticIdListElement - * - * @param semanticIdListElement desired value to be set - * @return Builder object with new value for semanticIdListElement - */ - public B semanticIdListElement(Reference semanticIdListElement) { - getBuildingInstance().setSemanticIdListElement(semanticIdListElement); - return getSelf(); - } + /** + * This function allows setting a value for semanticIdListElement + * + * @param semanticIdListElement desired value to be set + * @return Builder object with new value for semanticIdListElement + */ + public B semanticIdListElement(Reference semanticIdListElement) { + getBuildingInstance().setSemanticIdListElement(semanticIdListElement); + return getSelf(); + } - /** - * This function allows setting a value for typeValueListElement - * - * @param typeValueListElement desired value to be set - * @return Builder object with new value for typeValueListElement - */ - public B typeValueListElement(AasSubmodelElements typeValueListElement) { - getBuildingInstance().setTypeValueListElement(typeValueListElement); - return getSelf(); - } + /** + * This function allows setting a value for typeValueListElement + * + * @param typeValueListElement desired value to be set + * @return Builder object with new value for typeValueListElement + */ + public B typeValueListElement(AasSubmodelElements typeValueListElement) { + getBuildingInstance().setTypeValueListElement(typeValueListElement); + return getSelf(); + } - /** - * This function allows setting a value for valueTypeListElement - * - * @param valueTypeListElement desired value to be set - * @return Builder object with new value for valueTypeListElement - */ - public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { - getBuildingInstance().setValueTypeListElement(valueTypeListElement); - return getSelf(); - } + /** + * This function allows setting a value for valueTypeListElement + * + * @param valueTypeListElement desired value to be set + * @return Builder object with new value for valueTypeListElement + */ + public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { + getBuildingInstance().setValueTypeListElement(valueTypeListElement); + return getSelf(); + } - /** - * This function allows setting a value for values - * - * @param values desired value to be set - * @return Builder object with new value for values - */ - public B values(List values) { - getBuildingInstance().setValues(values); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param values desired value to be set + * @return Builder object with new value for value + */ + public B value(List values) { + getBuildingInstance().setValue(values); + return getSelf(); + } - /** - * This function allows adding a value to the List values - * - * @param value desired value to be added - * @return Builder object with new value for values - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValues().add(value); - return getSelf(); - } + /** + * This function allows adding a value to the List value + * + * @param value desired value to be added + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValue().add(value); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayNames - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayNames - */ - public B displayNames(List displayNames) { - getBuildingInstance().setDisplayNames(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayNames - * - * @param displayName desired value to be added - * @return Builder object with new value for displayNames - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayNames().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for descriptions - * - * @param descriptions desired value to be set - * @return Builder object with new value for descriptions - */ - public B descriptions(List descriptions) { - getBuildingInstance().setDescriptions(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List descriptions - * - * @param description desired value to be added - * @return Builder object with new value for descriptions - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescriptions().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index d185054b8..5050fe0a7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,28 +20,28 @@ import java.util.List; -public abstract class ValueListBuilder> - extends ExtendableBuilder { - /** - * This function allows setting a value for valueReferencePairs - * - * @param valueReferencePairs desired value to be set - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(List valueReferencePairs) { - getBuildingInstance().setValueReferencePairs(valueReferencePairs); - return getSelf(); - } +public abstract class ValueListBuilder> extends ExtendableBuilder { - /** - * This function allows adding a value to the List valueReferencePairs - * - * @param valueReferencePairs desired value to be added - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(ValueReferencePair valueReferencePairs) { - getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); - return getSelf(); - } + /** + * This function allows setting a value for valueReferencePairs + * + * @param valueReferencePairs desired value to be set + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(List valueReferencePairs) { + getBuildingInstance().setValueReferencePairs(valueReferencePairs); + return getSelf(); + } + + /** + * This function allows adding a value to the List valueReferencePairs + * + * @param valueReferencePairs desired value to be added + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(ValueReferencePair valueReferencePairs) { + getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index df87d9c21..8dfb746d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,32 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; + import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; -public abstract class ValueReferencePairBuilder< - T extends ValueReferencePair, B extends ValueReferencePairBuilder> + +public abstract class ValueReferencePairBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index d1b74cebf..e13dbd853 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,185 +21,138 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AdministrativeInformationBuilder; -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation - * - *

Administrative meta-information for an element like version information. + * + * Administrative meta-information for an element like version information. */ + @IRI("aas:AdministrativeInformation") public class DefaultAdministrativeInformation implements AdministrativeInformation { - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") - protected XMLGregorianCalendar createdAt; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") - protected Reference creator; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") - protected String revision; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") - protected String templateId; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") - protected XMLGregorianCalendar updatedAt; - - @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") - protected String version; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - public DefaultAdministrativeInformation() {} - - @Override - public String toString() { - return "DefaultAdministrativeInformation{" - + "createdAt='" - + createdAt - + "'," - + "version='" - + version - + "'," - + "revision='" - + revision - + "'," - + "creator='" - + creator - + "'," - + "templateId='" - + templateId - + "'," - + "updatedAt='" - + updatedAt - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.createdAt, - this.version, - this.revision, - this.creator, - this.templateId, - this.updatedAt, - this.embeddedDataSpecifications); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; - return Objects.equals(this.createdAt, other.createdAt) - && Objects.equals(this.version, other.version) - && Objects.equals(this.revision, other.revision) - && Objects.equals(this.creator, other.creator) - && Objects.equals(this.templateId, other.templateId) - && Objects.equals(this.updatedAt, other.updatedAt) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") + protected Reference creator; + + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") + protected String revision; + + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") + protected String templateId; + + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") + protected String version; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + public DefaultAdministrativeInformation() {} + + @Override + public int hashCode() { + return Objects.hash(this.version, + this.revision, + this.creator, + this.templateId, + this.embeddedDataSpecifications); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; + return Objects.equals(this.version, other.version) && + Objects.equals(this.revision, other.revision) && + Objects.equals(this.creator, other.creator) && + Objects.equals(this.templateId, other.templateId) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); + } + } + + @Override + public String getVersion() { + return version; + } + + @Override + public void setVersion(String version) { + this.version = version; + } + + @Override + public String getRevision() { + return revision; + } + + @Override + public void setRevision(String revision) { + this.revision = revision; + } + + @Override + public Reference getCreator() { + return creator; } - } - - @Override - public XMLGregorianCalendar getCreatedAt() { - return createdAt; - } - - @Override - public void setCreatedAt(XMLGregorianCalendar createdAt) { - this.createdAt = createdAt; - } - - @Override - public String getVersion() { - return version; - } - - @Override - public void setVersion(String version) { - this.version = version; - } - - @Override - public String getRevision() { - return revision; - } - - @Override - public void setRevision(String revision) { - this.revision = revision; - } - - @Override - public Reference getCreator() { - return creator; - } - - @Override - public void setCreator(Reference creator) { - this.creator = creator; - } - - @Override - public String getTemplateId() { - return templateId; - } - - @Override - public void setTemplateId(String templateId) { - this.templateId = templateId; - } - - @Override - public XMLGregorianCalendar getUpdatedAt() { - return updatedAt; - } - - @Override - public void setUpdatedAt(XMLGregorianCalendar updatedAt) { - this.updatedAt = updatedAt; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - /** This builder class can be used to construct a DefaultAdministrativeInformation bean. */ - public static class Builder - extends AdministrativeInformationBuilder { @Override - protected Builder getSelf() { - return this; + public void setCreator(Reference creator) { + this.creator = creator; } @Override - protected DefaultAdministrativeInformation newBuildingInstance() { - return new DefaultAdministrativeInformation(); + public String getTemplateId() { + return templateId; + } + + @Override + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + public String toString() { + return String.format( + "DefaultAdministrativeInformation (" + "version=%s," + + "revision=%s," + + "creator=%s," + + "templateId=%s," + + ")", + this.version, this.revision, this.creator, this.templateId); + } + + /** + * This builder class can be used to construct a DefaultAdministrativeInformation bean. + */ + public static class Builder extends AdministrativeInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAdministrativeInformation newBuildingInstance() { + return new DefaultAdministrativeInformation(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index 1f1c47580..8b2f102c8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,271 +30,237 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement - * - *

An annotated relationship element is a relationship element that can be annotated with - * additional data elements. + * + * An annotated relationship element is a relationship element that can be annotated with additional + * data elements. */ + @IRI("aas:AnnotatedRelationshipElement") public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshipElement { - @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") - protected List annotations = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") - protected Reference second; - - public DefaultAnnotatedRelationshipElement() {} - - @Override - public String toString() { - return "DefaultAnnotatedRelationshipElement{" - + "annotations='" - + annotations - + "'," - + "first='" - + first - + "'," - + "second='" - + second - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.annotations, - this.first, - this.second, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; - return Objects.equals(this.annotations, other.annotations) - && Objects.equals(this.first, other.first) - && Objects.equals(this.second, other.second) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") + protected List annotations = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + protected Reference second; + + public DefaultAnnotatedRelationshipElement() {} + + @Override + public int hashCode() { + return Objects.hash(this.annotations, + this.first, + this.second, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; + return Objects.equals(this.annotations, other.annotations) && + Objects.equals(this.first, other.first) && + Objects.equals(this.second, other.second) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getAnnotations() { + return annotations; + } + + @Override + public void setAnnotations(List annotations) { + this.annotations = annotations; + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; } - } - - @Override - public List getAnnotations() { - return annotations; - } - - @Override - public void setAnnotations(List annotations) { - this.annotations = annotations; - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. */ - public static class Builder - extends AnnotatedRelationshipElementBuilder { @Override - protected Builder getSelf() { - return this; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - protected DefaultAnnotatedRelationshipElement newBuildingInstance() { - return new DefaultAnnotatedRelationshipElement(); + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultAnnotatedRelationshipElement (" + "annotations=%s," + + ")", + this.annotations); + } + + /** + * This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. + */ + public static class Builder extends AnnotatedRelationshipElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAnnotatedRelationshipElement newBuildingInstance() { + return new DefaultAnnotatedRelationshipElement(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index 7e4eb56da..7fc97b452 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,251 +30,222 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell - * - *

An asset administration shell. + * + * An asset administration shell. */ + @IRI("aas:AssetAdministrationShell") public class DefaultAssetAdministrationShell implements AssetAdministrationShell { - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") - protected AssetInformation assetInformation; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") - protected Reference derivedFrom; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") - protected List submodels = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultAssetAdministrationShell() {} - - @Override - public String toString() { - return "DefaultAssetAdministrationShell{" - + "derivedFrom='" - + derivedFrom - + "'," - + "assetInformation='" - + assetInformation - + "'," - + "submodels='" - + submodels - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "administration='" - + administration - + "'," - + "id='" - + id - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.derivedFrom, - this.assetInformation, - this.submodels, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; - return Objects.equals(this.derivedFrom, other.derivedFrom) - && Objects.equals(this.assetInformation, other.assetInformation) - && Objects.equals(this.submodels, other.submodels) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.administration, other.administration) - && Objects.equals(this.id, other.id) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions); + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") + protected AssetInformation assetInformation; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") + protected Reference derivedFrom; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") + protected List submodels = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultAssetAdministrationShell() {} + + @Override + public int hashCode() { + return Objects.hash(this.derivedFrom, + this.assetInformation, + this.submodels, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; + return Objects.equals(this.derivedFrom, other.derivedFrom) && + Objects.equals(this.assetInformation, other.assetInformation) && + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public Reference getDerivedFrom() { + return derivedFrom; + } + + @Override + public void setDerivedFrom(Reference derivedFrom) { + this.derivedFrom = derivedFrom; + } + + @Override + public AssetInformation getAssetInformation() { + return assetInformation; + } + + @Override + public void setAssetInformation(AssetInformation assetInformation) { + this.assetInformation = assetInformation; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; } - } - - @Override - public Reference getDerivedFrom() { - return derivedFrom; - } - - @Override - public void setDerivedFrom(Reference derivedFrom) { - this.derivedFrom = derivedFrom; - } - - @Override - public AssetInformation getAssetInformation() { - return assetInformation; - } - - @Override - public void setAssetInformation(AssetInformation assetInformation) { - this.assetInformation = assetInformation; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** This builder class can be used to construct a DefaultAssetAdministrationShell bean. */ - public static class Builder - extends AssetAdministrationShellBuilder { @Override - protected Builder getSelf() { - return this; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; } @Override - protected DefaultAssetAdministrationShell newBuildingInstance() { - return new DefaultAssetAdministrationShell(); + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultAssetAdministrationShell (" + "derivedFrom=%s," + + "assetInformation=%s," + + "submodels=%s," + + ")", + this.derivedFrom, this.assetInformation, this.submodels); + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShell bean. + */ + public static class Builder extends AssetAdministrationShellBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShell newBuildingInstance() { + return new DefaultAssetAdministrationShell(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java index 608f069f7..3d483e26a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,10 +17,11 @@ import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; +import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; @@ -30,218 +31,244 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor + * */ + @IRI("aas:AssetAdministrationShellDescriptor") -public class DefaultAssetAdministrationShellDescriptor - implements AssetAdministrationShellDescriptor { - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") - protected LangStringTextType description; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") - protected LangStringNameType displayName; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") - protected Reference globalAssetId; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") - protected String identification; - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") - protected SubmodelDescriptor submodelDescriptors; - - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - public DefaultAssetAdministrationShellDescriptor() {} - - @Override - public String toString() { - return "DefaultAssetAdministrationShellDescriptor{" - + "administration='" - + administration - + "'," - + "description='" - + description - + "'," - + "displayName='" - + displayName - + "'," - + "globalAssetId='" - + globalAssetId - + "'," - + "idShort='" - + idShort - + "'," - + "identification='" - + identification - + "'," - + "specificAssetIds='" - + specificAssetIds - + "'," - + "submodelDescriptors='" - + submodelDescriptors - + "'," - + "endpoints='" - + endpoints - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.administration, - this.description, - this.displayName, - this.globalAssetId, - this.idShort, - this.identification, - this.specificAssetIds, - this.submodelDescriptors, - this.endpoints); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShellDescriptor other = - (DefaultAssetAdministrationShellDescriptor) obj; - return Objects.equals(this.administration, other.administration) - && Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.globalAssetId, other.globalAssetId) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.identification, other.identification) - && Objects.equals(this.specificAssetIds, other.specificAssetIds) - && Objects.equals(this.submodelDescriptors, other.submodelDescriptors) - && Objects.equals(this.endpoints, other.endpoints); - } - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public LangStringTextType getDescription() { - return description; - } - - @Override - public void setDescription(LangStringTextType description) { - this.description = description; - } - - @Override - public LangStringNameType getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(LangStringNameType displayName) { - this.displayName = displayName; - } - - @Override - public Reference getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(Reference globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getIdentification() { - return identification; - } - - @Override - public void setIdentification(String identification) { - this.identification = identification; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public SubmodelDescriptor getSubmodelDescriptors() { - return submodelDescriptors; - } - - @Override - public void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors) { - this.submodelDescriptors = submodelDescriptors; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. - */ - public static class Builder - extends AssetAdministrationShellDescriptorBuilder< - DefaultAssetAdministrationShellDescriptor, Builder> { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { - return new DefaultAssetAdministrationShellDescriptor(); - } - } +public class DefaultAssetAdministrationShellDescriptor implements AssetAdministrationShellDescriptor { + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") + protected AssetKind assetKind; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") + protected String assetType; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") + protected List submodelDescriptors = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + protected List extensions = new ArrayList<>(); + + public DefaultAssetAdministrationShellDescriptor() {} + + @Override + public int hashCode() { + return Objects.hash(this.administration, + this.assetKind, + this.assetType, + this.endpoints, + this.globalAssetId, + this.idShort, + this.id, + this.specificAssetIds, + this.submodelDescriptors, + this.description, + this.displayName, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShellDescriptor other = (DefaultAssetAdministrationShellDescriptor) obj; + return Objects.equals(this.administration, other.administration) && + Objects.equals(this.assetKind, other.assetKind) && + Objects.equals(this.assetType, other.assetType) && + Objects.equals(this.endpoints, other.endpoints) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.id, other.id) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.submodelDescriptors, other.submodelDescriptors) && + Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public AssetKind getAssetKind() { + return assetKind; + } + + @Override + public void setAssetKind(AssetKind assetKind) { + this.assetKind = assetKind; + } + + @Override + public String getAssetType() { + return assetType; + } + + @Override + public void setAssetType(String assetType) { + this.assetType = assetType; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public List getSubmodelDescriptors() { + return submodelDescriptors; + } + + @Override + public void setSubmodelDescriptors(List submodelDescriptors) { + this.submodelDescriptors = submodelDescriptors; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultAssetAdministrationShellDescriptor (" + "administration=%s," + + "assetKind=%s," + + "assetType=%s," + + "endpoints=%s," + + "globalAssetId=%s," + + "idShort=%s," + + "id=%s," + + "specificAssetIds=%s," + + "submodelDescriptors=%s," + + ")", + this.administration, this.assetKind, this.assetType, this.endpoints, this.globalAssetId, this.idShort, this.id, + this.specificAssetIds, this.submodelDescriptors); + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. + */ + public static class Builder extends AssetAdministrationShellDescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { + return new DefaultAssetAdministrationShellDescriptor(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index 9455637b3..0dbc4be34 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,142 +26,135 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation - * - *

In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is + * + * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ + @IRI("aas:AssetInformation") public class DefaultAssetInformation implements AssetInformation { - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") - protected AssetKind assetKind; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") - protected String assetType; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") - protected Resource defaultThumbnail; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - public DefaultAssetInformation() {} - - @Override - public String toString() { - return "DefaultAssetInformation{" - + "assetKind='" - + assetKind - + "'," - + "globalAssetId='" - + globalAssetId - + "'," - + "specificAssetIds='" - + specificAssetIds - + "'," - + "assetType='" - + assetType - + "'," - + "defaultThumbnail='" - + defaultThumbnail - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetInformation other = (DefaultAssetInformation) obj; - return Objects.equals(this.assetKind, other.assetKind) - && Objects.equals(this.globalAssetId, other.globalAssetId) - && Objects.equals(this.specificAssetIds, other.specificAssetIds) - && Objects.equals(this.assetType, other.assetType) - && Objects.equals(this.defaultThumbnail, other.defaultThumbnail); + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") + protected AssetKind assetKind; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") + protected String assetType; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") + protected Resource defaultThumbnail; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + public DefaultAssetInformation() {} + + @Override + public int hashCode() { + return Objects.hash(this.assetKind, + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetInformation other = (DefaultAssetInformation) obj; + return Objects.equals(this.assetKind, other.assetKind) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.assetType, other.assetType) && + Objects.equals(this.defaultThumbnail, other.defaultThumbnail); + } + } + + @Override + public AssetKind getAssetKind() { + return assetKind; + } + + @Override + public void setAssetKind(AssetKind assetKind) { + this.assetKind = assetKind; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; } - } - - @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getAssetType() { - return assetType; - } - - @Override - public void setAssetType(String assetType) { - this.assetType = assetType; - } - - @Override - public Resource getDefaultThumbnail() { - return defaultThumbnail; - } - - @Override - public void setDefaultThumbnail(Resource defaultThumbnail) { - this.defaultThumbnail = defaultThumbnail; - } - - /** This builder class can be used to construct a DefaultAssetInformation bean. */ - public static class Builder extends AssetInformationBuilder { @Override - protected Builder getSelf() { - return this; + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; } @Override - protected DefaultAssetInformation newBuildingInstance() { - return new DefaultAssetInformation(); + public String getAssetType() { + return assetType; + } + + @Override + public void setAssetType(String assetType) { + this.assetType = assetType; + } + + @Override + public Resource getDefaultThumbnail() { + return defaultThumbnail; + } + + @Override + public void setDefaultThumbnail(Resource defaultThumbnail) { + this.defaultThumbnail = defaultThumbnail; + } + + public String toString() { + return String.format( + "DefaultAssetInformation (" + "assetKind=%s," + + "globalAssetId=%s," + + "specificAssetIds=%s," + + "assetType=%s," + + "defaultThumbnail=%s," + + ")", + this.assetKind, this.globalAssetId, this.specificAssetIds, this.assetType, this.defaultThumbnail); + } + + /** + * This builder class can be used to construct a DefaultAssetInformation bean. + */ + public static class Builder extends AssetInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetInformation newBuildingInstance() { + return new DefaultAssetInformation(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java index cf6e7fa65..e9507263c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,87 +17,108 @@ import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; +import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult + * + */ + @IRI("aas:BaseOperationResult") public class DefaultBaseOperationResult implements BaseOperationResult { - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") - protected ExecutionState executionState; - - @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") - protected boolean success; - - public DefaultBaseOperationResult() {} - - @Override - public String toString() { - return "DefaultBaseOperationResult{" - + "executionState='" - + executionState - + "'," - + "success='" - + success - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.executionState, this.success); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; - return Objects.equals(this.executionState, other.executionState) - && Objects.equals(this.success, other.success); + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") + protected ExecutionState executionState; + + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") + protected boolean success; + + @IRI("https://admin-shell.io/aas/3/0/Result/messages") + protected List messages = new ArrayList<>(); + + public DefaultBaseOperationResult() {} + + @Override + public int hashCode() { + return Objects.hash(this.executionState, + this.success, + this.messages); } - } - @Override - public ExecutionState getExecutionState() { - return executionState; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; + return Objects.equals(this.executionState, other.executionState) && + Objects.equals(this.success, other.success) && + Objects.equals(this.messages, other.messages); + } + } - @Override - public void setExecutionState(ExecutionState executionState) { - this.executionState = executionState; - } + @Override + public ExecutionState getExecutionState() { + return executionState; + } - @Override - public boolean getSuccess() { - return success; - } + @Override + public void setExecutionState(ExecutionState executionState) { + this.executionState = executionState; + } - @Override - public void setSuccess(boolean success) { - this.success = success; - } + @Override + public boolean getSuccess() { + return success; + } - /** This builder class can be used to construct a DefaultBaseOperationResult bean. */ - public static class Builder - extends BaseOperationResultBuilder { + @Override + public void setSuccess(boolean success) { + this.success = success; + } @Override - protected Builder getSelf() { - return this; + public List getMessages() { + return messages; } @Override - protected DefaultBaseOperationResult newBuildingInstance() { - return new DefaultBaseOperationResult(); + public void setMessages(List messages) { + this.messages = messages; + } + + public String toString() { + return String.format( + "DefaultBaseOperationResult (" + "executionState=%s," + + "success=%s," + + ")", + this.executionState, this.success); + } + + /** + * This builder class can be used to construct a DefaultBaseOperationResult bean. + */ + public static class Builder extends BaseOperationResultBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBaseOperationResult newBuildingInstance() { + return new DefaultBaseOperationResult(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index 3b3066365..edde2d692 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,358 +31,318 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement - * - *

A basic event element. + * + * A basic event element. */ + @IRI("aas:BasicEventElement") public class DefaultBasicEventElement implements BasicEventElement { - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") - protected Direction direction; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") - protected String lastUpdate; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") - protected String maxInterval; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") - protected Reference messageBroker; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") - protected String messageTopic; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") - protected String minInterval; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") - protected Reference observed; - - @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") - protected StateOfEvent state; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultBasicEventElement() {} - - @Override - public String toString() { - return "DefaultBasicEventElement{" - + "observed='" - + observed - + "'," - + "direction='" - + direction - + "'," - + "state='" - + state - + "'," - + "messageTopic='" - + messageTopic - + "'," - + "messageBroker='" - + messageBroker - + "'," - + "lastUpdate='" - + lastUpdate - + "'," - + "minInterval='" - + minInterval - + "'," - + "maxInterval='" - + maxInterval - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBasicEventElement other = (DefaultBasicEventElement) obj; - return Objects.equals(this.observed, other.observed) - && Objects.equals(this.direction, other.direction) - && Objects.equals(this.state, other.state) - && Objects.equals(this.messageTopic, other.messageTopic) - && Objects.equals(this.messageBroker, other.messageBroker) - && Objects.equals(this.lastUpdate, other.lastUpdate) - && Objects.equals(this.minInterval, other.minInterval) - && Objects.equals(this.maxInterval, other.maxInterval) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getObserved() { - return observed; - } - - @Override - public void setObserved(Reference observed) { - this.observed = observed; - } - - @Override - public Direction getDirection() { - return direction; - } - - @Override - public void setDirection(Direction direction) { - this.direction = direction; - } - - @Override - public StateOfEvent getState() { - return state; - } - - @Override - public void setState(StateOfEvent state) { - this.state = state; - } - - @Override - public String getMessageTopic() { - return messageTopic; - } - - @Override - public void setMessageTopic(String messageTopic) { - this.messageTopic = messageTopic; - } - - @Override - public Reference getMessageBroker() { - return messageBroker; - } - - @Override - public void setMessageBroker(Reference messageBroker) { - this.messageBroker = messageBroker; - } - - @Override - public String getLastUpdate() { - return lastUpdate; - } - - @Override - public void setLastUpdate(String lastUpdate) { - this.lastUpdate = lastUpdate; - } - - @Override - public String getMinInterval() { - return minInterval; - } - - @Override - public void setMinInterval(String minInterval) { - this.minInterval = minInterval; - } - - @Override - public String getMaxInterval() { - return maxInterval; - } - - @Override - public void setMaxInterval(String maxInterval) { - this.maxInterval = maxInterval; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultBasicEventElement bean. */ - public static class Builder extends BasicEventElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBasicEventElement newBuildingInstance() { - return new DefaultBasicEventElement(); - } - } + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") + protected Direction direction; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") + protected String lastUpdate; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") + protected String maxInterval; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") + protected Reference messageBroker; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") + protected String messageTopic; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") + protected String minInterval; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") + protected Reference observed; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") + protected StateOfEvent state; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultBasicEventElement() {} + + @Override + public int hashCode() { + return Objects.hash(this.observed, + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBasicEventElement other = (DefaultBasicEventElement) obj; + return Objects.equals(this.observed, other.observed) && + Objects.equals(this.direction, other.direction) && + Objects.equals(this.state, other.state) && + Objects.equals(this.messageTopic, other.messageTopic) && + Objects.equals(this.messageBroker, other.messageBroker) && + Objects.equals(this.lastUpdate, other.lastUpdate) && + Objects.equals(this.minInterval, other.minInterval) && + Objects.equals(this.maxInterval, other.maxInterval) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getObserved() { + return observed; + } + + @Override + public void setObserved(Reference observed) { + this.observed = observed; + } + + @Override + public Direction getDirection() { + return direction; + } + + @Override + public void setDirection(Direction direction) { + this.direction = direction; + } + + @Override + public StateOfEvent getState() { + return state; + } + + @Override + public void setState(StateOfEvent state) { + this.state = state; + } + + @Override + public String getMessageTopic() { + return messageTopic; + } + + @Override + public void setMessageTopic(String messageTopic) { + this.messageTopic = messageTopic; + } + + @Override + public Reference getMessageBroker() { + return messageBroker; + } + + @Override + public void setMessageBroker(Reference messageBroker) { + this.messageBroker = messageBroker; + } + + @Override + public String getLastUpdate() { + return lastUpdate; + } + + @Override + public void setLastUpdate(String lastUpdate) { + this.lastUpdate = lastUpdate; + } + + @Override + public String getMinInterval() { + return minInterval; + } + + @Override + public void setMinInterval(String minInterval) { + this.minInterval = minInterval; + } + + @Override + public String getMaxInterval() { + return maxInterval; + } + + @Override + public void setMaxInterval(String maxInterval) { + this.maxInterval = maxInterval; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultBasicEventElement (" + "observed=%s," + + "direction=%s," + + "state=%s," + + "messageTopic=%s," + + "messageBroker=%s," + + "lastUpdate=%s," + + "minInterval=%s," + + "maxInterval=%s," + + ")", + this.observed, this.direction, this.state, this.messageTopic, this.messageBroker, this.lastUpdate, this.minInterval, + this.maxInterval); + } + + /** + * This builder class can be used to construct a DefaultBasicEventElement bean. + */ + public static class Builder extends BasicEventElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBasicEventElement newBuildingInstance() { + return new DefaultBasicEventElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index bd16efd7f..93fe2731e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,251 +30,222 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob - * - *

A 'Blob' is a data element that represents a file that is contained with its source code in - * the value attribute. + * + * A 'Blob' is a data element that represents a file that is contained with its source code in the + * value attribute. */ + @IRI("aas:Blob") public class DefaultBlob implements Blob { - @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/2/Blob/value") - protected byte[] value; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultBlob() {} - - @Override - public String toString() { - return "DefaultBlob{" - + "value='" - + value - + "'," - + "contentType='" - + contentType - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - Arrays.hashCode(this.value), - this.contentType, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBlob other = (DefaultBlob) obj; - return Arrays.equals(this.value, other.value) - && Objects.equals(this.contentType, other.contentType) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/0/Blob/value") + protected byte[] value; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultBlob() {} + + @Override + public int hashCode() { + return Objects.hash(Arrays.hashCode(this.value), + this.contentType, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBlob other = (DefaultBlob) obj; + return Arrays.equals(this.value, other.value) && + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public byte[] getValue() { + return value; + } + + @Override + public void setValue(byte[] value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; } - } - - @Override - public byte[] getValue() { - return value; - } - - @Override - public void setValue(byte[] value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultBlob bean. */ - public static class Builder extends BlobBuilder { @Override - protected Builder getSelf() { - return this; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - protected DefaultBlob newBuildingInstance() { - return new DefaultBlob(); + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultBlob (" + "value=%s," + + "contentType=%s," + + ")", + this.value, this.contentType); + } + + /** + * This builder class can be used to construct a DefaultBlob bean. + */ + public static class Builder extends BlobBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBlob newBuildingInstance() { + return new DefaultBlob(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index 7aabb0dae..412bfa110 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,215 +29,192 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability - * - *

A capability is the implementation-independent description of the potential of an asset to + * + * A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ + @IRI("aas:Capability") public class DefaultCapability implements Capability { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultCapability() {} - - @Override - public String toString() { - return "DefaultCapability{" - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultCapability other = (DefaultCapability) obj; - return Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultCapability bean. */ - public static class Builder extends CapabilityBuilder { - - @Override - protected Builder getSelf() { - return this; + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultCapability() {} + + @Override + public int hashCode() { + return Objects.hash(this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultCapability other = (DefaultCapability) obj; + return Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultCapability (" + + ")" + + ); + } + + /** + * This builder class can be used to construct a DefaultCapability bean. + */ + public static class Builder extends CapabilityBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultCapability newBuildingInstance() { + return new DefaultCapability(); + } } - - @Override - protected DefaultCapability newBuildingInstance() { - return new DefaultCapability(); - } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index 0c72aa50a..51ad68c22 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,216 +29,191 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription - * - *

The semantics of a property or other elements that may have a semantic description is defined - * by a concept description. + * + * The semantics of a property or other elements that may have a semantic description is defined by + * a concept description. */ + @IRI("aas:ConceptDescription") public class DefaultConceptDescription implements ConceptDescription { - @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") - protected List isCaseOfs = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultConceptDescription() {} - - @Override - public String toString() { - return "DefaultConceptDescription{" - + "isCaseOfs='" - + isCaseOfs - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "administration='" - + administration - + "'," - + "id='" - + id - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.isCaseOfs, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultConceptDescription other = (DefaultConceptDescription) obj; - return Objects.equals(this.isCaseOfs, other.isCaseOfs) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.administration, other.administration) - && Objects.equals(this.id, other.id) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public List getIsCaseOfs() { - return isCaseOfs; - } - - @Override - public void setIsCaseOfs(List isCaseOfs) { - this.isCaseOfs = isCaseOfs; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** This builder class can be used to construct a DefaultConceptDescription bean. */ - public static class Builder - extends ConceptDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultConceptDescription newBuildingInstance() { - return new DefaultConceptDescription(); - } - } + @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") + protected List isCaseOf = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultConceptDescription() {} + + @Override + public int hashCode() { + return Objects.hash(this.isCaseOf, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultConceptDescription other = (DefaultConceptDescription) obj; + return Objects.equals(this.isCaseOf, other.isCaseOf) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getIsCaseOf() { + return isCaseOf; + } + + @Override + public void setIsCaseOf(List isCaseOfs) { + this.isCaseOf = isCaseOfs; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultConceptDescription (" + "isCaseOf=%s," + + ")", + this.isCaseOf); + } + + /** + * This builder class can be used to construct a DefaultConceptDescription bean. + */ + public static class Builder extends ConceptDescriptionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultConceptDescription newBuildingInstance() { + return new DefaultConceptDescription(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index d22c304a0..a92cab507 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,270 +30,249 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 - * - *

Content of data specification template for concept descriptions for properties, values and - * value lists conformant to IEC 61360. + * + * Content of data specification template for concept descriptions for properties, values and value + * lists conformant to IEC 61360. */ + @IRI("aas:DataSpecificationIec61360") public class DefaultDataSpecificationIec61360 implements DataSpecificationIec61360 { - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") - protected DataTypeIec61360 dataType; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") - protected List definitions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") - protected LevelType levelType; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") - protected List preferredNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") - protected List shortNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") - protected String sourceOfDefinition; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") - protected String symbol; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") - protected String unit; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") - protected Reference unitId; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") - protected String valueFormat; - - @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") - protected ValueList valueList; - - public DefaultDataSpecificationIec61360() {} - - @Override - public String toString() { - return "DefaultDataSpecificationIec61360{" - + "preferredNames='" - + preferredNames - + "'," - + "shortNames='" - + shortNames - + "'," - + "unit='" - + unit - + "'," - + "unitId='" - + unitId - + "'," - + "sourceOfDefinition='" - + sourceOfDefinition - + "'," - + "symbol='" - + symbol - + "'," - + "dataType='" - + dataType - + "'," - + "definitions='" - + definitions - + "'," - + "valueFormat='" - + valueFormat - + "'," - + "valueList='" - + valueList - + "'," - + "value='" - + value - + "'," - + "levelType='" - + levelType - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.preferredNames, - this.shortNames, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definitions, - this.valueFormat, - this.valueList, - this.value, - this.levelType); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; - return Objects.equals(this.preferredNames, other.preferredNames) - && Objects.equals(this.shortNames, other.shortNames) - && Objects.equals(this.unit, other.unit) - && Objects.equals(this.unitId, other.unitId) - && Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) - && Objects.equals(this.symbol, other.symbol) - && Objects.equals(this.dataType, other.dataType) - && Objects.equals(this.definitions, other.definitions) - && Objects.equals(this.valueFormat, other.valueFormat) - && Objects.equals(this.valueList, other.valueList) - && Objects.equals(this.value, other.value) - && Objects.equals(this.levelType, other.levelType); + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") + protected DataTypeIec61360 dataType; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") + protected List definition = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") + protected LevelType levelType; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") + protected List preferredName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") + protected List shortName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") + protected String sourceOfDefinition; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") + protected String symbol; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") + protected String unit; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") + protected Reference unitId; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") + protected String valueFormat; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") + protected ValueList valueList; + + public DefaultDataSpecificationIec61360() {} + + @Override + public int hashCode() { + return Objects.hash(this.preferredName, + this.shortName, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definition, + this.valueFormat, + this.valueList, + this.value, + this.levelType); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; + return Objects.equals(this.preferredName, other.preferredName) && + Objects.equals(this.shortName, other.shortName) && + Objects.equals(this.unit, other.unit) && + Objects.equals(this.unitId, other.unitId) && + Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && + Objects.equals(this.symbol, other.symbol) && + Objects.equals(this.dataType, other.dataType) && + Objects.equals(this.definition, other.definition) && + Objects.equals(this.valueFormat, other.valueFormat) && + Objects.equals(this.valueList, other.valueList) && + Objects.equals(this.value, other.value) && + Objects.equals(this.levelType, other.levelType); + } + } + + @Override + public List getPreferredName() { + return preferredName; + } + + @Override + public void setPreferredName(List preferredNames) { + this.preferredName = preferredNames; + } + + @Override + public List getShortName() { + return shortName; + } + + @Override + public void setShortName(List shortNames) { + this.shortName = shortNames; + } + + @Override + public String getUnit() { + return unit; + } + + @Override + public void setUnit(String unit) { + this.unit = unit; + } + + @Override + public Reference getUnitId() { + return unitId; + } + + @Override + public void setUnitId(Reference unitId) { + this.unitId = unitId; + } + + @Override + public String getSourceOfDefinition() { + return sourceOfDefinition; } - } - - @Override - public List getPreferredNames() { - return preferredNames; - } - - @Override - public void setPreferredNames(List preferredNames) { - this.preferredNames = preferredNames; - } - - @Override - public List getShortNames() { - return shortNames; - } - - @Override - public void setShortNames(List shortNames) { - this.shortNames = shortNames; - } - - @Override - public String getUnit() { - return unit; - } - - @Override - public void setUnit(String unit) { - this.unit = unit; - } - - @Override - public Reference getUnitId() { - return unitId; - } - - @Override - public void setUnitId(Reference unitId) { - this.unitId = unitId; - } - - @Override - public String getSourceOfDefinition() { - return sourceOfDefinition; - } - - @Override - public void setSourceOfDefinition(String sourceOfDefinition) { - this.sourceOfDefinition = sourceOfDefinition; - } - - @Override - public String getSymbol() { - return symbol; - } - - @Override - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - @Override - public DataTypeIec61360 getDataType() { - return dataType; - } - - @Override - public void setDataType(DataTypeIec61360 dataType) { - this.dataType = dataType; - } - - @Override - public List getDefinitions() { - return definitions; - } - - @Override - public void setDefinitions(List definitions) { - this.definitions = definitions; - } - - @Override - public String getValueFormat() { - return valueFormat; - } - - @Override - public void setValueFormat(String valueFormat) { - this.valueFormat = valueFormat; - } - - @Override - public ValueList getValueList() { - return valueList; - } - - @Override - public void setValueList(ValueList valueList) { - this.valueList = valueList; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public LevelType getLevelType() { - return levelType; - } - - @Override - public void setLevelType(LevelType levelType) { - this.levelType = levelType; - } - - /** This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. */ - public static class Builder - extends DataSpecificationIec61360Builder { @Override - protected Builder getSelf() { - return this; + public void setSourceOfDefinition(String sourceOfDefinition) { + this.sourceOfDefinition = sourceOfDefinition; } @Override - protected DefaultDataSpecificationIec61360 newBuildingInstance() { - return new DefaultDataSpecificationIec61360(); + public String getSymbol() { + return symbol; + } + + @Override + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + @Override + public DataTypeIec61360 getDataType() { + return dataType; + } + + @Override + public void setDataType(DataTypeIec61360 dataType) { + this.dataType = dataType; + } + + @Override + public List getDefinition() { + return definition; + } + + @Override + public void setDefinition(List definitions) { + this.definition = definitions; + } + + @Override + public String getValueFormat() { + return valueFormat; + } + + @Override + public void setValueFormat(String valueFormat) { + this.valueFormat = valueFormat; + } + + @Override + public ValueList getValueList() { + return valueList; + } + + @Override + public void setValueList(ValueList valueList) { + this.valueList = valueList; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public LevelType getLevelType() { + return levelType; + } + + @Override + public void setLevelType(LevelType levelType) { + this.levelType = levelType; + } + + public String toString() { + return String.format( + "DefaultDataSpecificationIec61360 (" + "preferredName=%s," + + "shortName=%s," + + "unit=%s," + + "unitId=%s," + + "sourceOfDefinition=%s," + + "symbol=%s," + + "dataType=%s," + + "definition=%s," + + "valueFormat=%s," + + "valueList=%s," + + "value=%s," + + "levelType=%s," + + ")", + this.preferredName, this.shortName, this.unit, this.unitId, this.sourceOfDefinition, this.symbol, this.dataType, + this.definition, this.valueFormat, this.valueList, this.value, this.levelType); + } + + /** + * This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. + */ + public static class Builder extends DataSpecificationIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultDataSpecificationIec61360 newBuildingInstance() { + return new DefaultDataSpecificationIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java index 70ed3ffa1..f3496933a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,7 +16,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; @@ -24,60 +26,101 @@ import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor + * + */ + @IRI("aas:Descriptor") public class DefaultDescriptor implements Descriptor { - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - public DefaultDescriptor() {} - - @Override - public String toString() { - return "DefaultDescriptor{" + "endpoints='" + endpoints + "'," + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.endpoints); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDescriptor other = (DefaultDescriptor) obj; - return Objects.equals(this.endpoints, other.endpoints); + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + protected List extensions = new ArrayList<>(); + + public DefaultDescriptor() {} + + @Override + public int hashCode() { + return Objects.hash(this.description, + this.displayName, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDescriptor other = (DefaultDescriptor) obj; + return Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getDescription() { + return description; } - } - @Override - public List getEndpoints() { - return endpoints; - } + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } + @Override + public List getDisplayName() { + return displayName; + } - /** This builder class can be used to construct a DefaultDescriptor bean. */ - public static class Builder extends DescriptorBuilder { + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } @Override - protected Builder getSelf() { - return this; + public List getExtensions() { + return extensions; } @Override - protected DefaultDescriptor newBuildingInstance() { - return new DefaultDescriptor(); + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultDescriptor (" + "description=%s," + + "displayName=%s," + + "extensions=%s," + + ")", + this.description, this.displayName, this.extensions); + } + + /** + * This builder class can be used to construct a DefaultDescriptor bean. + */ + public static class Builder extends DescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultDescriptor newBuildingInstance() { + return new DefaultDescriptor(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index 23a78d33d..0235e810d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,87 +23,87 @@ import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification - * - *

Embed the content of a data specification. + * + * Embed the content of a data specification. */ + @IRI("aas:EmbeddedDataSpecification") public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecification { - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") - protected Reference dataSpecification; - - @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") - protected DataSpecificationContent dataSpecificationContent; - - public DefaultEmbeddedDataSpecification() {} - - @Override - public String toString() { - return "DefaultEmbeddedDataSpecification{" - + "dataSpecification='" - + dataSpecification - + "'," - + "dataSpecificationContent='" - + dataSpecificationContent - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.dataSpecification, this.dataSpecificationContent); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; - return Objects.equals(this.dataSpecification, other.dataSpecification) - && Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); - } - } + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") + protected Reference dataSpecification; - @Override - public Reference getDataSpecification() { - return dataSpecification; - } + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") + protected DataSpecificationContent dataSpecificationContent; - @Override - public void setDataSpecification(Reference dataSpecification) { - this.dataSpecification = dataSpecification; - } + public DefaultEmbeddedDataSpecification() {} - @Override - public DataSpecificationContent getDataSpecificationContent() { - return dataSpecificationContent; - } + @Override + public int hashCode() { + return Objects.hash(this.dataSpecification, + this.dataSpecificationContent); + } - @Override - public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - this.dataSpecificationContent = dataSpecificationContent; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; + return Objects.equals(this.dataSpecification, other.dataSpecification) && + Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); + } + } + + @Override + public Reference getDataSpecification() { + return dataSpecification; + } - /** This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. */ - public static class Builder - extends EmbeddedDataSpecificationBuilder { + @Override + public void setDataSpecification(Reference dataSpecification) { + this.dataSpecification = dataSpecification; + } @Override - protected Builder getSelf() { - return this; + public DataSpecificationContent getDataSpecificationContent() { + return dataSpecificationContent; } @Override - protected DefaultEmbeddedDataSpecification newBuildingInstance() { - return new DefaultEmbeddedDataSpecification(); + public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + this.dataSpecificationContent = dataSpecificationContent; + } + + public String toString() { + return String.format( + "DefaultEmbeddedDataSpecification (" + "dataSpecification=%s," + + "dataSpecificationContent=%s," + + ")", + this.dataSpecification, this.dataSpecificationContent); + } + + /** + * This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. + */ + public static class Builder extends EmbeddedDataSpecificationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEmbeddedDataSpecification newBuildingInstance() { + return new DefaultEmbeddedDataSpecification(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java index 2d4c98b31..91167f351 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,81 +22,85 @@ import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint + * + */ + @IRI("aas:Endpoint") public class DefaultEndpoint implements Endpoint { - @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") - protected String _interface; - - @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") - protected ProtocolInformation protocolInformation; - - public DefaultEndpoint() {} - - @Override - public String toString() { - return "DefaultEndpoint{" - + "_interface='" - + _interface - + "'," - + "protocolInformation='" - + protocolInformation - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this._interface, this.protocolInformation); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEndpoint other = (DefaultEndpoint) obj; - return Objects.equals(this._interface, other._interface) - && Objects.equals(this.protocolInformation, other.protocolInformation); - } - } + @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") + protected String _interface; - @Override - public String get_interface() { - return _interface; - } + @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") + protected ProtocolInformation protocolInformation; - @Override - public void set_interface(String _interface) { - this._interface = _interface; - } + public DefaultEndpoint() {} - @Override - public ProtocolInformation getProtocolInformation() { - return protocolInformation; - } + @Override + public int hashCode() { + return Objects.hash(this._interface, + this.protocolInformation); + } - @Override - public void setProtocolInformation(ProtocolInformation protocolInformation) { - this.protocolInformation = protocolInformation; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEndpoint other = (DefaultEndpoint) obj; + return Objects.equals(this._interface, other._interface) && + Objects.equals(this.protocolInformation, other.protocolInformation); + } + } - /** This builder class can be used to construct a DefaultEndpoint bean. */ - public static class Builder extends EndpointBuilder { + @Override + public String get_interface() { + return _interface; + } @Override - protected Builder getSelf() { - return this; + public void set_interface(String _interface) { + this._interface = _interface; } @Override - protected DefaultEndpoint newBuildingInstance() { - return new DefaultEndpoint(); + public ProtocolInformation getProtocolInformation() { + return protocolInformation; + } + + @Override + public void setProtocolInformation(ProtocolInformation protocolInformation) { + this.protocolInformation = protocolInformation; + } + + public String toString() { + return String.format( + "DefaultEndpoint (" + "_interface=%s," + + "protocolInformation=%s," + + ")", + this._interface, this.protocolInformation); + } + + /** + * This builder class can be used to construct a DefaultEndpoint bean. + */ + public static class Builder extends EndpointBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEndpoint newBuildingInstance() { + return new DefaultEndpoint(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index 060865011..f58ed3ab7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,286 +32,253 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity - * - *

An entity is a submodel element that is used to model entities. + * + * An entity is a submodel element that is used to model entities. */ + @IRI("aas:Entity") public class DefaultEntity implements Entity { - @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") - protected EntityType entityType; - - @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Entity/statements") - protected List statements = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultEntity() {} - - @Override - public String toString() { - return "DefaultEntity{" - + "statements='" - + statements - + "'," - + "entityType='" - + entityType - + "'," - + "globalAssetId='" - + globalAssetId - + "'," - + "specificAssetIds='" - + specificAssetIds - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.statements, - this.entityType, - this.globalAssetId, - this.specificAssetIds, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEntity other = (DefaultEntity) obj; - return Objects.equals(this.statements, other.statements) - && Objects.equals(this.entityType, other.entityType) - && Objects.equals(this.globalAssetId, other.globalAssetId) - && Objects.equals(this.specificAssetIds, other.specificAssetIds) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") + protected EntityType entityType; + + @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Entity/statements") + protected List statements = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultEntity() {} + + @Override + public int hashCode() { + return Objects.hash(this.statements, + this.entityType, + this.globalAssetId, + this.specificAssetIds, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEntity other = (DefaultEntity) obj; + return Objects.equals(this.statements, other.statements) && + Objects.equals(this.entityType, other.entityType) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getStatements() { + return statements; + } + + @Override + public void setStatements(List statements) { + this.statements = statements; + } + + @Override + public EntityType getEntityType() { + return entityType; + } + + @Override + public void setEntityType(EntityType entityType) { + this.entityType = entityType; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; } - } - - @Override - public List getStatements() { - return statements; - } - - @Override - public void setStatements(List statements) { - this.statements = statements; - } - - @Override - public EntityType getEntityType() { - return entityType; - } - - @Override - public void setEntityType(EntityType entityType) { - this.entityType = entityType; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultEntity bean. */ - public static class Builder extends EntityBuilder { @Override - protected Builder getSelf() { - return this; + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; } @Override - protected DefaultEntity newBuildingInstance() { - return new DefaultEntity(); + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultEntity (" + "statements=%s," + + "entityType=%s," + + "globalAssetId=%s," + + "specificAssetIds=%s," + + ")", + this.statements, this.entityType, this.globalAssetId, this.specificAssetIds); + } + + /** + * This builder class can be used to construct a DefaultEntity bean. + */ + public static class Builder extends EntityBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEntity newBuildingInstance() { + return new DefaultEntity(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index bef47f661..30d5f6377 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,103 +26,102 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment - * - *

Container for the sets of different identifiables. + * + * Container for the sets of different identifiables. */ + @IRI("aas:Environment") public class DefaultEnvironment implements Environment { - @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") - protected List assetAdministrationShells = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") - protected List conceptDescriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") - protected List submodels = new ArrayList<>(); - - public DefaultEnvironment() {} - - @Override - public String toString() { - return "DefaultEnvironment{" - + "assetAdministrationShells='" - + assetAdministrationShells - + "'," - + "submodels='" - + submodels - + "'," - + "conceptDescriptions='" - + conceptDescriptions - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.assetAdministrationShells, this.submodels, this.conceptDescriptions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEnvironment other = (DefaultEnvironment) obj; - return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) - && Objects.equals(this.submodels, other.submodels) - && Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") + protected List assetAdministrationShells = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") + protected List conceptDescriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") + protected List submodels = new ArrayList<>(); + + public DefaultEnvironment() {} + + @Override + public int hashCode() { + return Objects.hash(this.assetAdministrationShells, + this.submodels, + this.conceptDescriptions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEnvironment other = (DefaultEnvironment) obj; + return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + } + } + + @Override + public List getAssetAdministrationShells() { + return assetAdministrationShells; + } + + @Override + public void setAssetAdministrationShells(List assetAdministrationShells) { + this.assetAdministrationShells = assetAdministrationShells; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; } - } - - @Override - public List getAssetAdministrationShells() { - return assetAdministrationShells; - } - - @Override - public void setAssetAdministrationShells( - List assetAdministrationShells) { - this.assetAdministrationShells = assetAdministrationShells; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getConceptDescriptions() { - return conceptDescriptions; - } - - @Override - public void setConceptDescriptions(List conceptDescriptions) { - this.conceptDescriptions = conceptDescriptions; - } - - /** This builder class can be used to construct a DefaultEnvironment bean. */ - public static class Builder extends EnvironmentBuilder { @Override - protected Builder getSelf() { - return this; + public List getConceptDescriptions() { + return conceptDescriptions; } @Override - protected DefaultEnvironment newBuildingInstance() { - return new DefaultEnvironment(); + public void setConceptDescriptions(List conceptDescriptions) { + this.conceptDescriptions = conceptDescriptions; + } + + public String toString() { + return String.format( + "DefaultEnvironment (" + "assetAdministrationShells=%s," + + "submodels=%s," + + "conceptDescriptions=%s," + + ")", + this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + } + + /** + * This builder class can be used to construct a DefaultEnvironment bean. + */ + public static class Builder extends EnvironmentBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEnvironment newBuildingInstance() { + return new DefaultEnvironment(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index 2b61ce698..750f1c5ff 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,195 +23,183 @@ import java.util.Arrays; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload - * - *

Defines the necessary information of an event instance sent out or received. + * + * Defines the necessary information of an event instance sent out or received. */ + @IRI("aas:EventPayload") public class DefaultEventPayload implements EventPayload { - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") - protected Reference observableReference; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") - protected Reference observableSemanticId; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") - protected byte[] payload; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") - protected Reference source; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") - protected Reference sourceSemanticId; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") - protected Reference subjectId; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") - protected String timeStamp; - - @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") - protected String topic; - - public DefaultEventPayload() {} - - @Override - public String toString() { - return "DefaultEventPayload{" - + "source='" - + source - + "'," - + "sourceSemanticId='" - + sourceSemanticId - + "'," - + "observableReference='" - + observableReference - + "'," - + "observableSemanticId='" - + observableSemanticId - + "'," - + "topic='" - + topic - + "'," - + "subjectId='" - + subjectId - + "'," - + "timeStamp='" - + timeStamp - + "'," - + "payload='" - + payload - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - Arrays.hashCode(this.payload)); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEventPayload other = (DefaultEventPayload) obj; - return Objects.equals(this.source, other.source) - && Objects.equals(this.sourceSemanticId, other.sourceSemanticId) - && Objects.equals(this.observableReference, other.observableReference) - && Objects.equals(this.observableSemanticId, other.observableSemanticId) - && Objects.equals(this.topic, other.topic) - && Objects.equals(this.subjectId, other.subjectId) - && Objects.equals(this.timeStamp, other.timeStamp) - && Arrays.equals(this.payload, other.payload); - } - } - - @Override - public Reference getSource() { - return source; - } - - @Override - public void setSource(Reference source) { - this.source = source; - } - - @Override - public Reference getSourceSemanticId() { - return sourceSemanticId; - } - - @Override - public void setSourceSemanticId(Reference sourceSemanticId) { - this.sourceSemanticId = sourceSemanticId; - } - - @Override - public Reference getObservableReference() { - return observableReference; - } - - @Override - public void setObservableReference(Reference observableReference) { - this.observableReference = observableReference; - } - - @Override - public Reference getObservableSemanticId() { - return observableSemanticId; - } - - @Override - public void setObservableSemanticId(Reference observableSemanticId) { - this.observableSemanticId = observableSemanticId; - } - - @Override - public String getTopic() { - return topic; - } - - @Override - public void setTopic(String topic) { - this.topic = topic; - } - - @Override - public Reference getSubjectId() { - return subjectId; - } - - @Override - public void setSubjectId(Reference subjectId) { - this.subjectId = subjectId; - } - - @Override - public String getTimeStamp() { - return timeStamp; - } - - @Override - public void setTimeStamp(String timeStamp) { - this.timeStamp = timeStamp; - } - - @Override - public byte[] getPayload() { - return payload; - } - - @Override - public void setPayload(byte[] payload) { - this.payload = payload; - } - - /** This builder class can be used to construct a DefaultEventPayload bean. */ - public static class Builder extends EventPayloadBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEventPayload newBuildingInstance() { - return new DefaultEventPayload(); - } - } + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") + protected Reference observableReference; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") + protected Reference observableSemanticId; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") + protected byte[] payload; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") + protected Reference source; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") + protected Reference sourceSemanticId; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") + protected Reference subjectId; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") + protected String timeStamp; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") + protected String topic; + + public DefaultEventPayload() {} + + @Override + public int hashCode() { + return Objects.hash(this.source, + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + Arrays.hashCode(this.payload)); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEventPayload other = (DefaultEventPayload) obj; + return Objects.equals(this.source, other.source) && + Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && + Objects.equals(this.observableReference, other.observableReference) && + Objects.equals(this.observableSemanticId, other.observableSemanticId) && + Objects.equals(this.topic, other.topic) && + Objects.equals(this.subjectId, other.subjectId) && + Objects.equals(this.timeStamp, other.timeStamp) && + Arrays.equals(this.payload, other.payload); + } + } + + @Override + public Reference getSource() { + return source; + } + + @Override + public void setSource(Reference source) { + this.source = source; + } + + @Override + public Reference getSourceSemanticId() { + return sourceSemanticId; + } + + @Override + public void setSourceSemanticId(Reference sourceSemanticId) { + this.sourceSemanticId = sourceSemanticId; + } + + @Override + public Reference getObservableReference() { + return observableReference; + } + + @Override + public void setObservableReference(Reference observableReference) { + this.observableReference = observableReference; + } + + @Override + public Reference getObservableSemanticId() { + return observableSemanticId; + } + + @Override + public void setObservableSemanticId(Reference observableSemanticId) { + this.observableSemanticId = observableSemanticId; + } + + @Override + public String getTopic() { + return topic; + } + + @Override + public void setTopic(String topic) { + this.topic = topic; + } + + @Override + public Reference getSubjectId() { + return subjectId; + } + + @Override + public void setSubjectId(Reference subjectId) { + this.subjectId = subjectId; + } + + @Override + public String getTimeStamp() { + return timeStamp; + } + + @Override + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + @Override + public byte[] getPayload() { + return payload; + } + + @Override + public void setPayload(byte[] payload) { + this.payload = payload; + } + + public String toString() { + return String.format( + "DefaultEventPayload (" + "source=%s," + + "sourceSemanticId=%s," + + "observableReference=%s," + + "observableSemanticId=%s," + + "topic=%s," + + "subjectId=%s," + + "timeStamp=%s," + + "payload=%s," + + ")", + this.source, this.sourceSemanticId, this.observableReference, this.observableSemanticId, this.topic, this.subjectId, + this.timeStamp, this.payload); + } + + /** + * This builder class can be used to construct a DefaultEventPayload bean. + */ + public static class Builder extends EventPayloadBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEventPayload newBuildingInstance() { + return new DefaultEventPayload(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index b57dd4ed2..eb013ed1f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,159 +25,148 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension - * - *

Single extension of an element. + * + * Single extension of an element. */ + @IRI("aas:Extension") public class DefaultExtension implements Extension { - @IRI("https://admin-shell.io/aas/3/2/Extension/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") - protected List refersTos = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Extension/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - public DefaultExtension() {} - - @Override - public String toString() { - return "DefaultExtension{" - + "name='" - + name - + "'," - + "valueType='" - + valueType - + "'," - + "value='" - + value - + "'," - + "refersTos='" - + refersTos - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.name, - this.valueType, - this.value, - this.refersTos, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultExtension other = (DefaultExtension) obj; - return Objects.equals(this.name, other.name) - && Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.value, other.value) - && Objects.equals(this.refersTos, other.refersTos) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public List getRefersTos() { - return refersTos; - } - - @Override - public void setRefersTos(List refersTos) { - this.refersTos = refersTos; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** This builder class can be used to construct a DefaultExtension bean. */ - public static class Builder extends ExtensionBuilder { + @IRI("https://admin-shell.io/aas/3/0/Extension/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") + protected List refersTo = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Extension/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + public DefaultExtension() {} + + @Override + public int hashCode() { + return Objects.hash(this.name, + this.valueType, + this.value, + this.refersTo, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultExtension other = (DefaultExtension) obj; + return Objects.equals(this.name, other.name) && + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.refersTo, other.refersTo) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public List getRefersTo() { + return refersTo; + } + + @Override + public void setRefersTo(List refersTos) { + this.refersTo = refersTos; + } @Override - protected Builder getSelf() { - return this; + public Reference getSemanticId() { + return semanticId; } @Override - protected DefaultExtension newBuildingInstance() { - return new DefaultExtension(); + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + public String toString() { + return String.format( + "DefaultExtension (" + "name=%s," + + "valueType=%s," + + "value=%s," + + "refersTo=%s," + + ")", + this.name, this.valueType, this.value, this.refersTo); + } + + /** + * This builder class can be used to construct a DefaultExtension bean. + */ + public static class Builder extends ExtensionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultExtension newBuildingInstance() { + return new DefaultExtension(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index 751813d82..cd869bf56 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,250 +29,221 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File - * - *

A File is a data element that represents an address to a file (a locator). + * + * A File is a data element that represents an address to a file (a locator). */ + @IRI("aas:File") public class DefaultFile implements File { - @IRI("https://admin-shell.io/aas/3/2/File/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/2/File/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultFile() {} - - @Override - public String toString() { - return "DefaultFile{" - + "value='" - + value - + "'," - + "contentType='" - + contentType - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.value, - this.contentType, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultFile other = (DefaultFile) obj; - return Objects.equals(this.value, other.value) - && Objects.equals(this.contentType, other.contentType) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/File/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/0/File/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultFile() {} + + @Override + public int hashCode() { + return Objects.hash(this.value, + this.contentType, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultFile other = (DefaultFile) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; } - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultFile bean. */ - public static class Builder extends FileBuilder { @Override - protected Builder getSelf() { - return this; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - protected DefaultFile newBuildingInstance() { - return new DefaultFile(); + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultFile (" + "value=%s," + + "contentType=%s," + + ")", + this.value, this.contentType); + } + + /** + * This builder class can be used to construct a DefaultFile bean. + */ + public static class Builder extends FileBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultFile newBuildingInstance() { + return new DefaultFile(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index 5ca78aebe..45d6d6f7e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,77 +22,86 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key - * - *

A key is a reference to an element by its ID. + * + * A key is a reference to an element by its ID. */ + @IRI("aas:Key") public class DefaultKey implements Key { - @IRI("https://admin-shell.io/aas/3/2/Key/type") - protected KeyTypes type; - - @IRI("https://admin-shell.io/aas/3/2/Key/value") - protected String value; - - public DefaultKey() {} - - @Override - public String toString() { - return "DefaultKey{" + "type='" + type + "'," + "value='" + value + "'," + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.type, this.value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultKey other = (DefaultKey) obj; - return Objects.equals(this.type, other.type) && Objects.equals(this.value, other.value); - } - } + @IRI("https://admin-shell.io/aas/3/0/Key/type") + protected KeyTypes type; - @Override - public KeyTypes getType() { - return type; - } + @IRI("https://admin-shell.io/aas/3/0/Key/value") + protected String value; - @Override - public void setType(KeyTypes type) { - this.type = type; - } + public DefaultKey() {} - @Override - public String getValue() { - return value; - } + @Override + public int hashCode() { + return Objects.hash(this.type, + this.value); + } - @Override - public void setValue(String value) { - this.value = value; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultKey other = (DefaultKey) obj; + return Objects.equals(this.type, other.type) && + Objects.equals(this.value, other.value); + } + } + + @Override + public KeyTypes getType() { + return type; + } - /** This builder class can be used to construct a DefaultKey bean. */ - public static class Builder extends KeyBuilder { + @Override + public void setType(KeyTypes type) { + this.type = type; + } @Override - protected Builder getSelf() { - return this; + public String getValue() { + return value; } @Override - protected DefaultKey newBuildingInstance() { - return new DefaultKey(); + public void setValue(String value) { + this.value = value; + } + + public String toString() { + return String.format( + "DefaultKey (" + "type=%s," + + "value=%s," + + ")", + this.type, this.value); + } + + /** + * This builder class can be used to construct a DefaultKey bean. + */ + public static class Builder extends KeyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultKey newBuildingInstance() { + return new DefaultKey(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index dc76c9169..4c8a473b9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,87 +21,87 @@ import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 - * - *

String with length 1023 maximum and minimum 1 characters and with language tags + * + * String with length 1023 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringDefinitionTypeIec61360") public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefinitionTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringDefinitionTypeIec61360() {} - - @Override - public String toString() { - return "DefaultLangStringDefinitionTypeIec61360{" - + "language='" - + language - + "'," - + "text='" - + text - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); - } - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; - @Override - public String getLanguage() { - return language; - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; - @Override - public void setLanguage(String language) { - this.language = language; - } + public DefaultLangStringDefinitionTypeIec61360() {} - @Override - public String getText() { - return text; - } + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); + } - @Override - public void setText(String text) { - this.text = text; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } + } - /** This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. */ - public static class Builder - extends LangStringDefinitionTypeIec61360Builder< - DefaultLangStringDefinitionTypeIec61360, Builder> { + @Override + public String getLanguage() { + return language; + } @Override - protected Builder getSelf() { - return this; + public void setLanguage(String language) { + this.language = language; } @Override - protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { - return new DefaultLangStringDefinitionTypeIec61360(); + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + public String toString() { + return String.format( + "DefaultLangStringDefinitionTypeIec61360 (" + + ")" + + ); + } + + /** + * This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. + */ + public static class Builder extends LangStringDefinitionTypeIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { + return new DefaultLangStringDefinitionTypeIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index 6489d0842..cf01867c5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,85 +21,86 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType - * - *

String with length 128 maximum and minimum 1 characters and with language tags + * + * String with length 128 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringNameType") public class DefaultLangStringNameType implements LangStringNameType { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringNameType() {} - - @Override - public String toString() { - return "DefaultLangStringNameType{" - + "language='" - + language - + "'," - + "text='" - + text - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringNameType other = (DefaultLangStringNameType) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); - } - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; - @Override - public String getLanguage() { - return language; - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; - @Override - public void setLanguage(String language) { - this.language = language; - } + public DefaultLangStringNameType() {} - @Override - public String getText() { - return text; - } + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); + } - @Override - public void setText(String text) { - this.text = text; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringNameType other = (DefaultLangStringNameType) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } + } - /** This builder class can be used to construct a DefaultLangStringNameType bean. */ - public static class Builder - extends LangStringNameTypeBuilder { + @Override + public String getLanguage() { + return language; + } @Override - protected Builder getSelf() { - return this; + public void setLanguage(String language) { + this.language = language; } @Override - protected DefaultLangStringNameType newBuildingInstance() { - return new DefaultLangStringNameType(); + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + public String toString() { + return String.format( + "DefaultLangStringNameType (" + + ")" + + ); + } + + /** + * This builder class can be used to construct a DefaultLangStringNameType bean. + */ + public static class Builder extends LangStringNameTypeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringNameType newBuildingInstance() { + return new DefaultLangStringNameType(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index ce9401fd2..40be9c6fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,91 +21,87 @@ import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 - * - *

String with length 255 maximum and minimum 1 characters and with language tags + * + * String with length 255 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringPreferredNameTypeIec61360") -public class DefaultLangStringPreferredNameTypeIec61360 - implements LangStringPreferredNameTypeIec61360 { - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringPreferredNameTypeIec61360() {} - - @Override - public String toString() { - return "DefaultLangStringPreferredNameTypeIec61360{" - + "language='" - + language - + "'," - + "text='" - + text - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringPreferredNameTypeIec61360 other = - (DefaultLangStringPreferredNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); +public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPreferredNameTypeIec61360 { + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; + + public DefaultLangStringPreferredNameTypeIec61360() {} + + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringPreferredNameTypeIec61360 other = (DefaultLangStringPreferredNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } } - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - /** - * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. - */ - public static class Builder - extends LangStringPreferredNameTypeIec61360Builder< - DefaultLangStringPreferredNameTypeIec61360, Builder> { @Override - protected Builder getSelf() { - return this; + public String getLanguage() { + return language; } @Override - protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringPreferredNameTypeIec61360(); + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + public String toString() { + return String.format( + "DefaultLangStringPreferredNameTypeIec61360 (" + + ")" + + ); + } + + /** + * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. + */ + public static class Builder extends LangStringPreferredNameTypeIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringPreferredNameTypeIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index 842e1eea4..f33fc73ee 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,87 +21,87 @@ import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 - * - *

String with length 18 maximum and minimum 1 characters and with language tags + * + * String with length 18 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringShortNameTypeIec61360") public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNameTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringShortNameTypeIec61360() {} - - @Override - public String toString() { - return "DefaultLangStringShortNameTypeIec61360{" - + "language='" - + language - + "'," - + "text='" - + text - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); - } - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; - @Override - public String getLanguage() { - return language; - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; - @Override - public void setLanguage(String language) { - this.language = language; - } + public DefaultLangStringShortNameTypeIec61360() {} - @Override - public String getText() { - return text; - } + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); + } - @Override - public void setText(String text) { - this.text = text; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } + } - /** This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. */ - public static class Builder - extends LangStringShortNameTypeIec61360Builder< - DefaultLangStringShortNameTypeIec61360, Builder> { + @Override + public String getLanguage() { + return language; + } @Override - protected Builder getSelf() { - return this; + public void setLanguage(String language) { + this.language = language; } @Override - protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringShortNameTypeIec61360(); + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + public String toString() { + return String.format( + "DefaultLangStringShortNameTypeIec61360 (" + + ")" + + ); + } + + /** + * This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. + */ + public static class Builder extends LangStringShortNameTypeIec61360Builder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringShortNameTypeIec61360(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index 8ebc0487f..196784d6e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,85 +21,86 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType - * - *

String with length 1023 maximum and minimum 1 characters and with language tags + * + * String with length 1023 maximum and minimum 1 characters and with language tags */ + @IRI("aas:LangStringTextType") public class DefaultLangStringTextType implements LangStringTextType { - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") - protected String text; - - public DefaultLangStringTextType() {} - - @Override - public String toString() { - return "DefaultLangStringTextType{" - + "language='" - + language - + "'," - + "text='" - + text - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringTextType other = (DefaultLangStringTextType) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); - } - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; - @Override - public String getLanguage() { - return language; - } + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; - @Override - public void setLanguage(String language) { - this.language = language; - } + public DefaultLangStringTextType() {} - @Override - public String getText() { - return text; - } + @Override + public int hashCode() { + return Objects.hash(this.language, + this.text); + } - @Override - public void setText(String text) { - this.text = text; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringTextType other = (DefaultLangStringTextType) obj; + return Objects.equals(this.language, other.language) && + Objects.equals(this.text, other.text); + } + } - /** This builder class can be used to construct a DefaultLangStringTextType bean. */ - public static class Builder - extends LangStringTextTypeBuilder { + @Override + public String getLanguage() { + return language; + } @Override - protected Builder getSelf() { - return this; + public void setLanguage(String language) { + this.language = language; } @Override - protected DefaultLangStringTextType newBuildingInstance() { - return new DefaultLangStringTextType(); + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + public String toString() { + return String.format( + "DefaultLangStringTextType (" + + ")" + + ); + } + + /** + * This builder class can be used to construct a DefaultLangStringTextType bean. + */ + public static class Builder extends LangStringTextTypeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringTextType newBuildingInstance() { + return new DefaultLangStringTextType(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index be9b4dfd8..5cf2b4ecd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,120 +21,119 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType - * - *

Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP - * and MAX. True means that the value is available, false means the value is not available. + * + * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and + * MAX. True means that the value is available, false means the value is not available. */ + @IRI("aas:LevelType") public class DefaultLevelType implements LevelType { - @IRI("https://admin-shell.io/aas/3/2/LevelType/max") - protected boolean max; - - @IRI("https://admin-shell.io/aas/3/2/LevelType/min") - protected boolean min; - - @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") - protected boolean nom; - - @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") - protected boolean typ; - - public DefaultLevelType() {} - - @Override - public String toString() { - return "DefaultLevelType{" - + "min='" - + min - + "'," - + "nom='" - + nom - + "'," - + "typ='" - + typ - + "'," - + "max='" - + max - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.min, this.nom, this.typ, this.max); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLevelType other = (DefaultLevelType) obj; - return Objects.equals(this.min, other.min) - && Objects.equals(this.nom, other.nom) - && Objects.equals(this.typ, other.typ) - && Objects.equals(this.max, other.max); + @IRI("https://admin-shell.io/aas/3/0/LevelType/max") + protected boolean max; + + @IRI("https://admin-shell.io/aas/3/0/LevelType/min") + protected boolean min; + + @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") + protected boolean nom; + + @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") + protected boolean typ; + + public DefaultLevelType() {} + + @Override + public int hashCode() { + return Objects.hash(this.min, + this.nom, + this.typ, + this.max); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLevelType other = (DefaultLevelType) obj; + return Objects.equals(this.min, other.min) && + Objects.equals(this.nom, other.nom) && + Objects.equals(this.typ, other.typ) && + Objects.equals(this.max, other.max); + } + } + + @Override + public boolean getMin() { + return min; } - } - - @Override - public boolean getMin() { - return min; - } - - @Override - public void setMin(boolean min) { - this.min = min; - } - - @Override - public boolean getNom() { - return nom; - } - - @Override - public void setNom(boolean nom) { - this.nom = nom; - } - - @Override - public boolean getTyp() { - return typ; - } - - @Override - public void setTyp(boolean typ) { - this.typ = typ; - } - - @Override - public boolean getMax() { - return max; - } - - @Override - public void setMax(boolean max) { - this.max = max; - } - - /** This builder class can be used to construct a DefaultLevelType bean. */ - public static class Builder extends LevelTypeBuilder { @Override - protected Builder getSelf() { - return this; + public void setMin(boolean min) { + this.min = min; } @Override - protected DefaultLevelType newBuildingInstance() { - return new DefaultLevelType(); + public boolean getNom() { + return nom; + } + + @Override + public void setNom(boolean nom) { + this.nom = nom; + } + + @Override + public boolean getTyp() { + return typ; + } + + @Override + public void setTyp(boolean typ) { + this.typ = typ; + } + + @Override + public boolean getMax() { + return max; + } + + @Override + public void setMax(boolean max) { + this.max = max; + } + + public String toString() { + return String.format( + "DefaultLevelType (" + "min=%s," + + "nom=%s," + + "typ=%s," + + "max=%s," + + ")", + this.min, this.nom, this.typ, this.max); + } + + /** + * This builder class can be used to construct a DefaultLevelType bean. + */ + public static class Builder extends LevelTypeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLevelType newBuildingInstance() { + return new DefaultLevelType(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java index c12bcf678..89b06f102 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -16,121 +16,139 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; +import org.eclipse.digitaltwin.aas4j.v3.model.MessageTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message + * + */ + @IRI("aas:Message") public class DefaultMessage implements Message { - @IRI("https://admin-shell.io/aas/3/2/Message/code") - protected String code; - - @IRI("https://admin-shell.io/aas/3/2/Message/messageType") - protected MessageType messageType; - - @IRI("https://admin-shell.io/aas/3/2/Message/text") - protected String text; - - @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") - protected String timestamp; - - public DefaultMessage() {} - - @Override - public String toString() { - return "DefaultMessage{" - + "code='" - + code - + "'," - + "messageType='" - + messageType - + "'," - + "text='" - + text - + "'," - + "timestamp='" - + timestamp - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.code, this.messageType, this.text, this.timestamp); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMessage other = (DefaultMessage) obj; - return Objects.equals(this.code, other.code) - && Objects.equals(this.messageType, other.messageType) - && Objects.equals(this.text, other.text) - && Objects.equals(this.timestamp, other.timestamp); + @IRI("https://admin-shell.io/aas/3/0/Message/code") + protected String code; + + @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") + protected String correlationId; + + @IRI("https://admin-shell.io/aas/3/0/Message/messageType") + protected MessageTypeEnum messageType; + + @IRI("https://admin-shell.io/aas/3/0/Message/text") + protected String text; + + @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") + protected String timestamp; + + public DefaultMessage() {} + + @Override + public int hashCode() { + return Objects.hash(this.code, + this.correlationId, + this.messageType, + this.text, + this.timestamp); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMessage other = (DefaultMessage) obj; + return Objects.equals(this.code, other.code) && + Objects.equals(this.correlationId, other.correlationId) && + Objects.equals(this.messageType, other.messageType) && + Objects.equals(this.text, other.text) && + Objects.equals(this.timestamp, other.timestamp); + } + } + + @Override + public String getCode() { + return code; + } + + @Override + public void setCode(String code) { + this.code = code; + } + + @Override + public String getCorrelationId() { + return correlationId; } - } - - @Override - public String getCode() { - return code; - } - - @Override - public void setCode(String code) { - this.code = code; - } - - @Override - public MessageType getMessageType() { - return messageType; - } - - @Override - public void setMessageType(MessageType messageType) { - this.messageType = messageType; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; - } - - @Override - public String getTimestamp() { - return timestamp; - } - - @Override - public void setTimestamp(String timestamp) { - this.timestamp = timestamp; - } - - /** This builder class can be used to construct a DefaultMessage bean. */ - public static class Builder extends MessageBuilder { @Override - protected Builder getSelf() { - return this; + public void setCorrelationId(String correlationId) { + this.correlationId = correlationId; } @Override - protected DefaultMessage newBuildingInstance() { - return new DefaultMessage(); + public MessageTypeEnum getMessageType() { + return messageType; + } + + @Override + public void setMessageType(MessageTypeEnum messageType) { + this.messageType = messageType; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + @Override + public String getTimestamp() { + return timestamp; + } + + @Override + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + public String toString() { + return String.format( + "DefaultMessage (" + "code=%s," + + "correlationId=%s," + + "messageType=%s," + + "text=%s," + + "timestamp=%s," + + ")", + this.code, this.correlationId, this.messageType, this.text, this.timestamp); + } + + /** + * This builder class can be used to construct a DefaultMessage bean. + */ + public static class Builder extends MessageBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultMessage newBuildingInstance() { + return new DefaultMessage(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 2f31338fd..3d0323e79 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,251 +29,221 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty - * - *

A property is a data element that has a multi-language value. + * + * A property is a data element that has a multi-language value. */ + @IRI("aas:MultiLanguageProperty") public class DefaultMultiLanguageProperty implements MultiLanguageProperty { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") - protected List values = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultMultiLanguageProperty() {} - - @Override - public String toString() { - return "DefaultMultiLanguageProperty{" - + "values='" - + values - + "'," - + "valueId='" - + valueId - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.values, - this.valueId, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; - return Objects.equals(this.values, other.values) - && Objects.equals(this.valueId, other.valueId) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") + protected List value = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultMultiLanguageProperty() {} + + @Override + public int hashCode() { + return Objects.hash(this.value, + this.valueId, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getValue() { + return value; + } + + @Override + public void setValue(List values) { + this.value = values; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; } - } - - @Override - public List getValues() { - return values; - } - - @Override - public void setValues(List values) { - this.values = values; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultMultiLanguageProperty bean. */ - public static class Builder - extends MultiLanguagePropertyBuilder { @Override - protected Builder getSelf() { - return this; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - protected DefaultMultiLanguageProperty newBuildingInstance() { - return new DefaultMultiLanguageProperty(); + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultMultiLanguageProperty (" + "value=%s," + + "valueId=%s," + + ")", + this.value, this.valueId); + } + + /** + * This builder class can be used to construct a DefaultMultiLanguageProperty bean. + */ + public static class Builder extends MultiLanguagePropertyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultMultiLanguageProperty newBuildingInstance() { + return new DefaultMultiLanguageProperty(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index dde297b32..3bbc158f2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,268 +30,237 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation - * - *

An operation is a submodel element with input and output variables. + * + * An operation is a submodel element with input and output variables. */ + @IRI("aas:Operation") public class DefaultOperation implements Operation { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") - protected List inoutputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") - protected List inputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") - protected List outputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultOperation() {} - - @Override - public String toString() { - return "DefaultOperation{" - + "inputVariables='" - + inputVariables - + "'," - + "outputVariables='" - + outputVariables - + "'," - + "inoutputVariables='" - + inoutputVariables - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.inputVariables, - this.outputVariables, - this.inoutputVariables, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperation other = (DefaultOperation) obj; - return Objects.equals(this.inputVariables, other.inputVariables) - && Objects.equals(this.outputVariables, other.outputVariables) - && Objects.equals(this.inoutputVariables, other.inoutputVariables) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") + protected List inoutputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") + protected List inputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") + protected List outputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultOperation() {} + + @Override + public int hashCode() { + return Objects.hash(this.inputVariables, + this.outputVariables, + this.inoutputVariables, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperation other = (DefaultOperation) obj; + return Objects.equals(this.inputVariables, other.inputVariables) && + Objects.equals(this.outputVariables, other.outputVariables) && + Objects.equals(this.inoutputVariables, other.inoutputVariables) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getInputVariables() { + return inputVariables; + } + + @Override + public void setInputVariables(List inputVariables) { + this.inputVariables = inputVariables; + } + + @Override + public List getOutputVariables() { + return outputVariables; + } + + @Override + public void setOutputVariables(List outputVariables) { + this.outputVariables = outputVariables; + } + + @Override + public List getInoutputVariables() { + return inoutputVariables; + } + + @Override + public void setInoutputVariables(List inoutputVariables) { + this.inoutputVariables = inoutputVariables; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; } - } - - @Override - public List getInputVariables() { - return inputVariables; - } - - @Override - public void setInputVariables(List inputVariables) { - this.inputVariables = inputVariables; - } - - @Override - public List getOutputVariables() { - return outputVariables; - } - - @Override - public void setOutputVariables(List outputVariables) { - this.outputVariables = outputVariables; - } - - @Override - public List getInoutputVariables() { - return inoutputVariables; - } - - @Override - public void setInoutputVariables(List inoutputVariables) { - this.inoutputVariables = inoutputVariables; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultOperation bean. */ - public static class Builder extends OperationBuilder { @Override - protected Builder getSelf() { - return this; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - protected DefaultOperation newBuildingInstance() { - return new DefaultOperation(); + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultOperation (" + "inputVariables=%s," + + "outputVariables=%s," + + "inoutputVariables=%s," + + ")", + this.inputVariables, this.outputVariables, this.inoutputVariables); + } + + /** + * This builder class can be used to construct a DefaultOperation bean. + */ + public static class Builder extends OperationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperation newBuildingInstance() { + return new DefaultOperation(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java index b322a5b96..7a1160c44 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,81 +21,69 @@ import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle */ -@IRI("aas:OperationHandle") -public class DefaultOperationHandle implements OperationHandle { - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") - protected String handleId; - - @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") - protected String requestId; - - public DefaultOperationHandle() {} - - @Override - public String toString() { - return "DefaultOperationHandle{" - + "handleId='" - + handleId - + "'," - + "requestId='" - + requestId - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.handleId, this.requestId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationHandle other = (DefaultOperationHandle) obj; - return Objects.equals(this.handleId, other.handleId) - && Objects.equals(this.requestId, other.requestId); - } - } +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle + * + */ - @Override - public String getHandleId() { - return handleId; - } +@IRI("aas:OperationHandle") +public class DefaultOperationHandle implements OperationHandle { - @Override - public void setHandleId(String handleId) { - this.handleId = handleId; - } + @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") + protected String handleId; - @Override - public String getRequestId() { - return requestId; - } + public DefaultOperationHandle() {} - @Override - public void setRequestId(String requestId) { - this.requestId = requestId; - } + @Override + public int hashCode() { + return Objects.hash(this.handleId); + } - /** This builder class can be used to construct a DefaultOperationHandle bean. */ - public static class Builder extends OperationHandleBuilder { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationHandle other = (DefaultOperationHandle) obj; + return Objects.equals(this.handleId, other.handleId); + } + } @Override - protected Builder getSelf() { - return this; + public String getHandleId() { + return handleId; } @Override - protected DefaultOperationHandle newBuildingInstance() { - return new DefaultOperationHandle(); + public void setHandleId(String handleId) { + this.handleId = handleId; + } + + public String toString() { + return String.format( + "DefaultOperationHandle (" + "handleId=%s," + + ")", + this.handleId); + } + + /** + * This builder class can be used to construct a DefaultOperationHandle bean. + */ + public static class Builder extends OperationHandleBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationHandle newBuildingInstance() { + return new DefaultOperationHandle(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java index e9070b379..b3b6fb572 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,118 +20,105 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; -import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest + * + */ + @IRI("aas:OperationRequest") public class DefaultOperationRequest implements OperationRequest { - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") - protected OperationVariable inoutputArguments; - - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") - protected OperationVariable inputArguments; - - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") - protected String requestId; - - @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") - protected BigInteger timeout; - - public DefaultOperationRequest() {} - - @Override - public String toString() { - return "DefaultOperationRequest{" - + "inoutputArguments='" - + inoutputArguments - + "'," - + "inputArguments='" - + inputArguments - + "'," - + "requestId='" - + requestId - + "'," - + "timeout='" - + timeout - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.inoutputArguments, this.inputArguments, this.requestId, this.timeout); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationRequest other = (DefaultOperationRequest) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) - && Objects.equals(this.inputArguments, other.inputArguments) - && Objects.equals(this.requestId, other.requestId) - && Objects.equals(this.timeout, other.timeout); + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") + protected String clientTimeoutDuration; + + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") + protected List inoutputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") + protected List inputArguments = new ArrayList<>(); + + public DefaultOperationRequest() {} + + @Override + public int hashCode() { + return Objects.hash(this.inoutputArguments, + this.inputArguments, + this.clientTimeoutDuration); } - } - - @Override - public OperationVariable getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(OperationVariable inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public OperationVariable getInputArguments() { - return inputArguments; - } - - @Override - public void setInputArguments(OperationVariable inputArguments) { - this.inputArguments = inputArguments; - } - - @Override - public String getRequestId() { - return requestId; - } - - @Override - public void setRequestId(String requestId) { - this.requestId = requestId; - } - - @Override - public BigInteger getTimeout() { - return timeout; - } - - @Override - public void setTimeout(BigInteger timeout) { - this.timeout = timeout; - } - - /** This builder class can be used to construct a DefaultOperationRequest bean. */ - public static class Builder extends OperationRequestBuilder { @Override - protected Builder getSelf() { - return this; + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationRequest other = (DefaultOperationRequest) obj; + return Objects.equals(this.inoutputArguments, other.inoutputArguments) && + Objects.equals(this.inputArguments, other.inputArguments) && + Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); + } } @Override - protected DefaultOperationRequest newBuildingInstance() { - return new DefaultOperationRequest(); + public List getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(List inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } + + @Override + public List getInputArguments() { + return inputArguments; + } + + @Override + public void setInputArguments(List inputArguments) { + this.inputArguments = inputArguments; + } + + @Override + public String getClientTimeoutDuration() { + return clientTimeoutDuration; + } + + @Override + public void setClientTimeoutDuration(String clientTimeoutDuration) { + this.clientTimeoutDuration = clientTimeoutDuration; + } + + public String toString() { + return String.format( + "DefaultOperationRequest (" + "inoutputArguments=%s," + + "inputArguments=%s," + + "clientTimeoutDuration=%s," + + ")", + this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); + } + + /** + * This builder class can be used to construct a DefaultOperationRequest bean. + */ + public static class Builder extends OperationRequestBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationRequest newBuildingInstance() { + return new DefaultOperationRequest(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java index f56817aeb..763676200 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,10 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import org.eclipse.digitaltwin.aas4j.v3.model.Result; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; @@ -26,137 +24,85 @@ import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult + * + */ + @IRI("aas:OperationResult") public class DefaultOperationResult implements OperationResult { - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") - protected List executionResults = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") - protected List executionStates = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") - protected List outputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") - protected List requestIds = new ArrayList<>(); - - public DefaultOperationResult() {} - - @Override - public String toString() { - return "DefaultOperationResult{" - + "executionResults='" - + executionResults - + "'," - + "executionStates='" - + executionStates - + "'," - + "inoutputArguments='" - + inoutputArguments - + "'," - + "outputArguments='" - + outputArguments - + "'," - + "requestIds='" - + requestIds - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.executionResults, - this.executionStates, - this.inoutputArguments, - this.outputArguments, - this.requestIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationResult other = (DefaultOperationResult) obj; - return Objects.equals(this.executionResults, other.executionResults) - && Objects.equals(this.executionStates, other.executionStates) - && Objects.equals(this.inoutputArguments, other.inoutputArguments) - && Objects.equals(this.outputArguments, other.outputArguments) - && Objects.equals(this.requestIds, other.requestIds); + @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") + protected List inoutputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") + protected List outputArguments = new ArrayList<>(); + + public DefaultOperationResult() {} + + @Override + public int hashCode() { + return Objects.hash(this.inoutputArguments, + this.outputArguments); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationResult other = (DefaultOperationResult) obj; + return Objects.equals(this.inoutputArguments, other.inoutputArguments) && + Objects.equals(this.outputArguments, other.outputArguments); + } + } + + @Override + public List getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(List inoutputArguments) { + this.inoutputArguments = inoutputArguments; } - } - - @Override - public List getExecutionResults() { - return executionResults; - } - - @Override - public void setExecutionResults(List executionResults) { - this.executionResults = executionResults; - } - - @Override - public List getExecutionStates() { - return executionStates; - } - - @Override - public void setExecutionStates(List executionStates) { - this.executionStates = executionStates; - } - - @Override - public List getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(List inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public List getOutputArguments() { - return outputArguments; - } - - @Override - public void setOutputArguments(List outputArguments) { - this.outputArguments = outputArguments; - } - - @Override - public List getRequestIds() { - return requestIds; - } - - @Override - public void setRequestIds(List requestIds) { - this.requestIds = requestIds; - } - - /** This builder class can be used to construct a DefaultOperationResult bean. */ - public static class Builder extends OperationResultBuilder { @Override - protected Builder getSelf() { - return this; + public List getOutputArguments() { + return outputArguments; } @Override - protected DefaultOperationResult newBuildingInstance() { - return new DefaultOperationResult(); + public void setOutputArguments(List outputArguments) { + this.outputArguments = outputArguments; + } + + public String toString() { + return String.format( + "DefaultOperationResult (" + "inoutputArguments=%s," + + "outputArguments=%s," + + ")", + this.inoutputArguments, this.outputArguments); + } + + /** + * This builder class can be used to construct a DefaultOperationResult bean. + */ + public static class Builder extends OperationResultBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationResult newBuildingInstance() { + return new DefaultOperationResult(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index d634f015f..17f42b008 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,65 +22,71 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable - * - *

The value of an operation variable is a submodel element that is used as input and/or output + * + * The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ + @IRI("aas:OperationVariable") public class DefaultOperationVariable implements OperationVariable { - @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") - protected SubmodelElement value; - - public DefaultOperationVariable() {} - - @Override - public String toString() { - return "DefaultOperationVariable{" + "value='" + value + "'," + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.value); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationVariable other = (DefaultOperationVariable) obj; - return Objects.equals(this.value, other.value); - } - } + @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") + protected SubmodelElement value; - @Override - public SubmodelElement getValue() { - return value; - } + public DefaultOperationVariable() {} - @Override - public void setValue(SubmodelElement value) { - this.value = value; - } + @Override + public int hashCode() { + return Objects.hash(this.value); + } - /** This builder class can be used to construct a DefaultOperationVariable bean. */ - public static class Builder extends OperationVariableBuilder { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationVariable other = (DefaultOperationVariable) obj; + return Objects.equals(this.value, other.value); + } + } @Override - protected Builder getSelf() { - return this; + public SubmodelElement getValue() { + return value; } @Override - protected DefaultOperationVariable newBuildingInstance() { - return new DefaultOperationVariable(); + public void setValue(SubmodelElement value) { + this.value = value; + } + + public String toString() { + return String.format( + "DefaultOperationVariable (" + "value=%s," + + ")", + this.value); + } + + /** + * This builder class can be used to construct a DefaultOperationVariable bean. + */ + public static class Builder extends OperationVariableBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultOperationVariable newBuildingInstance() { + return new DefaultOperationVariable(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java index dabea88a1..43612361c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,82 +23,85 @@ import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription + * + */ + @IRI("aas:PackageDescription") public class DefaultPackageDescription implements PackageDescription { - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") - protected List items = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") - protected String packageId; - - public DefaultPackageDescription() {} - - @Override - public String toString() { - return "DefaultPackageDescription{" - + "items='" - + items - + "'," - + "packageId='" - + packageId - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.items, this.packageId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultPackageDescription other = (DefaultPackageDescription) obj; - return Objects.equals(this.items, other.items) - && Objects.equals(this.packageId, other.packageId); - } - } + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") + protected List items = new ArrayList<>(); - @Override - public List getItems() { - return items; - } + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") + protected String packageId; - @Override - public void setItems(List items) { - this.items = items; - } + public DefaultPackageDescription() {} - @Override - public String getPackageId() { - return packageId; - } + @Override + public int hashCode() { + return Objects.hash(this.items, + this.packageId); + } - @Override - public void setPackageId(String packageId) { - this.packageId = packageId; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultPackageDescription other = (DefaultPackageDescription) obj; + return Objects.equals(this.items, other.items) && + Objects.equals(this.packageId, other.packageId); + } + } - /** This builder class can be used to construct a DefaultPackageDescription bean. */ - public static class Builder - extends PackageDescriptionBuilder { + @Override + public List getItems() { + return items; + } @Override - protected Builder getSelf() { - return this; + public void setItems(List items) { + this.items = items; } @Override - protected DefaultPackageDescription newBuildingInstance() { - return new DefaultPackageDescription(); + public String getPackageId() { + return packageId; + } + + @Override + public void setPackageId(String packageId) { + this.packageId = packageId; + } + + public String toString() { + return String.format( + "DefaultPackageDescription (" + "items=%s," + + "packageId=%s," + + ")", + this.items, this.packageId); + } + + /** + * This builder class can be used to construct a DefaultPackageDescription bean. + */ + public static class Builder extends PackageDescriptionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultPackageDescription newBuildingInstance() { + return new DefaultPackageDescription(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 7b7a08c15..3c40a0bd9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,268 +30,237 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property - * - *

A property is a data element that has a single value. + * + * A property is a data element that has a single value. */ + @IRI("aas:Property") public class DefaultProperty implements Property { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Property/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/Property/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/2/Property/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultProperty() {} - - @Override - public String toString() { - return "DefaultProperty{" - + "valueType='" - + valueType - + "'," - + "value='" - + value - + "'," - + "valueId='" - + valueId - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.valueType, - this.value, - this.valueId, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProperty other = (DefaultProperty) obj; - return Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.value, other.value) - && Objects.equals(this.valueId, other.valueId) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Property/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/Property/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/0/Property/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultProperty() {} + + @Override + public int hashCode() { + return Objects.hash(this.valueType, + this.value, + this.valueId, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProperty other = (DefaultProperty) obj; + return Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; } - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultProperty bean. */ - public static class Builder extends PropertyBuilder { @Override - protected Builder getSelf() { - return this; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - protected DefaultProperty newBuildingInstance() { - return new DefaultProperty(); + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultProperty (" + "valueType=%s," + + "value=%s," + + "valueId=%s," + + ")", + this.valueType, this.value, this.valueId); + } + + /** + * This builder class can be used to construct a DefaultProperty bean. + */ + public static class Builder extends PropertyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultProperty newBuildingInstance() { + return new DefaultProperty(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index f073b1ed9..6b2639f9e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,174 +24,166 @@ import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation + * + */ + @IRI("aas:ProtocolInformation") public class DefaultProtocolInformation implements ProtocolInformation { - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") - protected String endpointAddress; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") - protected String endpointProtocol; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") - protected String endpointProtocolVersion; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") - protected List securityAttributes = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") - protected String subprotocol; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") - protected String subprotocolBody; - - @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") - protected String subprotocolBodyEncoding; - - public DefaultProtocolInformation() {} - - @Override - public String toString() { - return "DefaultProtocolInformation{" - + "endpointAddress='" - + endpointAddress - + "'," - + "endpointProtocol='" - + endpointProtocol - + "'," - + "endpointProtocolVersion='" - + endpointProtocolVersion - + "'," - + "securityAttributes='" - + securityAttributes - + "'," - + "subprotocol='" - + subprotocol - + "'," - + "subprotocolBody='" - + subprotocolBody - + "'," - + "subprotocolBodyEncoding='" - + subprotocolBodyEncoding - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.endpointAddress, - this.endpointProtocol, - this.endpointProtocolVersion, - this.securityAttributes, - this.subprotocol, - this.subprotocolBody, - this.subprotocolBodyEncoding); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProtocolInformation other = (DefaultProtocolInformation) obj; - return Objects.equals(this.endpointAddress, other.endpointAddress) - && Objects.equals(this.endpointProtocol, other.endpointProtocol) - && Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) - && Objects.equals(this.securityAttributes, other.securityAttributes) - && Objects.equals(this.subprotocol, other.subprotocol) - && Objects.equals(this.subprotocolBody, other.subprotocolBody) - && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding); - } - } - - @Override - public String getEndpointAddress() { - return endpointAddress; - } - - @Override - public void setEndpointAddress(String endpointAddress) { - this.endpointAddress = endpointAddress; - } - - @Override - public String getEndpointProtocol() { - return endpointProtocol; - } - - @Override - public void setEndpointProtocol(String endpointProtocol) { - this.endpointProtocol = endpointProtocol; - } - - @Override - public String getEndpointProtocolVersion() { - return endpointProtocolVersion; - } - - @Override - public void setEndpointProtocolVersion(String endpointProtocolVersion) { - this.endpointProtocolVersion = endpointProtocolVersion; - } - - @Override - public List getSecurityAttributes() { - return securityAttributes; - } - - @Override - public void setSecurityAttributes(List securityAttributes) { - this.securityAttributes = securityAttributes; - } - - @Override - public String getSubprotocol() { - return subprotocol; - } - - @Override - public void setSubprotocol(String subprotocol) { - this.subprotocol = subprotocol; - } - - @Override - public String getSubprotocolBody() { - return subprotocolBody; - } - - @Override - public void setSubprotocolBody(String subprotocolBody) { - this.subprotocolBody = subprotocolBody; - } - - @Override - public String getSubprotocolBodyEncoding() { - return subprotocolBodyEncoding; - } - - @Override - public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { - this.subprotocolBodyEncoding = subprotocolBodyEncoding; - } - - /** This builder class can be used to construct a DefaultProtocolInformation bean. */ - public static class Builder - extends ProtocolInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultProtocolInformation newBuildingInstance() { - return new DefaultProtocolInformation(); - } - } + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") + protected String endpointProtocol; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") + protected List endpointProtocolVersion = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") + protected String href; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") + protected List securityAttributes = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") + protected String subprotocol; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") + protected String subprotocolBody; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") + protected String subprotocolBodyEncoding; + + public DefaultProtocolInformation() {} + + @Override + public int hashCode() { + return Objects.hash(this.href, + this.endpointProtocol, + this.endpointProtocolVersion, + this.subprotocol, + this.subprotocolBody, + this.subprotocolBodyEncoding, + this.securityAttributes); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProtocolInformation other = (DefaultProtocolInformation) obj; + return Objects.equals(this.href, other.href) && + Objects.equals(this.endpointProtocol, other.endpointProtocol) && + Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && + Objects.equals(this.subprotocol, other.subprotocol) && + Objects.equals(this.subprotocolBody, other.subprotocolBody) && + Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) && + Objects.equals(this.securityAttributes, other.securityAttributes); + } + } + + @Override + public String getHref() { + return href; + } + + @Override + public void setHref(String href) { + this.href = href; + } + + @Override + public String getEndpointProtocol() { + return endpointProtocol; + } + + @Override + public void setEndpointProtocol(String endpointProtocol) { + this.endpointProtocol = endpointProtocol; + } + + @Override + public List getEndpointProtocolVersion() { + return endpointProtocolVersion; + } + + @Override + public void setEndpointProtocolVersion(List endpointProtocolVersions) { + this.endpointProtocolVersion = endpointProtocolVersions; + } + + @Override + public String getSubprotocol() { + return subprotocol; + } + + @Override + public void setSubprotocol(String subprotocol) { + this.subprotocol = subprotocol; + } + + @Override + public String getSubprotocolBody() { + return subprotocolBody; + } + + @Override + public void setSubprotocolBody(String subprotocolBody) { + this.subprotocolBody = subprotocolBody; + } + + @Override + public String getSubprotocolBodyEncoding() { + return subprotocolBodyEncoding; + } + + @Override + public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { + this.subprotocolBodyEncoding = subprotocolBodyEncoding; + } + + @Override + public List getSecurityAttributes() { + return securityAttributes; + } + + @Override + public void setSecurityAttributes(List securityAttributes) { + this.securityAttributes = securityAttributes; + } + + public String toString() { + return String.format( + "DefaultProtocolInformation (" + "href=%s," + + "endpointProtocol=%s," + + "endpointProtocolVersion=%s," + + "subprotocol=%s," + + "subprotocolBody=%s," + + "subprotocolBodyEncoding=%s," + + "securityAttributes=%s," + + ")", + this.href, this.endpointProtocol, this.endpointProtocolVersion, this.subprotocol, this.subprotocolBody, + this.subprotocolBodyEncoding, this.securityAttributes); + } + + /** + * This builder class can be used to construct a DefaultProtocolInformation bean. + */ + public static class Builder extends ProtocolInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultProtocolInformation newBuildingInstance() { + return new DefaultProtocolInformation(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 5b9dfe949..4a3447a43 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,178 +26,165 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier - * - *

A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the + * + * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ + @IRI("aas:Qualifier") public class DefaultQualifier implements Qualifier { - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") - protected QualifierKind kind; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") - protected String type; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") - protected DataTypeDefXsd valueType; - - public DefaultQualifier() {} - - @Override - public String toString() { - return "DefaultQualifier{" - + "kind='" - + kind - + "'," - + "type='" - + type - + "'," - + "valueType='" - + valueType - + "'," - + "value='" - + value - + "'," - + "valueId='" - + valueId - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.kind, - this.type, - this.valueType, - this.value, - this.valueId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultQualifier other = (DefaultQualifier) obj; - return Objects.equals(this.kind, other.kind) - && Objects.equals(this.type, other.type) - && Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.value, other.value) - && Objects.equals(this.valueId, other.valueId) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public QualifierKind getKind() { - return kind; - } - - @Override - public void setKind(QualifierKind kind) { - this.kind = kind; - } - - @Override - public String getType() { - return type; - } - - @Override - public void setType(String type) { - this.type = type; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** This builder class can be used to construct a DefaultQualifier bean. */ - public static class Builder extends QualifierBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultQualifier newBuildingInstance() { - return new DefaultQualifier(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") + protected QualifierKind kind; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") + protected String type; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") + protected DataTypeDefXsd valueType; + + public DefaultQualifier() {} + + @Override + public int hashCode() { + return Objects.hash(this.kind, + this.type, + this.valueType, + this.value, + this.valueId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultQualifier other = (DefaultQualifier) obj; + return Objects.equals(this.kind, other.kind) && + Objects.equals(this.type, other.type) && + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public QualifierKind getKind() { + return kind; + } + + @Override + public void setKind(QualifierKind kind) { + this.kind = kind; + } + + @Override + public String getType() { + return type; + } + + @Override + public void setType(String type) { + this.type = type; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + public String toString() { + return String.format( + "DefaultQualifier (" + "kind=%s," + + "type=%s," + + "valueType=%s," + + "value=%s," + + "valueId=%s," + + ")", + this.kind, this.type, this.valueType, this.value, this.valueId); + } + + /** + * This builder class can be used to construct a DefaultQualifier bean. + */ + public static class Builder extends QualifierBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultQualifier newBuildingInstance() { + return new DefaultQualifier(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index d8bcb83f4..7406d9abc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,268 +30,237 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range - * - *

A range data element is a data element that defines a range with min and max. + * + * A range data element is a data element that defines a range with min and max. */ + @IRI("aas:Range") public class DefaultRange implements Range { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Range/max") - protected String max; - - @IRI("https://admin-shell.io/aas/3/2/Range/min") - protected String min; - - @IRI("https://admin-shell.io/aas/3/2/Range/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - public DefaultRange() {} - - @Override - public String toString() { - return "DefaultRange{" - + "valueType='" - + valueType - + "'," - + "min='" - + min - + "'," - + "max='" - + max - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.valueType, - this.min, - this.max, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRange other = (DefaultRange) obj; - return Objects.equals(this.valueType, other.valueType) - && Objects.equals(this.min, other.min) - && Objects.equals(this.max, other.max) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Range/max") + protected String max; + + @IRI("https://admin-shell.io/aas/3/0/Range/min") + protected String min; + + @IRI("https://admin-shell.io/aas/3/0/Range/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultRange() {} + + @Override + public int hashCode() { + return Objects.hash(this.valueType, + this.min, + this.max, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRange other = (DefaultRange) obj; + return Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.min, other.min) && + Objects.equals(this.max, other.max) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getMin() { + return min; + } + + @Override + public void setMin(String min) { + this.min = min; + } + + @Override + public String getMax() { + return max; + } + + @Override + public void setMax(String max) { + this.max = max; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; } - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getMin() { - return min; - } - - @Override - public void setMin(String min) { - this.min = min; - } - - @Override - public String getMax() { - return max; - } - - @Override - public void setMax(String max) { - this.max = max; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultRange bean. */ - public static class Builder extends RangeBuilder { @Override - protected Builder getSelf() { - return this; + public void setIdShort(String idShort) { + this.idShort = idShort; } @Override - protected DefaultRange newBuildingInstance() { - return new DefaultRange(); + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultRange (" + "valueType=%s," + + "min=%s," + + "max=%s," + + ")", + this.valueType, this.min, this.max); + } + + /** + * This builder class can be used to construct a DefaultRange bean. + */ + public static class Builder extends RangeBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultRange newBuildingInstance() { + return new DefaultRange(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index 03f88f6bd..ceed8d70d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,102 +25,102 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference - * - *

Reference to either a model element of the same or another AAS or to an external entity. + * + * Reference to either a model element of the same or another AAS or to an external entity. */ + @IRI("aas:Reference") public class DefaultReference implements Reference { - @IRI("https://admin-shell.io/aas/3/2/Reference/keys") - protected List keys = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") - protected Reference referredSemanticId; - - @IRI("https://admin-shell.io/aas/3/2/Reference/type") - protected ReferenceTypes type; - - public DefaultReference() {} - - @Override - public String toString() { - return "DefaultReference{" - + "type='" - + type - + "'," - + "referredSemanticId='" - + referredSemanticId - + "'," - + "keys='" - + keys - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.type, this.referredSemanticId, this.keys); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReference other = (DefaultReference) obj; - return Objects.equals(this.type, other.type) - && Objects.equals(this.referredSemanticId, other.referredSemanticId) - && Objects.equals(this.keys, other.keys); - } - } + @IRI("https://admin-shell.io/aas/3/0/Reference/keys") + protected List keys = new ArrayList<>(); - @Override - public ReferenceTypes getType() { - return type; - } + @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") + protected Reference referredSemanticId; - @Override - public void setType(ReferenceTypes type) { - this.type = type; - } + @IRI("https://admin-shell.io/aas/3/0/Reference/type") + protected ReferenceTypes type; - @Override - public Reference getReferredSemanticId() { - return referredSemanticId; - } + public DefaultReference() {} - @Override - public void setReferredSemanticId(Reference referredSemanticId) { - this.referredSemanticId = referredSemanticId; - } + @Override + public int hashCode() { + return Objects.hash(this.type, + this.referredSemanticId, + this.keys); + } - @Override - public List getKeys() { - return keys; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReference other = (DefaultReference) obj; + return Objects.equals(this.type, other.type) && + Objects.equals(this.referredSemanticId, other.referredSemanticId) && + Objects.equals(this.keys, other.keys); + } + } - @Override - public void setKeys(List keys) { - this.keys = keys; - } + @Override + public ReferenceTypes getType() { + return type; + } - /** This builder class can be used to construct a DefaultReference bean. */ - public static class Builder extends ReferenceBuilder { + @Override + public void setType(ReferenceTypes type) { + this.type = type; + } @Override - protected Builder getSelf() { - return this; + public Reference getReferredSemanticId() { + return referredSemanticId; } @Override - protected DefaultReference newBuildingInstance() { - return new DefaultReference(); + public void setReferredSemanticId(Reference referredSemanticId) { + this.referredSemanticId = referredSemanticId; + } + + @Override + public List getKeys() { + return keys; + } + + @Override + public void setKeys(List keys) { + this.keys = keys; + } + + public String toString() { + return String.format( + "DefaultReference (" + "type=%s," + + "referredSemanticId=%s," + + "keys=%s," + + ")", + this.type, this.referredSemanticId, this.keys); + } + + /** + * This builder class can be used to construct a DefaultReference bean. + */ + public static class Builder extends ReferenceBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultReference newBuildingInstance() { + return new DefaultReference(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index 394a1b72c..d1e17a716 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,233 +29,206 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement - * - *

A reference element is a data element that defines a logical reference to another element - * within the same or another AAS or a reference to an external object or entity. + * + * A reference element is a data element that defines a logical reference to another element within + * the same or another AAS or a reference to an external object or entity. */ + @IRI("aas:ReferenceElement") public class DefaultReferenceElement implements ReferenceElement { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") - protected Reference value; - - public DefaultReferenceElement() {} - - @Override - public String toString() { - return "DefaultReferenceElement{" - + "value='" - + value - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.value, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReferenceElement other = (DefaultReferenceElement) obj; - return Objects.equals(this.value, other.value) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") + protected Reference value; + + public DefaultReferenceElement() {} + + @Override + public int hashCode() { + return Objects.hash(this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReferenceElement other = (DefaultReferenceElement) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getValue() { + return value; } - } - - @Override - public Reference getValue() { - return value; - } - - @Override - public void setValue(Reference value) { - this.value = value; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultReferenceElement bean. */ - public static class Builder extends ReferenceElementBuilder { @Override - protected Builder getSelf() { - return this; + public void setValue(Reference value) { + this.value = value; } @Override - protected DefaultReferenceElement newBuildingInstance() { - return new DefaultReferenceElement(); + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultReferenceElement (" + "value=%s," + + ")", + this.value); + } + + /** + * This builder class can be used to construct a DefaultReferenceElement bean. + */ + public static class Builder extends ReferenceElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultReferenceElement newBuildingInstance() { + return new DefaultReferenceElement(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index 1f3faa27d..78560ec19 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,252 +29,222 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement - * - *

A relationship element is used to define a relationship between two elements being either + * + * A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ + @IRI("aas:RelationshipElement") public class DefaultRelationshipElement implements RelationshipElement { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") - protected Reference second; - - public DefaultRelationshipElement() {} - - @Override - public String toString() { - return "DefaultRelationshipElement{" - + "first='" - + first - + "'," - + "second='" - + second - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.first, - this.second, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRelationshipElement other = (DefaultRelationshipElement) obj; - return Objects.equals(this.first, other.first) - && Objects.equals(this.second, other.second) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + protected Reference second; + + public DefaultRelationshipElement() {} + + @Override + public int hashCode() { + return Objects.hash(this.first, + this.second, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRelationshipElement other = (DefaultRelationshipElement) obj; + return Objects.equals(this.first, other.first) && + Objects.equals(this.second, other.second) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; } - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultRelationshipElement bean. */ - public static class Builder - extends RelationshipElementBuilder { @Override - protected Builder getSelf() { - return this; + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; } @Override - protected DefaultRelationshipElement newBuildingInstance() { - return new DefaultRelationshipElement(); + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultRelationshipElement (" + "first=%s," + + "second=%s," + + ")", + this.first, this.second); + } + + /** + * This builder class can be used to construct a DefaultRelationshipElement bean. + */ + public static class Builder extends RelationshipElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultRelationshipElement newBuildingInstance() { + return new DefaultRelationshipElement(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index 69c07b776..068c2ad83 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,79 +21,87 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource - * - *

Resource represents an address to a file (a locator). The value is an URI that can represent - * an absolute or relative path + * + * Resource represents an address to a file (a locator). The value is an URI that can represent an + * absolute or relative path */ + @IRI("aas:Resource") public class DefaultResource implements Resource { - @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/2/Resource/path") - protected String path; - - public DefaultResource() {} - - @Override - public String toString() { - return "DefaultResource{" + "path='" + path + "'," + "contentType='" + contentType + "'," + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.path, this.contentType); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResource other = (DefaultResource) obj; - return Objects.equals(this.path, other.path) - && Objects.equals(this.contentType, other.contentType); - } - } + @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") + protected String contentType; - @Override - public String getPath() { - return path; - } + @IRI("https://admin-shell.io/aas/3/0/Resource/path") + protected String path; - @Override - public void setPath(String path) { - this.path = path; - } + public DefaultResource() {} - @Override - public String getContentType() { - return contentType; - } + @Override + public int hashCode() { + return Objects.hash(this.path, + this.contentType); + } - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResource other = (DefaultResource) obj; + return Objects.equals(this.path, other.path) && + Objects.equals(this.contentType, other.contentType); + } + } + + @Override + public String getPath() { + return path; + } - /** This builder class can be used to construct a DefaultResource bean. */ - public static class Builder extends ResourceBuilder { + @Override + public void setPath(String path) { + this.path = path; + } @Override - protected Builder getSelf() { - return this; + public String getContentType() { + return contentType; } @Override - protected DefaultResource newBuildingInstance() { - return new DefaultResource(); + public void setContentType(String contentType) { + this.contentType = contentType; + } + + public String toString() { + return String.format( + "DefaultResource (" + "path=%s," + + "contentType=%s," + + ")", + this.path, this.contentType); + } + + /** + * This builder class can be used to construct a DefaultResource bean. + */ + public static class Builder extends ResourceBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultResource newBuildingInstance() { + return new DefaultResource(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java index d2baf9dab..fa5e27a11 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,74 +24,69 @@ import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result */ -@IRI("aas:Result") -public class DefaultResult implements Result { - @IRI("https://admin-shell.io/aas/3/2/Result/messages") - protected List messages = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Result/success") - protected boolean success; - - public DefaultResult() {} - - @Override - public String toString() { - return "DefaultResult{" + "messages='" + messages + "'," + "success='" + success + "'," + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.messages, this.success); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResult other = (DefaultResult) obj; - return Objects.equals(this.messages, other.messages) - && Objects.equals(this.success, other.success); - } - } +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result + * + */ - @Override - public List getMessages() { - return messages; - } +@IRI("aas:Result") +public class DefaultResult implements Result { - @Override - public void setMessages(List messages) { - this.messages = messages; - } + @IRI("https://admin-shell.io/aas/3/0/Result/messages") + protected List messages = new ArrayList<>(); - @Override - public boolean getSuccess() { - return success; - } + public DefaultResult() {} - @Override - public void setSuccess(boolean success) { - this.success = success; - } + @Override + public int hashCode() { + return Objects.hash(this.messages); + } - /** This builder class can be used to construct a DefaultResult bean. */ - public static class Builder extends ResultBuilder { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResult other = (DefaultResult) obj; + return Objects.equals(this.messages, other.messages); + } + } @Override - protected Builder getSelf() { - return this; + public List getMessages() { + return messages; } @Override - protected DefaultResult newBuildingInstance() { - return new DefaultResult(); + public void setMessages(List messages) { + this.messages = messages; + } + + public String toString() { + return String.format( + "DefaultResult (" + "messages=%s," + + ")", + this.messages); + } + + /** + * This builder class can be used to construct a DefaultResult bean. + */ + public static class Builder extends ResultBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultResult newBuildingInstance() { + return new DefaultResult(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java index c2f25bd20..e2497b864 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,101 +22,101 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject + * */ + @IRI("aas:SecurityAttributeObject") public class DefaultSecurityAttributeObject implements SecurityAttributeObject { - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") - protected String key; - - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") - protected SecurityTypeEnum type; - - @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") - protected String value; - - public DefaultSecurityAttributeObject() {} - - @Override - public String toString() { - return "DefaultSecurityAttributeObject{" - + "key='" - + key - + "'," - + "value='" - + value - + "'," - + "type='" - + type - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.key, this.value, this.type); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; - return Objects.equals(this.key, other.key) - && Objects.equals(this.value, other.value) - && Objects.equals(this.type, other.type); + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") + protected String key; + + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") + protected SecurityTypeEnum type; + + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") + protected String value; + + public DefaultSecurityAttributeObject() {} + + @Override + public int hashCode() { + return Objects.hash(this.type, + this.key, + this.value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; + return Objects.equals(this.type, other.type) && + Objects.equals(this.key, other.key) && + Objects.equals(this.value, other.value); + } + } + + @Override + public SecurityTypeEnum getType() { + return type; + } + + @Override + public void setType(SecurityTypeEnum type) { + this.type = type; + } + + @Override + public String getKey() { + return key; + } + + @Override + public void setKey(String key) { + this.key = key; } - } - - @Override - public String getKey() { - return key; - } - - @Override - public void setKey(String key) { - this.key = key; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public SecurityTypeEnum getType() { - return type; - } - - @Override - public void setType(SecurityTypeEnum type) { - this.type = type; - } - - /** This builder class can be used to construct a DefaultSecurityAttributeObject bean. */ - public static class Builder - extends SecurityAttributeObjectBuilder { @Override - protected Builder getSelf() { - return this; + public String getValue() { + return value; } @Override - protected DefaultSecurityAttributeObject newBuildingInstance() { - return new DefaultSecurityAttributeObject(); + public void setValue(String value) { + this.value = value; + } + + public String toString() { + return String.format( + "DefaultSecurityAttributeObject (" + "type=%s," + + "key=%s," + + "value=%s," + + ")", + this.type, this.key, this.value); + } + + /** + * This builder class can be used to construct a DefaultSecurityAttributeObject bean. + */ + public static class Builder extends SecurityAttributeObjectBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSecurityAttributeObject newBuildingInstance() { + return new DefaultSecurityAttributeObject(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 63ed7bb85..53122fe0c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,141 +24,132 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId - * - *

A specific asset ID describes a generic supplementary identifying attribute of the asset. + * + * A specific asset ID describes a generic supplementary identifying attribute of the asset. */ + @IRI("aas:SpecificAssetId") public class DefaultSpecificAssetId implements SpecificAssetId { - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") - protected Reference externalSubjectId; - - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") - protected String value; - - public DefaultSpecificAssetId() {} - - @Override - public String toString() { - return "DefaultSpecificAssetId{" - + "name='" - + name - + "'," - + "value='" - + value - + "'," - + "externalSubjectId='" - + externalSubjectId - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.name, - this.value, - this.externalSubjectId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; - return Objects.equals(this.name, other.name) - && Objects.equals(this.value, other.value) - && Objects.equals(this.externalSubjectId, other.externalSubjectId) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") + protected Reference externalSubjectId; + + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") + protected String value; + + public DefaultSpecificAssetId() {} + + @Override + public int hashCode() { + return Objects.hash(this.name, + this.value, + this.externalSubjectId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; + return Objects.equals(this.name, other.name) && + Objects.equals(this.value, other.value) && + Objects.equals(this.externalSubjectId, other.externalSubjectId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getExternalSubjectId() { + return externalSubjectId; } - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getExternalSubjectId() { - return externalSubjectId; - } - - @Override - public void setExternalSubjectId(Reference externalSubjectId) { - this.externalSubjectId = externalSubjectId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - /** This builder class can be used to construct a DefaultSpecificAssetId bean. */ - public static class Builder extends SpecificAssetIdBuilder { @Override - protected Builder getSelf() { - return this; + public void setExternalSubjectId(Reference externalSubjectId) { + this.externalSubjectId = externalSubjectId; } @Override - protected DefaultSpecificAssetId newBuildingInstance() { - return new DefaultSpecificAssetId(); + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + public String toString() { + return String.format( + "DefaultSpecificAssetId (" + "name=%s," + + "value=%s," + + "externalSubjectId=%s," + + ")", + this.name, this.value, this.externalSubjectId); + } + + /** + * This builder class can be used to construct a DefaultSpecificAssetId bean. + */ + public static class Builder extends SpecificAssetIdBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSpecificAssetId newBuildingInstance() { + return new DefaultSpecificAssetId(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 83d3c8fbb..6c58355f9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,286 +32,250 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel - * - *

A submodel defines a specific aspect of the asset represented by the AAS. + * + * A submodel defines a specific aspect of the asset represented by the AAS. */ + @IRI("aas:Submodel") public class DefaultSubmodel implements Submodel { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") - protected ModellingKind kind; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") - protected List submodelElements = new ArrayList<>(); - - public DefaultSubmodel() {} - - @Override - public String toString() { - return "DefaultSubmodel{" - + "submodelElements='" - + submodelElements - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "kind='" - + kind - + "'," - + "administration='" - + administration - + "'," - + "id='" - + id - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.submodelElements, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.kind, - this.administration, - this.id, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodel other = (DefaultSubmodel) obj; - return Objects.equals(this.submodelElements, other.submodelElements) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers) - && Objects.equals(this.kind, other.kind) - && Objects.equals(this.administration, other.administration) - && Objects.equals(this.id, other.id) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") + protected ModellingKind kind; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") + protected List submodelElements = new ArrayList<>(); + + public DefaultSubmodel() {} + + @Override + public int hashCode() { + return Objects.hash(this.submodelElements, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.kind, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodel other = (DefaultSubmodel) obj; + return Objects.equals(this.submodelElements, other.submodelElements) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.kind, other.kind) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getSubmodelElements() { + return submodelElements; + } + + @Override + public void setSubmodelElements(List submodelElements) { + this.submodelElements = submodelElements; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; } - } - - @Override - public List getSubmodelElements() { - return submodelElements; - } - - @Override - public void setSubmodelElements(List submodelElements) { - this.submodelElements = submodelElements; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - /** This builder class can be used to construct a DefaultSubmodel bean. */ - public static class Builder extends SubmodelBuilder { @Override - protected Builder getSelf() { - return this; + public String getIdShort() { + return idShort; } @Override - protected DefaultSubmodel newBuildingInstance() { - return new DefaultSubmodel(); + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultSubmodel (" + "submodelElements=%s," + + ")", + this.submodelElements); + } + + /** + * This builder class can be used to construct a DefaultSubmodel bean. + */ + public static class Builder extends SubmodelBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodel newBuildingInstance() { + return new DefaultSubmodel(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java index 04054ec4e..794fdf368 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -17,6 +17,7 @@ import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; +import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; @@ -28,174 +29,194 @@ import java.util.List; import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor */ + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor + * + */ + @IRI("aas:SubmodelDescriptor") public class DefaultSubmodelDescriptor implements SubmodelDescriptor { - @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") - protected LangStringTextType description; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") - protected LangStringNameType displayName; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") - protected String identification; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") - protected Reference semanticId; - - public DefaultSubmodelDescriptor() {} - - @Override - public String toString() { - return "DefaultSubmodelDescriptor{" - + "administration='" - + administration - + "'," - + "description='" - + description - + "'," - + "displayName='" - + displayName - + "'," - + "idShort='" - + idShort - + "'," - + "identification='" - + identification - + "'," - + "semanticId='" - + semanticId - + "'," - + "endpoints='" - + endpoints - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.administration, - this.description, - this.displayName, - this.idShort, - this.identification, - this.semanticId, - this.endpoints); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; - return Objects.equals(this.administration, other.administration) - && Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.identification, other.identification) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.endpoints, other.endpoints); - } - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public LangStringTextType getDescription() { - return description; - } - - @Override - public void setDescription(LangStringTextType description) { - this.description = description; - } - - @Override - public LangStringNameType getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(LangStringNameType displayName) { - this.displayName = displayName; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getIdentification() { - return identification; - } - - @Override - public void setIdentification(String identification) { - this.identification = identification; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - /** This builder class can be used to construct a DefaultSubmodelDescriptor bean. */ - public static class Builder - extends SubmodelDescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelDescriptor newBuildingInstance() { - return new DefaultSubmodelDescriptor(); - } - } + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") + protected List supplementalSemanticId = new ArrayList<>(); + + public DefaultSubmodelDescriptor() {} + + @Override + public int hashCode() { + return Objects.hash(this.administration, + this.endpoints, + this.idShort, + this.id, + this.semanticId, + this.supplementalSemanticId, + this.description, + this.displayName, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; + return Objects.equals(this.administration, other.administration) && + Objects.equals(this.endpoints, other.endpoints) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.id, other.id) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticId, other.supplementalSemanticId) && + Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticId() { + return supplementalSemanticId; + } + + @Override + public void setSupplementalSemanticId(List supplementalSemanticIds) { + this.supplementalSemanticId = supplementalSemanticIds; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultSubmodelDescriptor (" + "administration=%s," + + "endpoints=%s," + + "idShort=%s," + + "id=%s," + + "semanticId=%s," + + "supplementalSemanticId=%s," + + ")", + this.administration, this.endpoints, this.idShort, this.id, this.semanticId, this.supplementalSemanticId); + } + + /** + * This builder class can be used to construct a DefaultSubmodelDescriptor bean. + */ + public static class Builder extends SubmodelDescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelDescriptor newBuildingInstance() { + return new DefaultSubmodelDescriptor(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java index 69cb41286..3cc74a896 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,232 +30,205 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes + * */ + @IRI("aas:SubmodelElementAttributes") public class DefaultSubmodelElementAttributes implements SubmodelElementAttributes { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") - protected ModellingKind kind; - - public DefaultSubmodelElementAttributes() {} - - @Override - public String toString() { - return "DefaultSubmodelElementAttributes{" - + "kind='" - + kind - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.kind, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; - return Objects.equals(this.kind, other.kind) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") + protected ModellingKind kind; + + public DefaultSubmodelElementAttributes() {} + + @Override + public int hashCode() { + return Objects.hash(this.kind, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; + return Objects.equals(this.kind, other.kind) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public ModellingKind getKind() { + return kind; } - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultSubmodelElementAttributes bean. */ - public static class Builder - extends SubmodelElementAttributesBuilder { @Override - protected Builder getSelf() { - return this; + public void setKind(ModellingKind kind) { + this.kind = kind; } @Override - protected DefaultSubmodelElementAttributes newBuildingInstance() { - return new DefaultSubmodelElementAttributes(); + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultSubmodelElementAttributes (" + "kind=%s," + + ")", + this.kind); + } + + /** + * This builder class can be used to construct a DefaultSubmodelElementAttributes bean. + */ + public static class Builder extends SubmodelElementAttributesBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementAttributes newBuildingInstance() { + return new DefaultSubmodelElementAttributes(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index 15222ab3a..a1806e16d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,235 +30,207 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection - * - *

A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple + * + * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ + @IRI("aas:SubmodelElementCollection") public class DefaultSubmodelElementCollection implements SubmodelElementCollection { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") - protected List values = new ArrayList<>(); - - public DefaultSubmodelElementCollection() {} - - @Override - public String toString() { - return "DefaultSubmodelElementCollection{" - + "values='" - + values - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.values, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; - return Objects.equals(this.values, other.values) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") + protected List value = new ArrayList<>(); + + public DefaultSubmodelElementCollection() {} + + @Override + public int hashCode() { + return Objects.hash(this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getValue() { + return value; } - } - - @Override - public List getValues() { - return values; - } - - @Override - public void setValues(List values) { - this.values = values; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultSubmodelElementCollection bean. */ - public static class Builder - extends SubmodelElementCollectionBuilder { @Override - protected Builder getSelf() { - return this; + public void setValue(List values) { + this.value = values; } @Override - protected DefaultSubmodelElementCollection newBuildingInstance() { - return new DefaultSubmodelElementCollection(); + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultSubmodelElementCollection (" + "value=%s," + + ")", + this.value); + } + + /** + * This builder class can be used to construct a DefaultSubmodelElementCollection bean. + */ + public static class Builder extends SubmodelElementCollectionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementCollection newBuildingInstance() { + return new DefaultSubmodelElementCollection(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index e335d05fa..51430a7d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,305 +32,269 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList - * - *

A submodel element list is an ordered list of submodel elements. + * + * A submodel element list is an ordered list of submodel elements. */ + @IRI("aas:SubmodelElementList") public class DefaultSubmodelElementList implements SubmodelElementList { - @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/2/Referable/description") - protected List descriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") - protected List displayNames = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") - protected boolean orderRelevant; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") - protected Reference semanticIdListElement; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") - protected AasSubmodelElements typeValueListElement; - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") - protected List values = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") - protected DataTypeDefXsd valueTypeListElement; - - public DefaultSubmodelElementList() {} - - @Override - public String toString() { - return "DefaultSubmodelElementList{" - + "orderRelevant='" - + orderRelevant - + "'," - + "semanticIdListElement='" - + semanticIdListElement - + "'," - + "typeValueListElement='" - + typeValueListElement - + "'," - + "valueTypeListElement='" - + valueTypeListElement - + "'," - + "values='" - + values - + "'," - + "category='" - + category - + "'," - + "idShort='" - + idShort - + "'," - + "displayNames='" - + displayNames - + "'," - + "descriptions='" - + descriptions - + "'," - + "extensions='" - + extensions - + "'," - + "embeddedDataSpecifications='" - + embeddedDataSpecifications - + "'," - + "semanticId='" - + semanticId - + "'," - + "supplementalSemanticIds='" - + supplementalSemanticIds - + "'," - + "qualifiers='" - + qualifiers - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash( - this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.values, - this.category, - this.idShort, - this.displayNames, - this.descriptions, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; - return Objects.equals(this.orderRelevant, other.orderRelevant) - && Objects.equals(this.semanticIdListElement, other.semanticIdListElement) - && Objects.equals(this.typeValueListElement, other.typeValueListElement) - && Objects.equals(this.valueTypeListElement, other.valueTypeListElement) - && Objects.equals(this.values, other.values) - && Objects.equals(this.category, other.category) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.displayNames, other.displayNames) - && Objects.equals(this.descriptions, other.descriptions) - && Objects.equals(this.extensions, other.extensions) - && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) - && Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public boolean getOrderRelevant() { - return orderRelevant; - } - - @Override - public void setOrderRelevant(boolean orderRelevant) { - this.orderRelevant = orderRelevant; - } - - @Override - public Reference getSemanticIdListElement() { - return semanticIdListElement; - } - - @Override - public void setSemanticIdListElement(Reference semanticIdListElement) { - this.semanticIdListElement = semanticIdListElement; - } - - @Override - public AasSubmodelElements getTypeValueListElement() { - return typeValueListElement; - } - - @Override - public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { - this.typeValueListElement = typeValueListElement; - } - - @Override - public DataTypeDefXsd getValueTypeListElement() { - return valueTypeListElement; - } - - @Override - public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { - this.valueTypeListElement = valueTypeListElement; - } - - @Override - public List getValues() { - return values; - } - - @Override - public void setValues(List values) { - this.values = values; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayNames() { - return displayNames; - } - - @Override - public void setDisplayNames(List displayNames) { - this.displayNames = displayNames; - } - - @Override - public List getDescriptions() { - return descriptions; - } - - @Override - public void setDescriptions(List descriptions) { - this.descriptions = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications( - List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - /** This builder class can be used to construct a DefaultSubmodelElementList bean. */ - public static class Builder - extends SubmodelElementListBuilder { + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") + protected boolean orderRelevant; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") + protected Reference semanticIdListElement; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") + protected AasSubmodelElements typeValueListElement; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") + protected List value = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") + protected DataTypeDefXsd valueTypeListElement; + + public DefaultSubmodelElementList() {} + + @Override + public int hashCode() { + return Objects.hash(this.orderRelevant, + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; + return Objects.equals(this.orderRelevant, other.orderRelevant) && + Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && + Objects.equals(this.typeValueListElement, other.typeValueListElement) && + Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && + Objects.equals(this.value, other.value) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public boolean getOrderRelevant() { + return orderRelevant; + } + + @Override + public void setOrderRelevant(boolean orderRelevant) { + this.orderRelevant = orderRelevant; + } + + @Override + public Reference getSemanticIdListElement() { + return semanticIdListElement; + } + + @Override + public void setSemanticIdListElement(Reference semanticIdListElement) { + this.semanticIdListElement = semanticIdListElement; + } + + @Override + public AasSubmodelElements getTypeValueListElement() { + return typeValueListElement; + } + + @Override + public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { + this.typeValueListElement = typeValueListElement; + } + + @Override + public DataTypeDefXsd getValueTypeListElement() { + return valueTypeListElement; + } + + @Override + public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { + this.valueTypeListElement = valueTypeListElement; + } + + @Override + public List getValue() { + return value; + } + + @Override + public void setValue(List values) { + this.value = values; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } @Override - protected Builder getSelf() { - return this; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; } @Override - protected DefaultSubmodelElementList newBuildingInstance() { - return new DefaultSubmodelElementList(); + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultSubmodelElementList (" + "orderRelevant=%s," + + "semanticIdListElement=%s," + + "typeValueListElement=%s," + + "valueTypeListElement=%s," + + "value=%s," + + ")", + this.orderRelevant, this.semanticIdListElement, this.typeValueListElement, this.valueTypeListElement, this.value); + } + + /** + * This builder class can be used to construct a DefaultSubmodelElementList bean. + */ + public static class Builder extends SubmodelElementListBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementList newBuildingInstance() { + return new DefaultSubmodelElementList(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 71e656dad..95df776d9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,64 +24,70 @@ import java.util.List; import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList - * - *

A set of value reference pairs. + * + * A set of value reference pairs. */ + @IRI("aas:ValueList") public class DefaultValueList implements ValueList { - @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") - protected List valueReferencePairs = new ArrayList<>(); - - public DefaultValueList() {} - - @Override - public String toString() { - return "DefaultValueList{" + "valueReferencePairs='" + valueReferencePairs + "'," + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.valueReferencePairs); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueList other = (DefaultValueList) obj; - return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); - } - } + @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") + protected List valueReferencePairs = new ArrayList<>(); - @Override - public List getValueReferencePairs() { - return valueReferencePairs; - } + public DefaultValueList() {} - @Override - public void setValueReferencePairs(List valueReferencePairs) { - this.valueReferencePairs = valueReferencePairs; - } + @Override + public int hashCode() { + return Objects.hash(this.valueReferencePairs); + } - /** This builder class can be used to construct a DefaultValueList bean. */ - public static class Builder extends ValueListBuilder { + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueList other = (DefaultValueList) obj; + return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); + } + } @Override - protected Builder getSelf() { - return this; + public List getValueReferencePairs() { + return valueReferencePairs; } @Override - protected DefaultValueList newBuildingInstance() { - return new DefaultValueList(); + public void setValueReferencePairs(List valueReferencePairs) { + this.valueReferencePairs = valueReferencePairs; + } + + public String toString() { + return String.format( + "DefaultValueList (" + "valueReferencePairs=%s," + + ")", + this.valueReferencePairs); + } + + /** + * This builder class can be used to construct a DefaultValueList bean. + */ + public static class Builder extends ValueListBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultValueList newBuildingInstance() { + return new DefaultValueList(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index 16c6520c6..752281744 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -1,12 +1,12 @@ /* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * + * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2023, SAP SE or an SAP affiliate company + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,86 +22,87 @@ import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair - * - *

A value reference pair within a value list. Each value has a global unique id defining its + * + * A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ + @IRI("aas:ValueReferencePair") public class DefaultValueReferencePair implements ValueReferencePair { - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") - protected Reference valueId; - - public DefaultValueReferencePair() {} - - @Override - public String toString() { - return "DefaultValueReferencePair{" - + "value='" - + value - + "'," - + "valueId='" - + valueId - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.value, this.valueId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueReferencePair other = (DefaultValueReferencePair) obj; - return Objects.equals(this.value, other.value) && Objects.equals(this.valueId, other.valueId); - } - } + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") + protected String value; - @Override - public String getValue() { - return value; - } + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") + protected Reference valueId; - @Override - public void setValue(String value) { - this.value = value; - } + public DefaultValueReferencePair() {} - @Override - public Reference getValueId() { - return valueId; - } + @Override + public int hashCode() { + return Objects.hash(this.value, + this.valueId); + } - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueReferencePair other = (DefaultValueReferencePair) obj; + return Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId); + } + } + + @Override + public String getValue() { + return value; + } - /** This builder class can be used to construct a DefaultValueReferencePair bean. */ - public static class Builder - extends ValueReferencePairBuilder { + @Override + public void setValue(String value) { + this.value = value; + } @Override - protected Builder getSelf() { - return this; + public Reference getValueId() { + return valueId; } @Override - protected DefaultValueReferencePair newBuildingInstance() { - return new DefaultValueReferencePair(); + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + public String toString() { + return String.format( + "DefaultValueReferencePair (" + "value=%s," + + "valueId=%s," + + ")", + this.value, this.valueId); + } + + /** + * This builder class can be used to construct a DefaultValueReferencePair bean. + */ + public static class Builder extends ValueReferencePairBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultValueReferencePair newBuildingInstance() { + return new DefaultValueReferencePair(); + } } - } } From 029dafee1d40f90595e4f687562ebd9485cd2727 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Thu, 28 May 2026 13:41:55 +0200 Subject: [PATCH 09/12] remove default aas env and adding the CustomDataSpecification again --- .../v3/model/CustomDataSpecification.java | 22 +++ ...ltAssetAdministrationShellEnvironment.java | 136 ------------------ 2 files changed, 22 insertions(+), 136 deletions(-) create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java delete mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java new file mode 100644 index 000000000..98b371179 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2026 SAP SE or an SAP affiliate company. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.eclipse.digitaltwin.aas4j.v3.model; + +/** + * This interface is needed to test the serialization/deserialization of a custom data specification + * content. See: https://github.com/eclipse-aas4j/aas4j/issues/196 + */ +public interface CustomDataSpecification extends DataSpecificationContent {} \ No newline at end of file diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java deleted file mode 100644 index cfafb56ed..000000000 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellEnvironment.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. - */ - -package org.eclipse.digitaltwin.aas4j.v3.model.impl; - -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment; -import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; -import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellEnvironmentBuilder; - -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Default implementation of package - * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellEnvironment - * - *

Container for the sets of different identifiables. - */ -@IRI("aas:AssetAdministrationShellEnvironment") -public class DefaultAssetAdministrationShellEnvironment - implements AssetAdministrationShellEnvironment { - - @IRI( - "https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/assetAdministrationShells") - protected List assetAdministrationShells = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/conceptDescriptions") - protected List conceptDescriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellEnvironment/submodels") - protected List submodels = new ArrayList<>(); - - public DefaultAssetAdministrationShellEnvironment() {} - - @Override - public String toString() { - return "DefaultAssetAdministrationShellEnvironment{" - + "assetAdministrationShells='" - + assetAdministrationShells - + "'," - + "conceptDescriptions='" - + conceptDescriptions - + "'," - + "submodels='" - + submodels - + "'," - + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(this.assetAdministrationShells, this.conceptDescriptions, this.submodels); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShellEnvironment other = - (DefaultAssetAdministrationShellEnvironment) obj; - return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) - && Objects.equals(this.conceptDescriptions, other.conceptDescriptions) - && Objects.equals(this.submodels, other.submodels); - } - } - - @Override - public List getAssetAdministrationShells() { - return assetAdministrationShells; - } - - @Override - public void setAssetAdministrationShells( - List assetAdministrationShells) { - this.assetAdministrationShells = assetAdministrationShells; - } - - @Override - public List getConceptDescriptions() { - return conceptDescriptions; - } - - @Override - public void setConceptDescriptions(List conceptDescriptions) { - this.conceptDescriptions = conceptDescriptions; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShellEnvironment bean. - */ - public static class Builder - extends AssetAdministrationShellEnvironmentBuilder< - DefaultAssetAdministrationShellEnvironment, Builder> { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShellEnvironment newBuildingInstance() { - return new DefaultAssetAdministrationShellEnvironment(); - } - } -} From ef988be0aa8e12d119549994c73fa40f9a031eb8 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Thu, 28 May 2026 13:43:55 +0200 Subject: [PATCH 10/12] reformat code --- .../aas4j/v3/model/AasSubmodelElements.java | 91 +++++----- .../aas4j/v3/model/AbstractLangString.java | 24 +-- .../v3/model/AdministrativeInformation.java | 24 +-- .../model/AnnotatedRelationshipElement.java | 12 +- .../v3/model/AssetAdministrationShell.java | 20 +-- .../AssetAdministrationShellDescriptor.java | 11 +- .../aas4j/v3/model/AssetInformation.java | 28 ++-- .../digitaltwin/aas4j/v3/model/AssetKind.java | 6 +- .../aas4j/v3/model/BaseOperationResult.java | 11 +- .../aas4j/v3/model/BasicEventElement.java | 40 ++--- .../digitaltwin/aas4j/v3/model/Blob.java | 16 +- .../aas4j/v3/model/Capability.java | 8 +- .../aas4j/v3/model/ConceptDescription.java | 12 +- .../v3/model/CustomDataSpecification.java | 3 +- .../aas4j/v3/model/DataElement.java | 18 +- .../v3/model/DataSpecificationContent.java | 8 +- .../v3/model/DataSpecificationIec61360.java | 56 +++---- .../aas4j/v3/model/DataTypeDefXsd.java | 156 +++++++++++------- .../aas4j/v3/model/DataTypeIec61360.java | 11 +- .../aas4j/v3/model/Descriptor.java | 15 +- .../digitaltwin/aas4j/v3/model/Direction.java | 6 +- .../v3/model/EmbeddedDataSpecification.java | 16 +- .../digitaltwin/aas4j/v3/model/Endpoint.java | 11 +- .../digitaltwin/aas4j/v3/model/Entity.java | 24 +-- .../aas4j/v3/model/EntityType.java | 6 +- .../aas4j/v3/model/Environment.java | 20 +-- .../aas4j/v3/model/EventElement.java | 8 +- .../aas4j/v3/model/EventPayload.java | 40 ++--- .../aas4j/v3/model/ExecutionState.java | 41 +++-- .../digitaltwin/aas4j/v3/model/Extension.java | 24 +-- .../digitaltwin/aas4j/v3/model/File.java | 16 +- .../aas4j/v3/model/HasDataSpecification.java | 24 +-- .../aas4j/v3/model/HasExtensions.java | 12 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 12 +- .../aas4j/v3/model/HasSemantics.java | 26 +-- .../aas4j/v3/model/Identifiable.java | 20 +-- .../digitaltwin/aas4j/v3/model/Key.java | 16 +- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 71 ++++---- .../aas4j/v3/model/LangString.java | 6 +- .../LangStringDefinitionTypeIec61360.java | 8 +- .../aas4j/v3/model/LangStringNameType.java | 8 +- .../LangStringPreferredNameTypeIec61360.java | 8 +- .../LangStringShortNameTypeIec61360.java | 8 +- .../aas4j/v3/model/LangStringTextType.java | 8 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 24 +-- .../digitaltwin/aas4j/v3/model/Message.java | 11 +- .../aas4j/v3/model/MessageType.java | 52 +++--- .../digitaltwin/aas4j/v3/model/ModelType.java | 106 +++++++----- .../aas4j/v3/model/ModellingKind.java | 6 +- .../aas4j/v3/model/MultiLanguageProperty.java | 16 +- .../digitaltwin/aas4j/v3/model/Operation.java | 20 +-- .../aas4j/v3/model/OperationHandle.java | 11 +- .../aas4j/v3/model/OperationRequest.java | 11 +- .../aas4j/v3/model/OperationResult.java | 11 +- .../aas4j/v3/model/OperationVariable.java | 12 +- .../aas4j/v3/model/PackageDescription.java | 11 +- .../digitaltwin/aas4j/v3/model/Property.java | 20 +-- .../aas4j/v3/model/ProtocolInformation.java | 11 +- .../aas4j/v3/model/Qualifiable.java | 16 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 28 ++-- .../aas4j/v3/model/QualifierKind.java | 6 +- .../digitaltwin/aas4j/v3/model/Range.java | 20 +-- .../digitaltwin/aas4j/v3/model/Referable.java | 28 ++-- .../digitaltwin/aas4j/v3/model/Reference.java | 20 +-- .../aas4j/v3/model/ReferenceElement.java | 12 +- .../aas4j/v3/model/ReferenceTypes.java | 6 +- .../aas4j/v3/model/RelationshipElement.java | 18 +- .../digitaltwin/aas4j/v3/model/Resource.java | 16 +- .../digitaltwin/aas4j/v3/model/Result.java | 13 +- .../v3/model/SecurityAttributeObject.java | 11 +- .../aas4j/v3/model/SecurityTypeEnum.java | 26 +-- .../aas4j/v3/model/SpecificAssetId.java | 20 +-- .../aas4j/v3/model/StateOfEvent.java | 6 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 12 +- .../aas4j/v3/model/SubmodelDescriptor.java | 11 +- .../aas4j/v3/model/SubmodelElement.java | 22 +-- .../v3/model/SubmodelElementAttributes.java | 11 +- .../v3/model/SubmodelElementCollection.java | 12 +- .../aas4j/v3/model/SubmodelElementList.java | 28 ++-- .../digitaltwin/aas4j/v3/model/ValueList.java | 12 +- .../aas4j/v3/model/ValueReferencePair.java | 16 +- .../aas4j/v3/model/annotations/IRI.java | 8 +- .../v3/model/annotations/KnownSubtypes.java | 8 +- .../v3/model/builder/AbstractBuilder.java | 6 +- .../AdministrativeInformationBuilder.java | 20 +-- .../AnnotatedRelationshipElementBuilder.java | 46 +++--- .../AssetAdministrationShellBuilder.java | 40 ++--- ...tAdministrationShellDescriptorBuilder.java | 44 ++--- .../builder/AssetInformationBuilder.java | 20 +-- .../builder/BaseOperationResultBuilder.java | 16 +- .../builder/BasicEventElementBuilder.java | 54 +++--- .../aas4j/v3/model/builder/BlobBuilder.java | 40 ++--- .../aas4j/v3/model/builder/Builder.java | 6 +- .../v3/model/builder/CapabilityBuilder.java | 36 ++-- .../builder/ConceptDescriptionBuilder.java | 36 ++-- .../CustomDataSpecificationBuilder.java | 3 +- .../DataSpecificationIec61360Builder.java | 38 ++--- .../v3/model/builder/DescriptorBuilder.java | 18 +- .../EmbeddedDataSpecificationBuilder.java | 12 +- .../v3/model/builder/EndpointBuilder.java | 10 +- .../aas4j/v3/model/builder/EntityBuilder.java | 48 +++--- .../v3/model/builder/EnvironmentBuilder.java | 18 +- .../v3/model/builder/EventPayloadBuilder.java | 22 +-- .../v3/model/builder/ExtendableBuilder.java | 6 +- .../v3/model/builder/ExtensionBuilder.java | 22 +-- .../aas4j/v3/model/builder/FileBuilder.java | 40 ++--- .../aas4j/v3/model/builder/KeyBuilder.java | 10 +- ...ngStringDefinitionTypeIec61360Builder.java | 12 +- .../builder/LangStringNameTypeBuilder.java | 12 +- ...tringPreferredNameTypeIec61360Builder.java | 12 +- ...angStringShortNameTypeIec61360Builder.java | 12 +- .../builder/LangStringTextTypeBuilder.java | 12 +- .../v3/model/builder/LevelTypeBuilder.java | 14 +- .../v3/model/builder/MessageBuilder.java | 16 +- .../builder/MultiLanguagePropertyBuilder.java | 44 ++--- .../v3/model/builder/OperationBuilder.java | 48 +++--- .../model/builder/OperationHandleBuilder.java | 10 +- .../builder/OperationRequestBuilder.java | 18 +- .../model/builder/OperationResultBuilder.java | 16 +- .../builder/OperationVariableBuilder.java | 10 +- .../builder/PackageDescriptionBuilder.java | 14 +- .../v3/model/builder/PropertyBuilder.java | 42 ++--- .../builder/ProtocolInformationBuilder.java | 26 +-- .../v3/model/builder/QualifierBuilder.java | 22 +-- .../aas4j/v3/model/builder/RangeBuilder.java | 42 ++--- .../v3/model/builder/ReferenceBuilder.java | 14 +- .../builder/ReferenceElementBuilder.java | 40 ++--- .../builder/RelationshipElementBuilder.java | 42 ++--- .../v3/model/builder/ResourceBuilder.java | 10 +- .../aas4j/v3/model/builder/ResultBuilder.java | 10 +- .../SecurityAttributeObjectBuilder.java | 14 +- .../builder/SecurityTypeEnumBuilder.java | 3 +- .../model/builder/SpecificAssetIdBuilder.java | 20 +-- .../v3/model/builder/SubmodelBuilder.java | 46 +++--- .../builder/SubmodelDescriptorBuilder.java | 36 ++-- .../SubmodelElementAttributesBuilder.java | 40 ++--- .../SubmodelElementCollectionBuilder.java | 42 ++--- .../builder/SubmodelElementListBuilder.java | 50 +++--- .../v3/model/builder/ValueListBuilder.java | 10 +- .../builder/ValueReferencePairBuilder.java | 12 +- .../DefaultAdministrativeInformation.java | 39 ++--- .../DefaultAnnotatedRelationshipElement.java | 61 +++---- .../impl/DefaultAssetAdministrationShell.java | 61 +++---- ...ultAssetAdministrationShellDescriptor.java | 79 ++++----- .../model/impl/DefaultAssetInformation.java | 41 ++--- .../impl/DefaultBaseOperationResult.java | 27 +-- .../model/impl/DefaultBasicEventElement.java | 97 +++++------ .../aas4j/v3/model/impl/DefaultBlob.java | 59 +++---- .../v3/model/impl/DefaultCapability.java | 47 +++--- .../model/impl/DefaultConceptDescription.java | 49 +++--- .../impl/DefaultCustomDataSpecification.java | 63 +++---- .../DefaultDataSpecificationIec61360.java | 85 +++++----- .../v3/model/impl/DefaultDescriptor.java | 29 ++-- .../DefaultEmbeddedDataSpecification.java | 23 +-- .../aas4j/v3/model/impl/DefaultEndpoint.java | 23 +-- .../aas4j/v3/model/impl/DefaultEntity.java | 71 ++++---- .../v3/model/impl/DefaultEnvironment.java | 29 ++-- .../v3/model/impl/DefaultEventPayload.java | 61 +++---- .../aas4j/v3/model/impl/DefaultExtension.java | 43 ++--- .../aas4j/v3/model/impl/DefaultFile.java | 59 +++---- .../aas4j/v3/model/impl/DefaultKey.java | 23 +-- ...faultLangStringDefinitionTypeIec61360.java | 19 ++- .../model/impl/DefaultLangStringNameType.java | 19 ++- ...ltLangStringPreferredNameTypeIec61360.java | 19 ++- ...efaultLangStringShortNameTypeIec61360.java | 19 ++- .../model/impl/DefaultLangStringTextType.java | 19 ++- .../aas4j/v3/model/impl/DefaultLevelType.java | 35 ++-- .../aas4j/v3/model/impl/DefaultMessage.java | 41 ++--- .../impl/DefaultMultiLanguageProperty.java | 59 +++---- .../aas4j/v3/model/impl/DefaultOperation.java | 65 ++++---- .../v3/model/impl/DefaultOperationHandle.java | 17 +- .../model/impl/DefaultOperationRequest.java | 29 ++-- .../v3/model/impl/DefaultOperationResult.java | 23 +-- .../model/impl/DefaultOperationVariable.java | 17 +- .../model/impl/DefaultPackageDescription.java | 23 +-- .../aas4j/v3/model/impl/DefaultProperty.java | 65 ++++---- .../impl/DefaultProtocolInformation.java | 55 +++--- .../aas4j/v3/model/impl/DefaultQualifier.java | 49 +++--- .../aas4j/v3/model/impl/DefaultRange.java | 65 ++++---- .../aas4j/v3/model/impl/DefaultReference.java | 82 +++++---- .../model/impl/DefaultReferenceElement.java | 53 +++--- .../impl/DefaultRelationshipElement.java | 59 +++---- .../aas4j/v3/model/impl/DefaultResource.java | 23 +-- .../aas4j/v3/model/impl/DefaultResult.java | 17 +- .../impl/DefaultSecurityAttributeObject.java | 29 ++-- .../model/impl/DefaultSecurityTypeEnum.java | 65 ++++---- .../v3/model/impl/DefaultSpecificAssetId.java | 37 +++-- .../aas4j/v3/model/impl/DefaultSubmodel.java | 65 ++++---- .../model/impl/DefaultSubmodelDescriptor.java | 59 +++---- .../DefaultSubmodelElementAttributes.java | 53 +++--- .../DefaultSubmodelElementCollection.java | 53 +++--- .../impl/DefaultSubmodelElementList.java | 77 ++++----- .../aas4j/v3/model/impl/DefaultValueList.java | 17 +- .../model/impl/DefaultValueReferencePair.java | 23 +-- 194 files changed, 2848 insertions(+), 2670 deletions(-) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index 15425fdd0..c99ded6fa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,88 +25,105 @@ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Blob") BLOB, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Capability") CAPABILITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/DataElement") DATA_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Entity") ENTITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/EventElement") EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/File") FILE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Operation") OPERATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Property") PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Range") RANGE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/ReferenceElement") REFERENCE_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElement") SUBMODEL_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementList") SUBMODEL_ELEMENT_LIST; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index 52fd7fd57..9ee914137 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,17 +24,17 @@ * Strings with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringTextType.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringTextType.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) }) public interface AbstractLangString { /** * Language tag conforming to BCP 47 - * + *

* More information under https://admin-shell.io/aas/3/0/AbstractLangString/language * * @return Returns the String for the property language. @@ -44,7 +44,7 @@ public interface AbstractLangString { /** * Language tag conforming to BCP 47 - * + *

* More information under https://admin-shell.io/aas/3/0/AbstractLangString/language * * @param language desired value for the property language. @@ -53,7 +53,7 @@ public interface AbstractLangString { /** * Text in the 'language' - * + *

* More information under https://admin-shell.io/aas/3/0/AbstractLangString/text * * @return Returns the String for the property text. @@ -63,7 +63,7 @@ public interface AbstractLangString { /** * Text in the 'language' - * + *

* More information under https://admin-shell.io/aas/3/0/AbstractLangString/text * * @param text desired value for the property text. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 25e8457fd..0d7b6cb8a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * Administrative meta-information for an element like version information. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) + @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) }) public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version * * @return Returns the String for the property version. @@ -41,7 +41,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version * * @param version desired value for the property version. @@ -50,7 +50,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision * * @return Returns the String for the property revision. @@ -60,7 +60,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision * * @param revision desired value for the property revision. @@ -69,7 +69,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator * * @return Returns the Reference for the property creator. @@ -79,7 +79,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator * * @param creator desired value for the property creator. @@ -88,7 +88,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Identifier of the template that guided the creation of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId * * @return Returns the String for the property templateId. @@ -98,7 +98,7 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Identifier of the template that guided the creation of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId * * @param templateId desired value for the property templateId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index 987cc7a15..b2cb55ae7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,14 +27,14 @@ * data elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) }) public interface AnnotatedRelationshipElement extends RelationshipElement { /** * A data element that represents an annotation that holds for the relationship between the two * elements - * + *

* More information under https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations * * @return Returns the List of DataElements for the property annotations. @@ -45,7 +45,7 @@ public interface AnnotatedRelationshipElement extends RelationshipElement { /** * A data element that represents an annotation that holds for the relationship between the two * elements - * + *

* More information under https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations * * @param annotations desired value for the property annotations. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index 2b51a7a67..fe1416200 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * An asset administration shell. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) + @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) }) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { /** * The reference to the AAS the AAS was derived from. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom * * @return Returns the Reference for the property derivedFrom. @@ -42,7 +42,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * The reference to the AAS the AAS was derived from. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom * * @param derivedFrom desired value for the property derivedFrom. @@ -51,7 +51,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * Meta-information about the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation * * @return Returns the AssetInformation for the property assetInformation. @@ -61,7 +61,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * Meta-information about the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation * * @param assetInformation desired value for the property assetInformation. @@ -70,7 +70,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels * * @return Returns the List of References for the property submodels. @@ -80,7 +80,7 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels * * @param submodels desired value for the property submodels. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index 67aedfbf9..a83366f34 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,9 +23,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) + @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) }) public interface AssetAdministrationShellDescriptor extends Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 61ce8f421..aaa5d07c6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,13 +27,13 @@ * defined. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetInformation.class) + @KnownSubtypes.Type(value = DefaultAssetInformation.class) }) public interface AssetInformation { /** * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind * * @return Returns the AssetKind for the property assetKind. @@ -43,7 +43,7 @@ public interface AssetInformation { /** * Denotes whether the Asset is of kind 'Type' or 'Instance'. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind * * @param assetKind desired value for the property assetKind. @@ -52,7 +52,7 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId * * @return Returns the String for the property globalAssetId. @@ -62,7 +62,7 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. @@ -72,7 +72,7 @@ public interface AssetInformation { /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. @@ -83,7 +83,7 @@ public interface AssetInformation { /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. @@ -93,7 +93,7 @@ public interface AssetInformation { /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset * under consideration as identified by 'globalAssetId'. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType * * @return Returns the String for the property assetType. @@ -104,7 +104,7 @@ public interface AssetInformation { /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset * under consideration as identified by 'globalAssetId'. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType * * @param assetType desired value for the property assetType. @@ -113,7 +113,7 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail * * @return Returns the Resource for the property defaultThumbnail. @@ -123,7 +123,7 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail * * @param defaultThumbnail desired value for the property defaultThumbnail. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 4ab977420..09a491db5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java index 0da07e1a0..43253aa50 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,9 +22,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBaseOperationResult.class) + @KnownSubtypes.Type(value = DefaultBaseOperationResult.class) }) public interface BaseOperationResult extends Result { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index b4544ceef..817f1835f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,14 +25,14 @@ * A basic event element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBasicEventElement.class) + @KnownSubtypes.Type(value = DefaultBasicEventElement.class) }) public interface BasicEventElement extends EventElement { /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed * * @return Returns the Reference for the property observed. @@ -43,7 +43,7 @@ public interface BasicEventElement extends EventElement { /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed * * @param observed desired value for the property observed. @@ -52,7 +52,7 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction * * @return Returns the Direction for the property direction. @@ -62,7 +62,7 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction * * @param direction desired value for the property direction. @@ -71,7 +71,7 @@ public interface BasicEventElement extends EventElement { /** * State of event. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/state * * @return Returns the StateOfEvent for the property state. @@ -81,7 +81,7 @@ public interface BasicEventElement extends EventElement { /** * State of event. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/state * * @param state desired value for the property state. @@ -91,7 +91,7 @@ public interface BasicEventElement extends EventElement { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic * * @return Returns the String for the property messageTopic. @@ -102,7 +102,7 @@ public interface BasicEventElement extends EventElement { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic * * @param messageTopic desired value for the property messageTopic. @@ -113,7 +113,7 @@ public interface BasicEventElement extends EventElement { * Information, which outer message infrastructure shall handle messages for the 'EventElement'. * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker * * @return Returns the Reference for the property messageBroker. @@ -125,7 +125,7 @@ public interface BasicEventElement extends EventElement { * Information, which outer message infrastructure shall handle messages for the 'EventElement'. * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker * * @param messageBroker desired value for the property messageBroker. @@ -134,7 +134,7 @@ public interface BasicEventElement extends EventElement { /** * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate * * @return Returns the String for the property lastUpdate. @@ -144,7 +144,7 @@ public interface BasicEventElement extends EventElement { /** * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate * * @param lastUpdate desired value for the property lastUpdate. @@ -154,7 +154,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction, reports on the maximum frequency, the software entity behind the respective * Referable can handle input events. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval * * @return Returns the String for the property minInterval. @@ -165,7 +165,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction, reports on the maximum frequency, the software entity behind the respective * Referable can handle input events. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval * * @param minInterval desired value for the property minInterval. @@ -174,7 +174,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval * * @return Returns the String for the property maxInterval. @@ -184,7 +184,7 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. - * + *

* More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval * * @param maxInterval desired value for the property maxInterval. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index 1edb58bed..ba0979549 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * value attribute. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBlob.class) + @KnownSubtypes.Type(value = DefaultBlob.class) }) public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. - * + *

* More information under https://admin-shell.io/aas/3/0/Blob/value * * @return Returns the byte[] for the property value. @@ -42,7 +42,7 @@ public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. - * + *

* More information under https://admin-shell.io/aas/3/0/Blob/value * * @param value desired value for the property value. @@ -51,7 +51,7 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. - * + *

* More information under https://admin-shell.io/aas/3/0/Blob/contentType * * @return Returns the String for the property contentType. @@ -61,7 +61,7 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. - * + *

* More information under https://admin-shell.io/aas/3/0/Blob/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 0dc242c2f..97911472c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ * achieve a certain effect in the physical or virtual world. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultCapability.class) + @KnownSubtypes.Type(value = DefaultCapability.class) }) public interface Capability extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 724d31fed..0288fe3e2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,13 +27,13 @@ * a concept description. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultConceptDescription.class) + @KnownSubtypes.Type(value = DefaultConceptDescription.class) }) public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. - * + *

* More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf * * @return Returns the List of References for the property isCaseOf. @@ -43,7 +43,7 @@ public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. - * + *

* More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf * * @param isCaseOfs desired value for the property isCaseOf. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java index 98b371179..e004b1803 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java @@ -19,4 +19,5 @@ * This interface is needed to test the serialization/deserialization of a custom data specification * content. See: https://github.com/eclipse-aas4j/aas4j/issues/196 */ -public interface CustomDataSpecification extends DataSpecificationContent {} \ No newline at end of file +public interface CustomDataSpecification extends DataSpecificationContent { +} \ No newline at end of file diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index fe56cb02e..947fee649 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,12 +23,12 @@ * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) public interface DataElement extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 7fd9aaeec..830c99164 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ * and meta information about the template itself. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class) + @KnownSubtypes.Type(value = DataSpecificationIec61360.class) }) public interface DataSpecificationContent { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index 182a70102..c5876acc0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,13 +27,13 @@ * lists conformant to IEC 61360. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) + @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) }) public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Preferred name - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName * * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredName. @@ -43,7 +43,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Preferred name - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName * * @param preferredNames desired value for the property preferredName. @@ -52,7 +52,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Short name - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName * * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortName. @@ -62,7 +62,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Short name - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName * * @param shortNames desired value for the property shortName. @@ -71,7 +71,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unit - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit * * @return Returns the String for the property unit. @@ -81,7 +81,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unit - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit * * @param unit desired value for the property unit. @@ -90,7 +90,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId * * @return Returns the Reference for the property unitId. @@ -100,7 +100,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId * * @param unitId desired value for the property unitId. @@ -109,7 +109,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Source of definition - * + *

* More information under * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition * @@ -120,7 +120,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Source of definition - * + *

* More information under * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition * @@ -130,7 +130,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol * * @return Returns the String for the property symbol. @@ -140,7 +140,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol * * @param symbol desired value for the property symbol. @@ -149,7 +149,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType * * @return Returns the DataTypeIec61360 for the property dataType. @@ -159,7 +159,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType * * @param dataType desired value for the property dataType. @@ -168,7 +168,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition * * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definition. @@ -178,7 +178,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition * * @param definitions desired value for the property definition. @@ -187,7 +187,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value Format - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat * * @return Returns the String for the property valueFormat. @@ -197,7 +197,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value Format - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat * * @param valueFormat desired value for the property valueFormat. @@ -206,7 +206,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList * * @return Returns the ValueList for the property valueList. @@ -216,7 +216,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList * * @param valueList desired value for the property valueList. @@ -225,7 +225,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value * * @return Returns the String for the property value. @@ -235,7 +235,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value * * @param value desired value for the property value. @@ -244,7 +244,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType * * @return Returns the LevelType for the property levelType. @@ -254,7 +254,7 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. - * + *

* More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType * * @param levelType desired value for the property levelType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index bf328a198..26b7237ec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,153 +25,183 @@ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/AnyUri") ANY_URI, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Base64Binary") BASE64BINARY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Boolean") BOOLEAN, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Byte") BYTE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Date") DATE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/DateTime") DATE_TIME, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Decimal") DECIMAL, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double") DOUBLE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Duration") DURATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Float") FLOAT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GDay") GDAY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonth") GMONTH, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonthDay") GMONTH_DAY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYear") GYEAR, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYearMonth") GYEAR_MONTH, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/HexBinary") HEX_BINARY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Int") INT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Integer") INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Long") LONG, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NegativeInteger") NEGATIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonNegativeInteger") NON_NEGATIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonPositiveInteger") NON_POSITIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/PositiveInteger") POSITIVE_INTEGER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Short") SHORT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/String") STRING, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Time") TIME, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedByte") UNSIGNED_BYTE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedInt") UNSIGNED_INT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedLong") UNSIGNED_LONG, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedShort") UNSIGNED_SHORT; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 704b1929b..c465ffb1d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,8 +19,9 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** -*/ +/** + * + */ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index 5611270ec..2663909ae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,11 +23,12 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDescriptor.class), - @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), - @KnownSubtypes.Type(value = SubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultDescriptor.class), + @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), + @KnownSubtypes.Type(value = SubmodelDescriptor.class) }) public interface Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index 5b8d0a575..27917e8d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 48c3a2ccb..4b1087f43 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * Embed the content of a data specification. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) + @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) }) public interface EmbeddedDataSpecification { /** * Reference to the data specification - * + *

* More information under https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification * * @return Returns the Reference for the property dataSpecification. @@ -41,7 +41,7 @@ public interface EmbeddedDataSpecification { /** * Reference to the data specification - * + *

* More information under https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification * * @param dataSpecification desired value for the property dataSpecification. @@ -50,7 +50,7 @@ public interface EmbeddedDataSpecification { /** * Actual content of the data specification - * + *

* More information under * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent * @@ -61,7 +61,7 @@ public interface EmbeddedDataSpecification { /** * Actual content of the data specification - * + *

* More information under * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index 8d5db6a4f..7470a3a62 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,9 +22,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEndpoint.class) + @KnownSubtypes.Type(value = DefaultEndpoint.class) }) public interface Endpoint { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index c29c453e2..dedfdc117 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,14 +26,14 @@ * An entity is a submodel element that is used to model entities. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEntity.class) + @KnownSubtypes.Type(value = DefaultEntity.class) }) public interface Entity extends SubmodelElement { /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/statements * * @return Returns the List of SubmodelElements for the property statements. @@ -44,7 +44,7 @@ public interface Entity extends SubmodelElement { /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/statements * * @param statements desired value for the property statements. @@ -53,7 +53,7 @@ public interface Entity extends SubmodelElement { /** * Describes whether the entity is a co-managed entity or a self-managed entity. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/entityType * * @return Returns the EntityType for the property entityType. @@ -63,7 +63,7 @@ public interface Entity extends SubmodelElement { /** * Describes whether the entity is a co-managed entity or a self-managed entity. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/entityType * * @param entityType desired value for the property entityType. @@ -72,7 +72,7 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId * * @return Returns the String for the property globalAssetId. @@ -82,7 +82,7 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. @@ -92,7 +92,7 @@ public interface Entity extends SubmodelElement { /** * Reference to a specific asset ID representing a supplementary identifier of the asset represented * by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. @@ -103,7 +103,7 @@ public interface Entity extends SubmodelElement { /** * Reference to a specific asset ID representing a supplementary identifier of the asset represented * by the Asset Administration Shell. - * + *

* More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 31441465f..0dd80a7a4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index e41524972..e4ea1dec7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * Container for the sets of different identifiables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEnvironment.class) + @KnownSubtypes.Type(value = DefaultEnvironment.class) }) public interface Environment { /** * Asset administration shell - * + *

* More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells * * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. @@ -42,7 +42,7 @@ public interface Environment { /** * Asset administration shell - * + *

* More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells * * @param assetAdministrationShells desired value for the property assetAdministrationShells. @@ -51,7 +51,7 @@ public interface Environment { /** * Submodel - * + *

* More information under https://admin-shell.io/aas/3/0/Environment/submodels * * @return Returns the List of Submodels for the property submodels. @@ -61,7 +61,7 @@ public interface Environment { /** * Submodel - * + *

* More information under https://admin-shell.io/aas/3/0/Environment/submodels * * @param submodels desired value for the property submodels. @@ -70,7 +70,7 @@ public interface Environment { /** * Concept description - * + *

* More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions * * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. @@ -80,7 +80,7 @@ public interface Environment { /** * Concept description - * + *

* More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions * * @param conceptDescriptions desired value for the property conceptDescriptions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index c8756c97e..aee143f0b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +23,7 @@ * An event element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = BasicEventElement.class) + @KnownSubtypes.Type(value = BasicEventElement.class) }) public interface EventElement extends SubmodelElement { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index 42720b37c..ff95bd0bc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,14 +25,14 @@ * Defines the necessary information of an event instance sent out or received. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEventPayload.class) + @KnownSubtypes.Type(value = DefaultEventPayload.class) }) public interface EventPayload { /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/source * * @return Returns the Reference for the property source. @@ -43,7 +43,7 @@ public interface EventPayload { /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/source * * @param source desired value for the property source. @@ -52,7 +52,7 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId * * @return Returns the Reference for the property sourceSemanticId. @@ -62,7 +62,7 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId * * @param sourceSemanticId desired value for the property sourceSemanticId. @@ -71,7 +71,7 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference * * @return Returns the Reference for the property observableReference. @@ -81,7 +81,7 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference * * @param observableReference desired value for the property observableReference. @@ -90,7 +90,7 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId * * @return Returns the Reference for the property observableSemanticId. @@ -100,7 +100,7 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId * * @param observableSemanticId desired value for the property observableSemanticId. @@ -110,7 +110,7 @@ public interface EventPayload { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/topic * * @return Returns the String for the property topic. @@ -121,7 +121,7 @@ public interface EventPayload { /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/topic * * @param topic desired value for the property topic. @@ -130,7 +130,7 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId * * @return Returns the Reference for the property subjectId. @@ -140,7 +140,7 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId * * @param subjectId desired value for the property subjectId. @@ -149,7 +149,7 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp * * @return Returns the String for the property timeStamp. @@ -159,7 +159,7 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp * * @param timeStamp desired value for the property timeStamp. @@ -168,7 +168,7 @@ public interface EventPayload { /** * Event specific payload. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/payload * * @return Returns the byte[] for the property payload. @@ -178,7 +178,7 @@ public interface EventPayload { /** * Event specific payload. - * + *

* More information under https://admin-shell.io/aas/3/0/EventPayload/payload * * @param payload desired value for the property payload. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index d184636fc..51ca92575 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,38 +19,45 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** -*/ +/** + * + */ @IRI("aas:ExecutionState") public enum ExecutionState { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Canceled") CANCELED, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Completed") COMPLETED, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Failed") FAILED, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Initiated") INITIATED, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Running") RUNNING, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Timeout") TIMEOUT; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index c3c5f2659..887143cd0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * Single extension of an element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultExtension.class) + @KnownSubtypes.Type(value = DefaultExtension.class) }) public interface Extension extends HasSemantics { /** * Name of the extension. - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/name * * @return Returns the String for the property name. @@ -42,7 +42,7 @@ public interface Extension extends HasSemantics { /** * Name of the extension. - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/name * * @param name desired value for the property name. @@ -51,7 +51,7 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -61,7 +61,7 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/valueType * * @param valueType desired value for the property valueType. @@ -70,7 +70,7 @@ public interface Extension extends HasSemantics { /** * Value of the extension - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/value * * @return Returns the String for the property value. @@ -80,7 +80,7 @@ public interface Extension extends HasSemantics { /** * Value of the extension - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/value * * @param value desired value for the property value. @@ -89,7 +89,7 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/refersTo * * @return Returns the List of References for the property refersTo. @@ -99,7 +99,7 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. - * + *

* More information under https://admin-shell.io/aas/3/0/Extension/refersTo * * @param refersTos desired value for the property refersTo. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index ed40d2d1e..6e250ae88 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * A File is a data element that represents an address to a file (a locator). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultFile.class) + @KnownSubtypes.Type(value = DefaultFile.class) }) public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/0/File/value * * @return Returns the String for the property value. @@ -41,7 +41,7 @@ public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/0/File/value * * @param value desired value for the property value. @@ -50,7 +50,7 @@ public interface File extends DataElement { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/0/File/contentType * * @return Returns the String for the property contentType. @@ -60,7 +60,7 @@ public interface File extends DataElement { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/0/File/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index a6c7711e8..2e1850ac8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,30 +25,30 @@ * Element that can be extended by using data specification templates. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasDataSpecification { /** * Embedded data specification. - * + *

* More information under * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications * * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. + * embeddedDataSpecifications. */ @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") List getEmbeddedDataSpecifications(); /** * Embedded data specification. - * + *

* More information under * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications * diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 761b5baca..520da0103 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * Element that can be extended by proprietary extensions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Referable.class) + @KnownSubtypes.Type(value = Referable.class) }) public interface HasExtensions { /** * An extension of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions * * @return Returns the List of Extensions for the property extensions. @@ -41,7 +41,7 @@ public interface HasExtensions { /** * An extension of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions * * @param extensions desired value for the property extensions. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index a8e19c0cd..f80b78076 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,13 +24,13 @@ * An element with a kind is an element that can either represent a template or an instance. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasKind { /** * Kind of the element: either type or instance. - * + *

* More information under https://admin-shell.io/aas/3/0/HasKind/kind * * @return Returns the ModellingKind for the property kind. @@ -40,7 +40,7 @@ public interface HasKind { /** * Kind of the element: either type or instance. - * + *

* More information under https://admin-shell.io/aas/3/0/HasKind/kind * * @param kind desired value for the property kind. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index 8b83f9e7d..539cc88bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,19 +25,19 @@ * Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { /** * Identifier of the semantic definition of the element. It is called semantic ID of the element or * also main semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId * * @return Returns the Reference for the property semanticId. @@ -48,7 +48,7 @@ public interface HasSemantics { /** * Identifier of the semantic definition of the element. It is called semantic ID of the element or * also main semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId * * @param semanticId desired value for the property semanticId. @@ -58,7 +58,7 @@ public interface HasSemantics { /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds * * @return Returns the List of References for the property supplementalSemanticIds. @@ -69,7 +69,7 @@ public interface HasSemantics { /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds * * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index f878c8cbb..488f68e0e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,15 +24,15 @@ * An element that has a globally unique identifier. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. - * + *

* More information under https://admin-shell.io/aas/3/0/Identifiable/administration * * @return Returns the AdministrativeInformation for the property administration. @@ -42,7 +42,7 @@ public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. - * + *

* More information under https://admin-shell.io/aas/3/0/Identifiable/administration * * @param administration desired value for the property administration. @@ -51,7 +51,7 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Identifiable/id * * @return Returns the String for the property id. @@ -61,7 +61,7 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Identifiable/id * * @param id desired value for the property id. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index f91b08a96..d0dd32eb2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * A key is a reference to an element by its ID. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultKey.class) + @KnownSubtypes.Type(value = DefaultKey.class) }) public interface Key { /** * Denotes which kind of entity is referenced. - * + *

* More information under https://admin-shell.io/aas/3/0/Key/type * * @return Returns the KeyTypes for the property type. @@ -41,7 +41,7 @@ public interface Key { /** * Denotes which kind of entity is referenced. - * + *

* More information under https://admin-shell.io/aas/3/0/Key/type * * @param type desired value for the property type. @@ -50,7 +50,7 @@ public interface Key { /** * The key value, for example an IRDI or an URI - * + *

* More information under https://admin-shell.io/aas/3/0/Key/value * * @return Returns the String for the property value. @@ -60,7 +60,7 @@ public interface Key { /** * The key value, for example an IRDI or an URI - * + *

* More information under https://admin-shell.io/aas/3/0/Key/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index a83148985..b7ac85d9c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,33 +25,39 @@ @IRI("aas:KeyTypes") public enum KeyTypes { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Blob") BLOB, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Capability") CAPABILITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ConceptDescription") CONCEPT_DESCRIPTION, @@ -61,8 +67,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/0/KeyTypes/DataElement") DATA_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Entity") ENTITY, @@ -72,8 +79,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/0/KeyTypes/EventElement") EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/File") FILE, @@ -83,8 +91,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/0/KeyTypes/FragmentReference") FRAGMENT_REFERENCE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference") GLOBAL_REFERENCE, @@ -100,13 +109,15 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/0/KeyTypes/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Operation") OPERATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Property") PROPERTY, @@ -116,8 +127,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Range") RANGE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Referable") REFERABLE, @@ -133,8 +145,9 @@ public enum KeyTypes { @IRI("https://admin-shell.io/aas/3/0/KeyTypes/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Submodel") SUBMODEL, diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index e9c52a8bb..f6c2b21ca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index fb49700bd..7c8fed233 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ * String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) }) public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 1fe4604ef..93c4ff81c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ * String with length 128 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringNameType.class) + @KnownSubtypes.Type(value = DefaultLangStringNameType.class) }) public interface LangStringNameType extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index e03afda72..9f94dc713 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ * String with length 255 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) }) public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index 98fcdaf14..9d8027636 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ * String with length 18 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) + @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) }) public interface LangStringShortNameTypeIec61360 extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index 2ff44c065..c1696aa49 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ * String with length 1023 maximum and minimum 1 characters and with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringTextType.class) + @KnownSubtypes.Type(value = DefaultLangStringTextType.class) }) public interface LangStringTextType extends AbstractLangString { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index 4f3931d96..d0d22d953 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * MAX. True means that the value is available, false means the value is not available. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLevelType.class) + @KnownSubtypes.Type(value = DefaultLevelType.class) }) public interface LevelType { /** * Minimum of the value - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/min * * @return Returns the boolean for the property min. @@ -42,7 +42,7 @@ public interface LevelType { /** * Minimum of the value - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/min * * @param min desired value for the property min. @@ -51,7 +51,7 @@ public interface LevelType { /** * Nominal value (value as designated) - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/nom * * @return Returns the boolean for the property nom. @@ -61,7 +61,7 @@ public interface LevelType { /** * Nominal value (value as designated) - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/nom * * @param nom desired value for the property nom. @@ -70,7 +70,7 @@ public interface LevelType { /** * Value as typically present - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/typ * * @return Returns the boolean for the property typ. @@ -80,7 +80,7 @@ public interface LevelType { /** * Value as typically present - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/typ * * @param typ desired value for the property typ. @@ -89,7 +89,7 @@ public interface LevelType { /** * Maximum of the value - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/max * * @return Returns the boolean for the property max. @@ -99,7 +99,7 @@ public interface LevelType { /** * Maximum of the value - * + *

* More information under https://admin-shell.io/aas/3/0/LevelType/max * * @param max desired value for the property max. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index 6d0a29988..5c0f8c5ab 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,9 +22,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMessage.class) + @KnownSubtypes.Type(value = DefaultMessage.class) }) public interface Message { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java index 1a1df99e5..d9beb154b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -17,27 +17,39 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** */ +/** + * + */ @IRI("aas:MessageType") public enum MessageType { - /** */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") - ERROR, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") - EXCEPTION, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") - INFO, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") - UNDEFINED, - - /** */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") - WARNING; + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") + ERROR, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") + EXCEPTION, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") + INFO, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") + UNDEFINED, + + /** + * + */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") + WARNING; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index 575cbda96..d846b3dd3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,103 +19,123 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** -*/ +/** + * + */ @IRI("aas:ModelType") public enum ModelType { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/BasicEventElement") BASIC_EVENT_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Blob") BLOB, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Capability") CAPABILITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/ConceptDescription") CONCEPT_DESCRIPTION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Entity") ENTITY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/File") FILE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Operation") OPERATION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Property") PROPERTY, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Qualifier") QUALIFIER, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Range") RANGE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Reference") REFERENCE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/ReferenceElement") REFERENCE_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/RelationshipElement") RELATIONSHIP_ELEMENT, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/Submodel") SUBMODEL, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementList") SUBMODEL_ELEMENT_LIST; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 4fc98a180..920b726c2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 5058811c4..27709a010 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * A property is a data element that has a multi-language value. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) + @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) }) public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value * * @return Returns the List of LangStringTextTypes for the property value. @@ -42,7 +42,7 @@ public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value * * @param values desired value for the property value. @@ -51,7 +51,7 @@ public interface MultiLanguageProperty extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId * * @return Returns the Reference for the property valueId. @@ -61,7 +61,7 @@ public interface MultiLanguageProperty extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index 093835165..169fa277e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * An operation is a submodel element with input and output variables. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperation.class) + @KnownSubtypes.Type(value = DefaultOperation.class) }) public interface Operation extends SubmodelElement { /** * Input parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/0/Operation/inputVariables * * @return Returns the List of OperationVariables for the property inputVariables. @@ -42,7 +42,7 @@ public interface Operation extends SubmodelElement { /** * Input parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/0/Operation/inputVariables * * @param inputVariables desired value for the property inputVariables. @@ -51,7 +51,7 @@ public interface Operation extends SubmodelElement { /** * Output parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/0/Operation/outputVariables * * @return Returns the List of OperationVariables for the property outputVariables. @@ -61,7 +61,7 @@ public interface Operation extends SubmodelElement { /** * Output parameter of the operation. - * + *

* More information under https://admin-shell.io/aas/3/0/Operation/outputVariables * * @param outputVariables desired value for the property outputVariables. @@ -70,7 +70,7 @@ public interface Operation extends SubmodelElement { /** * Parameter that is input and output of the operation. - * + *

* More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables * * @return Returns the List of OperationVariables for the property inoutputVariables. @@ -80,7 +80,7 @@ public interface Operation extends SubmodelElement { /** * Parameter that is input and output of the operation. - * + *

* More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables * * @param inoutputVariables desired value for the property inoutputVariables. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index 60987eed4..f28ac0fb8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,9 +22,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationHandle.class) + @KnownSubtypes.Type(value = DefaultOperationHandle.class) }) public interface OperationHandle { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 6806b24a4..431ab02b7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,9 +23,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationRequest.class) + @KnownSubtypes.Type(value = DefaultOperationRequest.class) }) public interface OperationRequest { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index 7ba79ee45..a2da1bf9f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,9 +23,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationResult.class) + @KnownSubtypes.Type(value = DefaultOperationResult.class) }) public interface OperationResult { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index c61563481..c8ff6ae4d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * variable of an operation. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationVariable.class) + @KnownSubtypes.Type(value = DefaultOperationVariable.class) }) public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element - * + *

* More information under https://admin-shell.io/aas/3/0/OperationVariable/value * * @return Returns the SubmodelElement for the property value. @@ -42,7 +42,7 @@ public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element - * + *

* More information under https://admin-shell.io/aas/3/0/OperationVariable/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index 8360f4e62..251df7328 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,9 +23,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultPackageDescription.class) + @KnownSubtypes.Type(value = DefaultPackageDescription.class) }) public interface PackageDescription { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index 72fc83156..b79dab6fe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * A property is a data element that has a single value. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProperty.class) + @KnownSubtypes.Type(value = DefaultProperty.class) }) public interface Property extends DataElement { /** * Data type of the value - * + *

* More information under https://admin-shell.io/aas/3/0/Property/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -41,7 +41,7 @@ public interface Property extends DataElement { /** * Data type of the value - * + *

* More information under https://admin-shell.io/aas/3/0/Property/valueType * * @param valueType desired value for the property valueType. @@ -50,7 +50,7 @@ public interface Property extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/0/Property/value * * @return Returns the String for the property value. @@ -60,7 +60,7 @@ public interface Property extends DataElement { /** * The value of the property instance. - * + *

* More information under https://admin-shell.io/aas/3/0/Property/value * * @param value desired value for the property value. @@ -69,7 +69,7 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/0/Property/valueId * * @return Returns the Reference for the property valueId. @@ -79,7 +79,7 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/0/Property/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index 172ed35aa..500e0b50e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,9 +23,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProtocolInformation.class) + @KnownSubtypes.Type(value = DefaultProtocolInformation.class) }) public interface ProtocolInformation { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 2ee290d33..8cce0e81b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,15 +25,15 @@ * The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Qualifiable { /** * Additional qualification of a qualifiable element. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers * * @return Returns the List of Qualifiers for the property qualifiers. @@ -43,7 +43,7 @@ public interface Qualifiable { /** * Additional qualification of a qualifiable element. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers * * @param qualifiers desired value for the property qualifiers. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index fd3876c9d..9553d658b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * element. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultQualifier.class) + @KnownSubtypes.Type(value = DefaultQualifier.class) }) public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/kind * * @return Returns the QualifierKind for the property kind. @@ -42,7 +42,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/kind * * @param kind desired value for the property kind. @@ -51,7 +51,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/type * * @return Returns the String for the property type. @@ -61,7 +61,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/type * * @param type desired value for the property type. @@ -70,7 +70,7 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -80,7 +80,7 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/valueType * * @param valueType desired value for the property valueType. @@ -89,7 +89,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/value * * @return Returns the String for the property value. @@ -99,7 +99,7 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/value * * @param value desired value for the property value. @@ -108,7 +108,7 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/valueId * * @return Returns the Reference for the property valueId. @@ -118,7 +118,7 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. - * + *

* More information under https://admin-shell.io/aas/3/0/Qualifier/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index e9ac14084..17ddf64bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 9c9c60f51..81cc01dc5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * A range data element is a data element that defines a range with min and max. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRange.class) + @KnownSubtypes.Type(value = DefaultRange.class) }) public interface Range extends DataElement { /** * Data type of the min und max - * + *

* More information under https://admin-shell.io/aas/3/0/Range/valueType * * @return Returns the DataTypeDefXsd for the property valueType. @@ -41,7 +41,7 @@ public interface Range extends DataElement { /** * Data type of the min und max - * + *

* More information under https://admin-shell.io/aas/3/0/Range/valueType * * @param valueType desired value for the property valueType. @@ -50,7 +50,7 @@ public interface Range extends DataElement { /** * The minimum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/0/Range/min * * @return Returns the String for the property min. @@ -60,7 +60,7 @@ public interface Range extends DataElement { /** * The minimum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/0/Range/min * * @param min desired value for the property min. @@ -69,7 +69,7 @@ public interface Range extends DataElement { /** * The maximum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/0/Range/max * * @return Returns the String for the property max. @@ -79,7 +79,7 @@ public interface Range extends DataElement { /** * The maximum value of the range. - * + *

* More information under https://admin-shell.io/aas/3/0/Range/max * * @param max desired value for the property max. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index de8f7983e..3dd1c1551 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,16 +25,16 @@ * An element that is referable by its 'idShort'. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Identifiable.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/category * * @return Returns the String for the property category. @@ -45,7 +45,7 @@ public interface Referable extends HasExtensions { /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/category * * @param category desired value for the property category. @@ -55,7 +55,7 @@ public interface Referable extends HasExtensions { /** * In case of identifiables this attribute is a short name of the element. In case of referable this * ID is an identifying string of the element within its name space. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/idShort * * @return Returns the String for the property idShort. @@ -66,7 +66,7 @@ public interface Referable extends HasExtensions { /** * In case of identifiables this attribute is a short name of the element. In case of referable this * ID is an identifying string of the element within its name space. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/idShort * * @param idShort desired value for the property idShort. @@ -75,7 +75,7 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/displayName * * @return Returns the List of LangStringNameTypes for the property displayName. @@ -85,7 +85,7 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/displayName * * @param displayNames desired value for the property displayName. @@ -94,7 +94,7 @@ public interface Referable extends HasExtensions { /** * Description or comments on the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/description * * @return Returns the List of LangStringTextTypes for the property description. @@ -104,7 +104,7 @@ public interface Referable extends HasExtensions { /** * Description or comments on the element. - * + *

* More information under https://admin-shell.io/aas/3/0/Referable/description * * @param descriptions desired value for the property description. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index ee6ceffda..4b45eb96d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * Reference to either a model element of the same or another AAS or to an external entity. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReference.class) + @KnownSubtypes.Type(value = DefaultReference.class) }) public interface Reference { /** * Type of the reference. - * + *

* More information under https://admin-shell.io/aas/3/0/Reference/type * * @return Returns the ReferenceTypes for the property type. @@ -42,7 +42,7 @@ public interface Reference { /** * Type of the reference. - * + *

* More information under https://admin-shell.io/aas/3/0/Reference/type * * @param type desired value for the property type. @@ -51,7 +51,7 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * + *

* More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId * * @return Returns the Reference for the property referredSemanticId. @@ -61,7 +61,7 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - * + *

* More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId * * @param referredSemanticId desired value for the property referredSemanticId. @@ -70,7 +70,7 @@ public interface Reference { /** * Unique references in their name space. - * + *

* More information under https://admin-shell.io/aas/3/0/Reference/keys * * @return Returns the List of Keys for the property keys. @@ -80,7 +80,7 @@ public interface Reference { /** * Unique references in their name space. - * + *

* More information under https://admin-shell.io/aas/3/0/Reference/keys * * @param keys desired value for the property keys. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index 40a6de3a5..c73f32d3f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,14 +26,14 @@ * the same or another AAS or a reference to an external object or entity. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReferenceElement.class) + @KnownSubtypes.Type(value = DefaultReferenceElement.class) }) public interface ReferenceElement extends DataElement { /** * Global reference to an external object or entity or a logical reference to another element within * the same or another AAS (i.e. a model reference to a Referable). - * + *

* More information under https://admin-shell.io/aas/3/0/ReferenceElement/value * * @return Returns the Reference for the property value. @@ -44,7 +44,7 @@ public interface ReferenceElement extends DataElement { /** * Global reference to an external object or entity or a logical reference to another element within * the same or another AAS (i.e. a model reference to a Referable). - * + *

* More information under https://admin-shell.io/aas/3/0/ReferenceElement/value * * @param value desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index 54509783f..e71f33892 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 986c78aa2..912010fc0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,14 +26,14 @@ * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. - * + *

* More information under https://admin-shell.io/aas/3/0/RelationshipElement/first * * @return Returns the Reference for the property first. @@ -43,7 +43,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. - * + *

* More information under https://admin-shell.io/aas/3/0/RelationshipElement/first * * @param first desired value for the property first. @@ -52,7 +52,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. - * + *

* More information under https://admin-shell.io/aas/3/0/RelationshipElement/second * * @return Returns the Reference for the property second. @@ -62,7 +62,7 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. - * + *

* More information under https://admin-shell.io/aas/3/0/RelationshipElement/second * * @param second desired value for the property second. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 4534c1408..6ea79bd9c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * absolute or relative path */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResource.class) + @KnownSubtypes.Type(value = DefaultResource.class) }) public interface Resource { /** * Path and name of the resource (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/0/Resource/path * * @return Returns the String for the property path. @@ -42,7 +42,7 @@ public interface Resource { /** * Path and name of the resource (with file extension). - * + *

* More information under https://admin-shell.io/aas/3/0/Resource/path * * @param path desired value for the property path. @@ -51,7 +51,7 @@ public interface Resource { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/0/Resource/contentType * * @return Returns the String for the property contentType. @@ -61,7 +61,7 @@ public interface Resource { /** * Content type of the content of the file. - * + *

* More information under https://admin-shell.io/aas/3/0/Resource/contentType * * @param contentType desired value for the property contentType. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index ff1f97932..00501af2c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,10 +23,11 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResult.class), - @KnownSubtypes.Type(value = BaseOperationResult.class) + @KnownSubtypes.Type(value = DefaultResult.class), + @KnownSubtypes.Type(value = BaseOperationResult.class) }) public interface Result { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java index eada6211a..98cf650eb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,9 +22,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class) + @KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class) }) public interface SecurityAttributeObject { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java index 81dc1f0fd..47f03e268 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -19,23 +19,27 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** -*/ +/** + * + */ @IRI("aas:SecurityTypeEnum") public enum SecurityTypeEnum { - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/None") NONE, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/Rfc_Tlsa") RFC_TLSA, - /** - */ + /** + * + */ @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/W3c_Did") W3C_DID; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index c868e3e2b..862aa5c62 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,13 +25,13 @@ * A specific asset ID describes a generic supplementary identifying attribute of the asset. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) + @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) }) public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier - * + *

* More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name * * @return Returns the String for the property name. @@ -41,7 +41,7 @@ public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier - * + *

* More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name * * @param name desired value for the property name. @@ -50,7 +50,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. - * + *

* More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value * * @return Returns the String for the property value. @@ -60,7 +60,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. - * + *

* More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value * * @param value desired value for the property value. @@ -69,7 +69,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. - * + *

* More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId * * @return Returns the Reference for the property externalSubjectId. @@ -79,7 +79,7 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. - * + *

* More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId * * @param externalSubjectId desired value for the property externalSubjectId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index 3d9069b73..3e002723b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index 574f0e1d3..faa24f1c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * A submodel defines a specific aspect of the asset represented by the AAS. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodel.class) + @KnownSubtypes.Type(value = DefaultSubmodel.class) }) public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { /** * A submodel consists of zero or more submodel elements. - * + *

* More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements * * @return Returns the List of SubmodelElements for the property submodelElements. @@ -42,7 +42,7 @@ public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiabl /** * A submodel consists of zero or more submodel elements. - * + *

* More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements * * @param submodelElements desired value for the property submodelElements. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index 703609a1b..8c3e48ef6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,9 +23,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) }) public interface SubmodelDescriptor extends Descriptor { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index 870e2815e..8aa64ca0d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,14 +23,14 @@ * A submodel element is an element suitable for the description and differentiation of assets. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) public interface SubmodelElement extends Referable, HasDataSpecification, HasSemantics, Qualifiable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index b6b60236b..16894c966 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,9 +22,10 @@ /** -*/ + * + */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) }) public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index 2080567bd..11c289253 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,13 +27,13 @@ * named values. It has a fixed number of submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) }) public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value * * @return Returns the List of SubmodelElements for the property value. @@ -43,7 +43,7 @@ public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value * * @param values desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index 7e94212b4..82cdebec3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,14 +26,14 @@ * A submodel element list is an ordered list of submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) + @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) }) public interface SubmodelElementList extends SubmodelElement { /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant * * @return Returns the boolean for the property orderRelevant. @@ -44,7 +44,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant * * @param orderRelevant desired value for the property orderRelevant. @@ -53,7 +53,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Semantic ID the submodel elements contained in the list match to. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement * * @return Returns the Reference for the property semanticIdListElement. @@ -63,7 +63,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Semantic ID the submodel elements contained in the list match to. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement * * @param semanticIdListElement desired value for the property semanticIdListElement. @@ -72,7 +72,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The submodel element type of the submodel elements contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement * * @return Returns the AasSubmodelElements for the property typeValueListElement. @@ -82,7 +82,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The submodel element type of the submodel elements contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement * * @param typeValueListElement desired value for the property typeValueListElement. @@ -91,7 +91,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The value type of the submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement * * @return Returns the DataTypeDefXsd for the property valueTypeListElement. @@ -101,7 +101,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * The value type of the submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement * * @param valueTypeListElement desired value for the property valueTypeListElement. @@ -110,7 +110,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value * * @return Returns the List of SubmodelElements for the property value. @@ -120,7 +120,7 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. - * + *

* More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value * * @param values desired value for the property value. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 9313bc322..992199355 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * A set of value reference pairs. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueList.class) + @KnownSubtypes.Type(value = DefaultValueList.class) }) public interface ValueList { /** * A pair of a value together with its global unique id. - * + *

* More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs * * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. @@ -42,7 +42,7 @@ public interface ValueList { /** * A pair of a value together with its global unique id. - * + *

* More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs * * @param valueReferencePairs desired value for the property valueReferencePairs. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index 53d12d3bf..eec7b062a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,13 +26,13 @@ * semantic. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueReferencePair.class) + @KnownSubtypes.Type(value = DefaultValueReferencePair.class) }) public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. - * + *

* More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value * * @return Returns the String for the property value. @@ -42,7 +42,7 @@ public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. - * + *

* More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value * * @param value desired value for the property value. @@ -51,7 +51,7 @@ public interface ValueReferencePair { /** * Global unique id of the value. - * + *

* More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId * * @return Returns the Reference for the property valueId. @@ -61,7 +61,7 @@ public interface ValueReferencePair { /** * Global unique id of the value. - * + *

* More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId * * @param valueId desired value for the property valueId. diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 075f2353a..974a7e368 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ * This annotation stores the IRI under which a certain element of a model is defined. Expected * behaviour when de-referencing the value of this annotation is a definition and further * information about this element. - * + * * @return IRI defining an element */ public String[] value() default {}; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index 535f8e991..09c52e6df 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ * This element stores the known sub-types, e.g. implementing classes of an interface, or extending * classes of a class. Note that this list can never be expected to be complete, as custom * implementations will not be included. - * + * * @return List of known implementing subtypes */ public KnownSubtypes.Type[] value(); diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index 2090757dc..78f076216 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index f75faf333..c468d52fa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,11 +23,11 @@ public abstract class AdministrativeInformationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for version - * + * * @param version desired value to be set * @return Builder object with new value for version */ @@ -38,7 +38,7 @@ public B version(String version) { /** * This function allows setting a value for revision - * + * * @param revision desired value to be set * @return Builder object with new value for revision */ @@ -49,7 +49,7 @@ public B revision(String revision) { /** * This function allows setting a value for creator - * + * * @param creator desired value to be set * @return Builder object with new value for creator */ @@ -60,7 +60,7 @@ public B creator(Reference creator) { /** * This function allows setting a value for templateId - * + * * @param templateId desired value to be set * @return Builder object with new value for templateId */ @@ -71,7 +71,7 @@ public B templateId(String templateId) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -82,7 +82,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index daf076fb1..92a00d564 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,11 +28,11 @@ public abstract class AnnotatedRelationshipElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for annotations - * + * * @param annotations desired value to be set * @return Builder object with new value for annotations */ @@ -43,7 +43,7 @@ public B annotations(List annotations) { /** * This function allows adding a value to the List annotations - * + * * @param annotations desired value to be added * @return Builder object with new value for annotations */ @@ -54,7 +54,7 @@ public B annotations(DataElement annotations) { /** * This function allows setting a value for first - * + * * @param first desired value to be set * @return Builder object with new value for first */ @@ -65,7 +65,7 @@ public B first(Reference first) { /** * This function allows setting a value for second - * + * * @param second desired value to be set * @return Builder object with new value for second */ @@ -76,7 +76,7 @@ public B second(Reference second) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -87,7 +87,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -98,7 +98,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -109,7 +109,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -120,7 +120,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -131,7 +131,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -142,7 +142,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -153,7 +153,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -164,7 +164,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -175,7 +175,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -186,7 +186,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -197,7 +197,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -208,7 +208,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -219,7 +219,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -230,7 +230,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index e2820dc4c..d57e3f784 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,11 +28,11 @@ public abstract class AssetAdministrationShellBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for derivedFrom - * + * * @param derivedFrom desired value to be set * @return Builder object with new value for derivedFrom */ @@ -43,7 +43,7 @@ public B derivedFrom(Reference derivedFrom) { /** * This function allows setting a value for assetInformation - * + * * @param assetInformation desired value to be set * @return Builder object with new value for assetInformation */ @@ -54,7 +54,7 @@ public B assetInformation(AssetInformation assetInformation) { /** * This function allows setting a value for submodels - * + * * @param submodels desired value to be set * @return Builder object with new value for submodels */ @@ -65,7 +65,7 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels - * + * * @param submodels desired value to be added * @return Builder object with new value for submodels */ @@ -76,7 +76,7 @@ public B submodels(Reference submodels) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -87,7 +87,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -98,7 +98,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -109,7 +109,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -120,7 +120,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -131,7 +131,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -142,7 +142,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -153,7 +153,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -164,7 +164,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -175,7 +175,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -186,7 +186,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -197,7 +197,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index 10faa0151..10a91996f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,11 +29,11 @@ public abstract class AssetAdministrationShellDescriptorBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -44,7 +44,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for assetKind - * + * * @param assetKind desired value to be set * @return Builder object with new value for assetKind */ @@ -55,7 +55,7 @@ public B assetKind(AssetKind assetKind) { /** * This function allows setting a value for assetType - * + * * @param assetType desired value to be set * @return Builder object with new value for assetType */ @@ -66,7 +66,7 @@ public B assetType(String assetType) { /** * This function allows setting a value for endpoints - * + * * @param endpoints desired value to be set * @return Builder object with new value for endpoints */ @@ -77,7 +77,7 @@ public B endpoints(List endpoints) { /** * This function allows adding a value to the List endpoints - * + * * @param endpoints desired value to be added * @return Builder object with new value for endpoints */ @@ -88,7 +88,7 @@ public B endpoints(Endpoint endpoints) { /** * This function allows setting a value for globalAssetId - * + * * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ @@ -99,7 +99,7 @@ public B globalAssetId(String globalAssetId) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -110,7 +110,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -121,7 +121,7 @@ public B id(String id) { /** * This function allows setting a value for specificAssetIds - * + * * @param specificAssetIds desired value to be set * @return Builder object with new value for specificAssetIds */ @@ -132,7 +132,7 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds - * + * * @param specificAssetIds desired value to be added * @return Builder object with new value for specificAssetIds */ @@ -143,7 +143,7 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { /** * This function allows setting a value for submodelDescriptors - * + * * @param submodelDescriptors desired value to be set * @return Builder object with new value for submodelDescriptors */ @@ -154,7 +154,7 @@ public B submodelDescriptors(List submodelDescriptors) { /** * This function allows adding a value to the List submodelDescriptors - * + * * @param submodelDescriptors desired value to be added * @return Builder object with new value for submodelDescriptors */ @@ -165,7 +165,7 @@ public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -176,7 +176,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -187,7 +187,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -198,7 +198,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -209,7 +209,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -220,7 +220,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 974bbcae2..acbca62b6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,11 +24,11 @@ public abstract class AssetInformationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for assetKind - * + * * @param assetKind desired value to be set * @return Builder object with new value for assetKind */ @@ -39,7 +39,7 @@ public B assetKind(AssetKind assetKind) { /** * This function allows setting a value for globalAssetId - * + * * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ @@ -50,7 +50,7 @@ public B globalAssetId(String globalAssetId) { /** * This function allows setting a value for specificAssetIds - * + * * @param specificAssetIds desired value to be set * @return Builder object with new value for specificAssetIds */ @@ -61,7 +61,7 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds - * + * * @param specificAssetIds desired value to be added * @return Builder object with new value for specificAssetIds */ @@ -72,7 +72,7 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { /** * This function allows setting a value for assetType - * + * * @param assetType desired value to be set * @return Builder object with new value for assetType */ @@ -83,7 +83,7 @@ public B assetType(String assetType) { /** * This function allows setting a value for defaultThumbnail - * + * * @param defaultThumbnail desired value to be set * @return Builder object with new value for defaultThumbnail */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java index eea07026f..e311dd106 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,11 +23,11 @@ public abstract class BaseOperationResultBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for executionState - * + * * @param executionState desired value to be set * @return Builder object with new value for executionState */ @@ -38,7 +38,7 @@ public B executionState(ExecutionState executionState) { /** * This function allows setting a value for success - * + * * @param success desired value to be set * @return Builder object with new value for success */ @@ -49,7 +49,7 @@ public B success(boolean success) { /** * This function allows setting a value for messages - * + * * @param messages desired value to be set * @return Builder object with new value for messages */ @@ -60,7 +60,7 @@ public B messages(List messages) { /** * This function allows adding a value to the List messages - * + * * @param messages desired value to be added * @return Builder object with new value for messages */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index cec473db9..41f9ea8ef 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,11 +29,11 @@ public abstract class BasicEventElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for observed - * + * * @param observed desired value to be set * @return Builder object with new value for observed */ @@ -44,7 +44,7 @@ public B observed(Reference observed) { /** * This function allows setting a value for direction - * + * * @param direction desired value to be set * @return Builder object with new value for direction */ @@ -55,7 +55,7 @@ public B direction(Direction direction) { /** * This function allows setting a value for state - * + * * @param state desired value to be set * @return Builder object with new value for state */ @@ -66,7 +66,7 @@ public B state(StateOfEvent state) { /** * This function allows setting a value for messageTopic - * + * * @param messageTopic desired value to be set * @return Builder object with new value for messageTopic */ @@ -77,7 +77,7 @@ public B messageTopic(String messageTopic) { /** * This function allows setting a value for messageBroker - * + * * @param messageBroker desired value to be set * @return Builder object with new value for messageBroker */ @@ -88,7 +88,7 @@ public B messageBroker(Reference messageBroker) { /** * This function allows setting a value for lastUpdate - * + * * @param lastUpdate desired value to be set * @return Builder object with new value for lastUpdate */ @@ -99,7 +99,7 @@ public B lastUpdate(String lastUpdate) { /** * This function allows setting a value for minInterval - * + * * @param minInterval desired value to be set * @return Builder object with new value for minInterval */ @@ -110,7 +110,7 @@ public B minInterval(String minInterval) { /** * This function allows setting a value for maxInterval - * + * * @param maxInterval desired value to be set * @return Builder object with new value for maxInterval */ @@ -121,7 +121,7 @@ public B maxInterval(String maxInterval) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -132,7 +132,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -143,7 +143,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -154,7 +154,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -165,7 +165,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -176,7 +176,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -187,7 +187,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -198,7 +198,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -209,7 +209,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -220,7 +220,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -231,7 +231,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -242,7 +242,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -253,7 +253,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -264,7 +264,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -275,7 +275,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index 6ffa4a9e0..2fc3fc13c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,7 +30,7 @@ public abstract class BlobBuilder> e /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -41,7 +41,7 @@ public B value(byte[] value) { /** * This function allows setting a value for contentType - * + * * @param contentType desired value to be set * @return Builder object with new value for contentType */ @@ -52,7 +52,7 @@ public B contentType(String contentType) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -63,7 +63,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -74,7 +74,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -85,7 +85,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -96,7 +96,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -107,7 +107,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -118,7 +118,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -129,7 +129,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -140,7 +140,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -151,7 +151,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -162,7 +162,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -173,7 +173,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -184,7 +184,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -195,7 +195,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -206,7 +206,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index cdc11013e..89bd379fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index 295f35882..d55c011d1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,7 +30,7 @@ public abstract class CapabilityBuilder displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -74,7 +74,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -85,7 +85,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -96,7 +96,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -107,7 +107,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -118,7 +118,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -129,7 +129,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -140,7 +140,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -151,7 +151,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -162,7 +162,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -173,7 +173,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -184,7 +184,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 57919df59..f65bdffad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +27,11 @@ public abstract class ConceptDescriptionBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for isCaseOf - * + * * @param isCaseOfs desired value to be set * @return Builder object with new value for isCaseOf */ @@ -42,7 +42,7 @@ public B isCaseOf(List isCaseOfs) { /** * This function allows adding a value to the List isCaseOf - * + * * @param isCaseOf desired value to be added * @return Builder object with new value for isCaseOf */ @@ -53,7 +53,7 @@ public B isCaseOf(Reference isCaseOf) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -64,7 +64,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -75,7 +75,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -86,7 +86,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -97,7 +97,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -108,7 +108,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -119,7 +119,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -130,7 +130,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -141,7 +141,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -152,7 +152,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -163,7 +163,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -174,7 +174,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java index dc8ade1a1..d960cf2db 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java @@ -19,4 +19,5 @@ public abstract class CustomDataSpecificationBuilder< T extends CustomDataSpecification, B extends CustomDataSpecificationBuilder> - extends ExtendableBuilder {} + extends ExtendableBuilder { +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 361b5cb1b..bbe954f8a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,11 +28,11 @@ public abstract class DataSpecificationIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for preferredName - * + * * @param preferredNames desired value to be set * @return Builder object with new value for preferredName */ @@ -43,7 +43,7 @@ public B preferredName(List preferredNames) /** * This function allows adding a value to the List preferredName - * + * * @param preferredName desired value to be added * @return Builder object with new value for preferredName */ @@ -54,7 +54,7 @@ public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { /** * This function allows setting a value for shortName - * + * * @param shortNames desired value to be set * @return Builder object with new value for shortName */ @@ -65,7 +65,7 @@ public B shortName(List shortNames) { /** * This function allows adding a value to the List shortName - * + * * @param shortName desired value to be added * @return Builder object with new value for shortName */ @@ -76,7 +76,7 @@ public B shortName(LangStringShortNameTypeIec61360 shortName) { /** * This function allows setting a value for unit - * + * * @param unit desired value to be set * @return Builder object with new value for unit */ @@ -87,7 +87,7 @@ public B unit(String unit) { /** * This function allows setting a value for unitId - * + * * @param unitId desired value to be set * @return Builder object with new value for unitId */ @@ -98,7 +98,7 @@ public B unitId(Reference unitId) { /** * This function allows setting a value for sourceOfDefinition - * + * * @param sourceOfDefinition desired value to be set * @return Builder object with new value for sourceOfDefinition */ @@ -109,7 +109,7 @@ public B sourceOfDefinition(String sourceOfDefinition) { /** * This function allows setting a value for symbol - * + * * @param symbol desired value to be set * @return Builder object with new value for symbol */ @@ -120,7 +120,7 @@ public B symbol(String symbol) { /** * This function allows setting a value for dataType - * + * * @param dataType desired value to be set * @return Builder object with new value for dataType */ @@ -131,7 +131,7 @@ public B dataType(DataTypeIec61360 dataType) { /** * This function allows setting a value for definition - * + * * @param definitions desired value to be set * @return Builder object with new value for definition */ @@ -142,7 +142,7 @@ public B definition(List definitions) { /** * This function allows adding a value to the List definition - * + * * @param definition desired value to be added * @return Builder object with new value for definition */ @@ -153,7 +153,7 @@ public B definition(LangStringDefinitionTypeIec61360 definition) { /** * This function allows setting a value for valueFormat - * + * * @param valueFormat desired value to be set * @return Builder object with new value for valueFormat */ @@ -164,7 +164,7 @@ public B valueFormat(String valueFormat) { /** * This function allows setting a value for valueList - * + * * @param valueList desired value to be set * @return Builder object with new value for valueList */ @@ -175,7 +175,7 @@ public B valueList(ValueList valueList) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -186,7 +186,7 @@ public B value(String value) { /** * This function allows setting a value for levelType - * + * * @param levelType desired value to be set * @return Builder object with new value for levelType */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java index 1e7b4c9c0..5353d76a7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ public abstract class DescriptorBuilder descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -49,7 +49,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -60,7 +60,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -71,7 +71,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -82,7 +82,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index f92f45fe4..0c17c2dcd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,11 +22,11 @@ public abstract class EmbeddedDataSpecificationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for dataSpecification - * + * * @param dataSpecification desired value to be set * @return Builder object with new value for dataSpecification */ @@ -37,7 +37,7 @@ public B dataSpecification(Reference dataSpecification) { /** * This function allows setting a value for dataSpecificationContent - * + * * @param dataSpecificationContent desired value to be set * @return Builder object with new value for dataSpecificationContent */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java index a1040c6b4..f25c7d5e9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ public abstract class EndpointBuilder statements) { /** * This function allows adding a value to the List statements - * + * * @param statements desired value to be added * @return Builder object with new value for statements */ @@ -55,7 +55,7 @@ public B statements(SubmodelElement statements) { /** * This function allows setting a value for entityType - * + * * @param entityType desired value to be set * @return Builder object with new value for entityType */ @@ -66,7 +66,7 @@ public B entityType(EntityType entityType) { /** * This function allows setting a value for globalAssetId - * + * * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ @@ -77,7 +77,7 @@ public B globalAssetId(String globalAssetId) { /** * This function allows setting a value for specificAssetIds - * + * * @param specificAssetIds desired value to be set * @return Builder object with new value for specificAssetIds */ @@ -88,7 +88,7 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds - * + * * @param specificAssetIds desired value to be added * @return Builder object with new value for specificAssetIds */ @@ -99,7 +99,7 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -110,7 +110,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -121,7 +121,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -132,7 +132,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -143,7 +143,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -154,7 +154,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -165,7 +165,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -176,7 +176,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -187,7 +187,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -198,7 +198,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -209,7 +209,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -220,7 +220,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -231,7 +231,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -242,7 +242,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -253,7 +253,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 60288ffc2..09c650bf5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ public abstract class EnvironmentBuilder assetAdministr /** * This function allows adding a value to the List assetAdministrationShells - * + * * @param assetAdministrationShells desired value to be added * @return Builder object with new value for assetAdministrationShells */ @@ -49,7 +49,7 @@ public B assetAdministrationShells(AssetAdministrationShell assetAdministrationS /** * This function allows setting a value for submodels - * + * * @param submodels desired value to be set * @return Builder object with new value for submodels */ @@ -60,7 +60,7 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels - * + * * @param submodels desired value to be added * @return Builder object with new value for submodels */ @@ -71,7 +71,7 @@ public B submodels(Submodel submodels) { /** * This function allows setting a value for conceptDescriptions - * + * * @param conceptDescriptions desired value to be set * @return Builder object with new value for conceptDescriptions */ @@ -82,7 +82,7 @@ public B conceptDescriptions(List conceptDescriptions) { /** * This function allows adding a value to the List conceptDescriptions - * + * * @param conceptDescriptions desired value to be added * @return Builder object with new value for conceptDescriptions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index b3e691032..3a9a42a1a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ public abstract class EventPayloadBuilder refersTos) { /** * This function allows adding a value to the List refersTo - * + * * @param refersTo desired value to be added * @return Builder object with new value for refersTo */ @@ -81,7 +81,7 @@ public B refersTo(Reference refersTo) { /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -92,7 +92,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -103,7 +103,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index ad8c008dd..b6436f475 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,7 +30,7 @@ public abstract class FileBuilder> e /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -41,7 +41,7 @@ public B value(String value) { /** * This function allows setting a value for contentType - * + * * @param contentType desired value to be set * @return Builder object with new value for contentType */ @@ -52,7 +52,7 @@ public B contentType(String contentType) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -63,7 +63,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -74,7 +74,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -85,7 +85,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -96,7 +96,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -107,7 +107,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -118,7 +118,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -129,7 +129,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -140,7 +140,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -151,7 +151,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -162,7 +162,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -173,7 +173,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -184,7 +184,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -195,7 +195,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -206,7 +206,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index 131e0ee5d..8865ccebe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ public abstract class KeyBuilder> exte /** * This function allows setting a value for type - * + * * @param type desired value to be set * @return Builder object with new value for type */ @@ -35,7 +35,7 @@ public B type(KeyTypes type) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index b6d43e28e..00bb7ffc5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +20,11 @@ public abstract class LangStringDefinitionTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index 2df57ae9c..2f0c186a0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +20,11 @@ public abstract class LangStringNameTypeBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index 685de3530..fd8f04176 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +20,11 @@ public abstract class LangStringPreferredNameTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 2b37bb3d5..daab87861 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +20,11 @@ public abstract class LangStringShortNameTypeIec61360Builder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index 55e927566..ef1fe6aa0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +20,11 @@ public abstract class LangStringTextTypeBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for language - * + * * @param language desired value to be set * @return Builder object with new value for language */ @@ -35,7 +35,7 @@ public B language(String language) { /** * This function allows setting a value for text - * + * * @param text desired value to be set * @return Builder object with new value for text */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index 47bc13d6c..ffd70d5c2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +23,7 @@ public abstract class LevelTypeBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param values desired value to be set * @return Builder object with new value for value */ @@ -42,7 +42,7 @@ public B value(List values) { /** * This function allows adding a value to the List value - * + * * @param value desired value to be added * @return Builder object with new value for value */ @@ -53,7 +53,7 @@ public B value(LangStringTextType value) { /** * This function allows setting a value for valueId - * + * * @param valueId desired value to be set * @return Builder object with new value for valueId */ @@ -64,7 +64,7 @@ public B valueId(Reference valueId) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -75,7 +75,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -86,7 +86,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -97,7 +97,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -108,7 +108,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -119,7 +119,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -130,7 +130,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -141,7 +141,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -152,7 +152,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -163,7 +163,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -174,7 +174,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -185,7 +185,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -196,7 +196,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -207,7 +207,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -218,7 +218,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index c8270827f..32756b661 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +31,7 @@ public abstract class OperationBuilder inputVariables) { /** * This function allows adding a value to the List inputVariables - * + * * @param inputVariables desired value to be added * @return Builder object with new value for inputVariables */ @@ -53,7 +53,7 @@ public B inputVariables(OperationVariable inputVariables) { /** * This function allows setting a value for outputVariables - * + * * @param outputVariables desired value to be set * @return Builder object with new value for outputVariables */ @@ -64,7 +64,7 @@ public B outputVariables(List outputVariables) { /** * This function allows adding a value to the List outputVariables - * + * * @param outputVariables desired value to be added * @return Builder object with new value for outputVariables */ @@ -75,7 +75,7 @@ public B outputVariables(OperationVariable outputVariables) { /** * This function allows setting a value for inoutputVariables - * + * * @param inoutputVariables desired value to be set * @return Builder object with new value for inoutputVariables */ @@ -86,7 +86,7 @@ public B inoutputVariables(List inoutputVariables) { /** * This function allows adding a value to the List inoutputVariables - * + * * @param inoutputVariables desired value to be added * @return Builder object with new value for inoutputVariables */ @@ -97,7 +97,7 @@ public B inoutputVariables(OperationVariable inoutputVariables) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -108,7 +108,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -119,7 +119,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -130,7 +130,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -141,7 +141,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -152,7 +152,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -163,7 +163,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -174,7 +174,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -185,7 +185,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -196,7 +196,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -207,7 +207,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -218,7 +218,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -229,7 +229,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -240,7 +240,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -251,7 +251,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java index 1307ed2b5..8f49b779a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -20,11 +20,11 @@ public abstract class OperationHandleBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for handleId - * + * * @param handleId desired value to be set * @return Builder object with new value for handleId */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java index 54e5652af..cb041e0d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,11 +22,11 @@ public abstract class OperationRequestBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for inoutputArguments - * + * * @param inoutputArguments desired value to be set * @return Builder object with new value for inoutputArguments */ @@ -37,7 +37,7 @@ public B inoutputArguments(List inoutputArguments) { /** * This function allows adding a value to the List inoutputArguments - * + * * @param inoutputArguments desired value to be added * @return Builder object with new value for inoutputArguments */ @@ -48,7 +48,7 @@ public B inoutputArguments(OperationVariable inoutputArguments) { /** * This function allows setting a value for inputArguments - * + * * @param inputArguments desired value to be set * @return Builder object with new value for inputArguments */ @@ -59,7 +59,7 @@ public B inputArguments(List inputArguments) { /** * This function allows adding a value to the List inputArguments - * + * * @param inputArguments desired value to be added * @return Builder object with new value for inputArguments */ @@ -70,7 +70,7 @@ public B inputArguments(OperationVariable inputArguments) { /** * This function allows setting a value for clientTimeoutDuration - * + * * @param clientTimeoutDuration desired value to be set * @return Builder object with new value for clientTimeoutDuration */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java index edf5b944f..1ccba4497 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,11 +22,11 @@ public abstract class OperationResultBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for inoutputArguments - * + * * @param inoutputArguments desired value to be set * @return Builder object with new value for inoutputArguments */ @@ -37,7 +37,7 @@ public B inoutputArguments(List inoutputArguments) { /** * This function allows adding a value to the List inoutputArguments - * + * * @param inoutputArguments desired value to be added * @return Builder object with new value for inoutputArguments */ @@ -48,7 +48,7 @@ public B inoutputArguments(OperationVariable inoutputArguments) { /** * This function allows setting a value for outputArguments - * + * * @param outputArguments desired value to be set * @return Builder object with new value for outputArguments */ @@ -59,7 +59,7 @@ public B outputArguments(List outputArguments) { /** * This function allows adding a value to the List outputArguments - * + * * @param outputArguments desired value to be added * @return Builder object with new value for outputArguments */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index cddb89a47..572e6f073 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,11 +21,11 @@ public abstract class OperationVariableBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java index 6fd672705..d5f06244d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,11 +21,11 @@ public abstract class PackageDescriptionBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for items - * + * * @param items desired value to be set * @return Builder object with new value for items */ @@ -36,7 +36,7 @@ public B items(List items) { /** * This function allows adding a value to the List items - * + * * @param items desired value to be added * @return Builder object with new value for items */ @@ -47,7 +47,7 @@ public B items(String items) { /** * This function allows setting a value for packageId - * + * * @param packageId desired value to be set * @return Builder object with new value for packageId */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index a18ec2874..ee8f60ffb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +31,7 @@ public abstract class PropertyBuilder displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -108,7 +108,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -119,7 +119,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -130,7 +130,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -141,7 +141,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -152,7 +152,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -163,7 +163,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -174,7 +174,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -185,7 +185,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -196,7 +196,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -207,7 +207,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -218,7 +218,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index c94565ef6..73e724b43 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,11 +22,11 @@ public abstract class ProtocolInformationBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for href - * + * * @param href desired value to be set * @return Builder object with new value for href */ @@ -37,7 +37,7 @@ public B href(String href) { /** * This function allows setting a value for endpointProtocol - * + * * @param endpointProtocol desired value to be set * @return Builder object with new value for endpointProtocol */ @@ -48,7 +48,7 @@ public B endpointProtocol(String endpointProtocol) { /** * This function allows setting a value for endpointProtocolVersion - * + * * @param endpointProtocolVersions desired value to be set * @return Builder object with new value for endpointProtocolVersion */ @@ -59,7 +59,7 @@ public B endpointProtocolVersion(List endpointProtocolVersions) { /** * This function allows adding a value to the List endpointProtocolVersion - * + * * @param endpointProtocolVersion desired value to be added * @return Builder object with new value for endpointProtocolVersion */ @@ -70,7 +70,7 @@ public B endpointProtocolVersion(String endpointProtocolVersion) { /** * This function allows setting a value for subprotocol - * + * * @param subprotocol desired value to be set * @return Builder object with new value for subprotocol */ @@ -81,7 +81,7 @@ public B subprotocol(String subprotocol) { /** * This function allows setting a value for subprotocolBody - * + * * @param subprotocolBody desired value to be set * @return Builder object with new value for subprotocolBody */ @@ -92,7 +92,7 @@ public B subprotocolBody(String subprotocolBody) { /** * This function allows setting a value for subprotocolBodyEncoding - * + * * @param subprotocolBodyEncoding desired value to be set * @return Builder object with new value for subprotocolBodyEncoding */ @@ -103,7 +103,7 @@ public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { /** * This function allows setting a value for securityAttributes - * + * * @param securityAttributes desired value to be set * @return Builder object with new value for securityAttributes */ @@ -114,7 +114,7 @@ public B securityAttributes(List securityAttributes) { /** * This function allows adding a value to the List securityAttributes - * + * * @param securityAttributes desired value to be added * @return Builder object with new value for securityAttributes */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index 24427c217..672e29b5f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ public abstract class QualifierBuilder supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index acb29b566..b5d52a57a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -31,7 +31,7 @@ public abstract class RangeBuilder /** * This function allows setting a value for valueType - * + * * @param valueType desired value to be set * @return Builder object with new value for valueType */ @@ -42,7 +42,7 @@ public B valueType(DataTypeDefXsd valueType) { /** * This function allows setting a value for min - * + * * @param min desired value to be set * @return Builder object with new value for min */ @@ -53,7 +53,7 @@ public B min(String min) { /** * This function allows setting a value for max - * + * * @param max desired value to be set * @return Builder object with new value for max */ @@ -64,7 +64,7 @@ public B max(String max) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -75,7 +75,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -86,7 +86,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -97,7 +97,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -108,7 +108,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -119,7 +119,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -130,7 +130,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -141,7 +141,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -152,7 +152,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -163,7 +163,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -174,7 +174,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -185,7 +185,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -196,7 +196,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -207,7 +207,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -218,7 +218,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index afec436d6..d82a5f802 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +26,7 @@ public abstract class ReferenceBuilder keys) { /** * This function allows adding a value to the List keys - * + * * @param keys desired value to be added * @return Builder object with new value for keys */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index 5987c0ca2..ca054ebbe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +27,11 @@ public abstract class ReferenceElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -42,7 +42,7 @@ public B value(Reference value) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -53,7 +53,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -64,7 +64,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -75,7 +75,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -86,7 +86,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -97,7 +97,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -108,7 +108,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -119,7 +119,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -130,7 +130,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -141,7 +141,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -152,7 +152,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -163,7 +163,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -174,7 +174,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -185,7 +185,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -196,7 +196,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index 9d9785150..0a1b06d0b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +27,11 @@ public abstract class RelationshipElementBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for first - * + * * @param first desired value to be set * @return Builder object with new value for first */ @@ -42,7 +42,7 @@ public B first(Reference first) { /** * This function allows setting a value for second - * + * * @param second desired value to be set * @return Builder object with new value for second */ @@ -53,7 +53,7 @@ public B second(Reference second) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -64,7 +64,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -75,7 +75,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -86,7 +86,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -97,7 +97,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -108,7 +108,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -119,7 +119,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -130,7 +130,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -141,7 +141,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -152,7 +152,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -163,7 +163,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -174,7 +174,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -185,7 +185,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -196,7 +196,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -207,7 +207,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index 9fd9b7d69..feaf63888 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -23,7 +23,7 @@ public abstract class ResourceBuilder messages) { /** * This function allows adding a value to the List messages - * + * * @param messages desired value to be added * @return Builder object with new value for messages */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java index 5277d7b60..f4f5f9463 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,11 +21,11 @@ public abstract class SecurityAttributeObjectBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for type - * + * * @param type desired value to be set * @return Builder object with new value for type */ @@ -36,7 +36,7 @@ public B type(SecurityTypeEnum type) { /** * This function allows setting a value for key - * + * * @param key desired value to be set * @return Builder object with new value for key */ @@ -47,7 +47,7 @@ public B key(String key) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java index 4779ec05c..e1db1a99e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java @@ -19,4 +19,5 @@ public abstract class SecurityTypeEnumBuilder< T extends SecurityTypeEnum, B extends SecurityTypeEnumBuilder> - extends ExtendableBuilder {} + extends ExtendableBuilder { +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index 508446f79..5ce0d317d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -22,11 +22,11 @@ public abstract class SpecificAssetIdBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for name - * + * * @param name desired value to be set * @return Builder object with new value for name */ @@ -37,7 +37,7 @@ public B name(String name) { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -48,7 +48,7 @@ public B value(String value) { /** * This function allows setting a value for externalSubjectId - * + * * @param externalSubjectId desired value to be set * @return Builder object with new value for externalSubjectId */ @@ -59,7 +59,7 @@ public B externalSubjectId(Reference externalSubjectId) { /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -70,7 +70,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -81,7 +81,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index 1b6e7d099..198038dd2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +33,7 @@ public abstract class SubmodelBuilder submodelElements) { /** * This function allows adding a value to the List submodelElements - * + * * @param submodelElements desired value to be added * @return Builder object with new value for submodelElements */ @@ -55,7 +55,7 @@ public B submodelElements(SubmodelElement submodelElements) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -66,7 +66,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -77,7 +77,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -88,7 +88,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -99,7 +99,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -110,7 +110,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -121,7 +121,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ @@ -132,7 +132,7 @@ public B qualifiers(Qualifier qualifiers) { /** * This function allows setting a value for kind - * + * * @param kind desired value to be set * @return Builder object with new value for kind */ @@ -143,7 +143,7 @@ public B kind(ModellingKind kind) { /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -154,7 +154,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -165,7 +165,7 @@ public B id(String id) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -176,7 +176,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -187,7 +187,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -198,7 +198,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -209,7 +209,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -220,7 +220,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -231,7 +231,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -242,7 +242,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java index 0897fbd3e..24116b5b6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,11 +27,11 @@ public abstract class SubmodelDescriptorBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for administration - * + * * @param administration desired value to be set * @return Builder object with new value for administration */ @@ -42,7 +42,7 @@ public B administration(AdministrativeInformation administration) { /** * This function allows setting a value for endpoints - * + * * @param endpoints desired value to be set * @return Builder object with new value for endpoints */ @@ -53,7 +53,7 @@ public B endpoints(List endpoints) { /** * This function allows adding a value to the List endpoints - * + * * @param endpoints desired value to be added * @return Builder object with new value for endpoints */ @@ -64,7 +64,7 @@ public B endpoints(Endpoint endpoints) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -75,7 +75,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for id - * + * * @param id desired value to be set * @return Builder object with new value for id */ @@ -86,7 +86,7 @@ public B id(String id) { /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -97,7 +97,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticId - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticId */ @@ -108,7 +108,7 @@ public B supplementalSemanticId(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticId - * + * * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticId */ @@ -119,7 +119,7 @@ public B supplementalSemanticId(Reference supplementalSemanticId) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -130,7 +130,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -141,7 +141,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -152,7 +152,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -163,7 +163,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -174,7 +174,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index cb8efe402..8e862bf93 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,11 +28,11 @@ public abstract class SubmodelElementAttributesBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for kind - * + * * @param kind desired value to be set * @return Builder object with new value for kind */ @@ -43,7 +43,7 @@ public B kind(ModellingKind kind) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -54,7 +54,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -65,7 +65,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -76,7 +76,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -87,7 +87,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -98,7 +98,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -109,7 +109,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -120,7 +120,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -131,7 +131,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -142,7 +142,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -153,7 +153,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -164,7 +164,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -175,7 +175,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -186,7 +186,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -197,7 +197,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index c6745c9de..75cc658df 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,11 +28,11 @@ public abstract class SubmodelElementCollectionBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param values desired value to be set * @return Builder object with new value for value */ @@ -43,7 +43,7 @@ public B value(List values) { /** * This function allows adding a value to the List value - * + * * @param value desired value to be added * @return Builder object with new value for value */ @@ -54,7 +54,7 @@ public B value(SubmodelElement value) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -65,7 +65,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -76,7 +76,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -87,7 +87,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -98,7 +98,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -109,7 +109,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -120,7 +120,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -131,7 +131,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -142,7 +142,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -153,7 +153,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -164,7 +164,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -175,7 +175,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -186,7 +186,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -197,7 +197,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -208,7 +208,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index 57a2d612c..17096590d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -30,11 +30,11 @@ public abstract class SubmodelElementListBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for orderRelevant - * + * * @param orderRelevant desired value to be set * @return Builder object with new value for orderRelevant */ @@ -45,7 +45,7 @@ public B orderRelevant(boolean orderRelevant) { /** * This function allows setting a value for semanticIdListElement - * + * * @param semanticIdListElement desired value to be set * @return Builder object with new value for semanticIdListElement */ @@ -56,7 +56,7 @@ public B semanticIdListElement(Reference semanticIdListElement) { /** * This function allows setting a value for typeValueListElement - * + * * @param typeValueListElement desired value to be set * @return Builder object with new value for typeValueListElement */ @@ -67,7 +67,7 @@ public B typeValueListElement(AasSubmodelElements typeValueListElement) { /** * This function allows setting a value for valueTypeListElement - * + * * @param valueTypeListElement desired value to be set * @return Builder object with new value for valueTypeListElement */ @@ -78,7 +78,7 @@ public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { /** * This function allows setting a value for value - * + * * @param values desired value to be set * @return Builder object with new value for value */ @@ -89,7 +89,7 @@ public B value(List values) { /** * This function allows adding a value to the List value - * + * * @param value desired value to be added * @return Builder object with new value for value */ @@ -100,7 +100,7 @@ public B value(SubmodelElement value) { /** * This function allows setting a value for category - * + * * @param category desired value to be set * @return Builder object with new value for category */ @@ -111,7 +111,7 @@ public B category(String category) { /** * This function allows setting a value for idShort - * + * * @param idShort desired value to be set * @return Builder object with new value for idShort */ @@ -122,7 +122,7 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName - * + * * @param displayNames desired value to be set * @return Builder object with new value for displayName */ @@ -133,7 +133,7 @@ public B displayName(List displayNames) { /** * This function allows adding a value to the List displayName - * + * * @param displayName desired value to be added * @return Builder object with new value for displayName */ @@ -144,7 +144,7 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description - * + * * @param descriptions desired value to be set * @return Builder object with new value for description */ @@ -155,7 +155,7 @@ public B description(List descriptions) { /** * This function allows adding a value to the List description - * + * * @param description desired value to be added * @return Builder object with new value for description */ @@ -166,7 +166,7 @@ public B description(LangStringTextType description) { /** * This function allows setting a value for extensions - * + * * @param extensions desired value to be set * @return Builder object with new value for extensions */ @@ -177,7 +177,7 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions - * + * * @param extensions desired value to be added * @return Builder object with new value for extensions */ @@ -188,7 +188,7 @@ public B extensions(Extension extensions) { /** * This function allows setting a value for embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be set * @return Builder object with new value for embeddedDataSpecifications */ @@ -199,7 +199,7 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications - * + * * @param embeddedDataSpecifications desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ @@ -210,7 +210,7 @@ public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecif /** * This function allows setting a value for semanticId - * + * * @param semanticId desired value to be set * @return Builder object with new value for semanticId */ @@ -221,7 +221,7 @@ public B semanticId(Reference semanticId) { /** * This function allows setting a value for supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be set * @return Builder object with new value for supplementalSemanticIds */ @@ -232,7 +232,7 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds - * + * * @param supplementalSemanticIds desired value to be added * @return Builder object with new value for supplementalSemanticIds */ @@ -243,7 +243,7 @@ public B supplementalSemanticIds(Reference supplementalSemanticIds) { /** * This function allows setting a value for qualifiers - * + * * @param qualifiers desired value to be set * @return Builder object with new value for qualifiers */ @@ -254,7 +254,7 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers - * + * * @param qualifiers desired value to be added * @return Builder object with new value for qualifiers */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index 5050fe0a7..e1174b190 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ public abstract class ValueListBuilder valueReferencePairs) { /** * This function allows adding a value to the List valueReferencePairs - * + * * @param valueReferencePairs desired value to be added * @return Builder object with new value for valueReferencePairs */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index 8dfb746d3..02c0985e4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -21,11 +21,11 @@ public abstract class ValueReferencePairBuilder> - extends ExtendableBuilder { + extends ExtendableBuilder { /** * This function allows setting a value for value - * + * * @param value desired value to be set * @return Builder object with new value for value */ @@ -36,7 +36,7 @@ public B value(String value) { /** * This function allows setting a value for valueId - * + * * @param valueId desired value to be set * @return Builder object with new value for valueId */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index e13dbd853..6f073c779 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +29,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation - * + *

* Administrative meta-information for an element like version information. */ @@ -51,15 +51,16 @@ public class DefaultAdministrativeInformation implements AdministrativeInformati @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - public DefaultAdministrativeInformation() {} + public DefaultAdministrativeInformation() { + } @Override public int hashCode() { return Objects.hash(this.version, - this.revision, - this.creator, - this.templateId, - this.embeddedDataSpecifications); + this.revision, + this.creator, + this.templateId, + this.embeddedDataSpecifications); } @Override @@ -73,10 +74,10 @@ public boolean equals(Object obj) { } else { DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; return Objects.equals(this.version, other.version) && - Objects.equals(this.revision, other.revision) && - Objects.equals(this.creator, other.creator) && - Objects.equals(this.templateId, other.templateId) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); + Objects.equals(this.revision, other.revision) && + Objects.equals(this.creator, other.creator) && + Objects.equals(this.templateId, other.templateId) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); } } @@ -132,12 +133,12 @@ public void setEmbeddedDataSpecifications(List embedd public String toString() { return String.format( - "DefaultAdministrativeInformation (" + "version=%s," - + "revision=%s," - + "creator=%s," - + "templateId=%s," - + ")", - this.version, this.revision, this.creator, this.templateId); + "DefaultAdministrativeInformation (" + "version=%s," + + "revision=%s," + + "creator=%s," + + "templateId=%s," + + ")", + this.version, this.revision, this.creator, this.templateId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index 8b2f102c8..e3180441f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement - * + *

* An annotated relationship element is a relationship element that can be annotated with additional * data elements. */ @@ -78,22 +78,23 @@ public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshi @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") protected Reference second; - public DefaultAnnotatedRelationshipElement() {} + public DefaultAnnotatedRelationshipElement() { + } @Override public int hashCode() { return Objects.hash(this.annotations, - this.first, - this.second, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.first, + this.second, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -107,17 +108,17 @@ public boolean equals(Object obj) { } else { DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; return Objects.equals(this.annotations, other.annotations) && - Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.first, other.first) && + Objects.equals(this.second, other.second) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -243,9 +244,9 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultAnnotatedRelationshipElement (" + "annotations=%s," - + ")", - this.annotations); + "DefaultAnnotatedRelationshipElement (" + "annotations=%s," + + ")", + this.annotations); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index 7fc97b452..95aaa74f3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell - * + *

* An asset administration shell. */ @@ -73,21 +73,22 @@ public class DefaultAssetAdministrationShell implements AssetAdministrationShell @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultAssetAdministrationShell() {} + public DefaultAssetAdministrationShell() { + } @Override public int hashCode() { return Objects.hash(this.derivedFrom, - this.assetInformation, - this.submodels, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); + this.assetInformation, + this.submodels, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); } @Override @@ -101,16 +102,16 @@ public boolean equals(Object obj) { } else { DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; return Objects.equals(this.derivedFrom, other.derivedFrom) && - Objects.equals(this.assetInformation, other.assetInformation) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.assetInformation, other.assetInformation) && + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions); } } @@ -226,11 +227,11 @@ public void setExtensions(List extensions) { public String toString() { return String.format( - "DefaultAssetAdministrationShell (" + "derivedFrom=%s," - + "assetInformation=%s," - + "submodels=%s," - + ")", - this.derivedFrom, this.assetInformation, this.submodels); + "DefaultAssetAdministrationShell (" + "derivedFrom=%s," + + "assetInformation=%s," + + "submodels=%s," + + ")", + this.derivedFrom, this.assetInformation, this.submodels); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java index 3d483e26a..65382b039 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -35,7 +35,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor - * + * */ @IRI("aas:AssetAdministrationShellDescriptor") @@ -77,22 +77,23 @@ public class DefaultAssetAdministrationShellDescriptor implements AssetAdministr @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") protected List extensions = new ArrayList<>(); - public DefaultAssetAdministrationShellDescriptor() {} + public DefaultAssetAdministrationShellDescriptor() { + } @Override public int hashCode() { return Objects.hash(this.administration, - this.assetKind, - this.assetType, - this.endpoints, - this.globalAssetId, - this.idShort, - this.id, - this.specificAssetIds, - this.submodelDescriptors, - this.description, - this.displayName, - this.extensions); + this.assetKind, + this.assetType, + this.endpoints, + this.globalAssetId, + this.idShort, + this.id, + this.specificAssetIds, + this.submodelDescriptors, + this.description, + this.displayName, + this.extensions); } @Override @@ -106,17 +107,17 @@ public boolean equals(Object obj) { } else { DefaultAssetAdministrationShellDescriptor other = (DefaultAssetAdministrationShellDescriptor) obj; return Objects.equals(this.administration, other.administration) && - Objects.equals(this.assetKind, other.assetKind) && - Objects.equals(this.assetType, other.assetType) && - Objects.equals(this.endpoints, other.endpoints) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.id, other.id) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.submodelDescriptors, other.submodelDescriptors) && - Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.assetKind, other.assetKind) && + Objects.equals(this.assetType, other.assetType) && + Objects.equals(this.endpoints, other.endpoints) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.id, other.id) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.submodelDescriptors, other.submodelDescriptors) && + Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.extensions, other.extensions); } } @@ -242,18 +243,18 @@ public void setExtensions(List extensions) { public String toString() { return String.format( - "DefaultAssetAdministrationShellDescriptor (" + "administration=%s," - + "assetKind=%s," - + "assetType=%s," - + "endpoints=%s," - + "globalAssetId=%s," - + "idShort=%s," - + "id=%s," - + "specificAssetIds=%s," - + "submodelDescriptors=%s," - + ")", - this.administration, this.assetKind, this.assetType, this.endpoints, this.globalAssetId, this.idShort, this.id, - this.specificAssetIds, this.submodelDescriptors); + "DefaultAssetAdministrationShellDescriptor (" + "administration=%s," + + "assetKind=%s," + + "assetType=%s," + + "endpoints=%s," + + "globalAssetId=%s," + + "idShort=%s," + + "id=%s," + + "specificAssetIds=%s," + + "submodelDescriptors=%s," + + ")", + this.administration, this.assetKind, this.assetType, this.endpoints, this.globalAssetId, this.idShort, this.id, + this.specificAssetIds, this.submodelDescriptors); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index 0dbc4be34..f1f72b94c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation - * + *

* In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ @@ -52,15 +52,16 @@ public class DefaultAssetInformation implements AssetInformation { @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") protected List specificAssetIds = new ArrayList<>(); - public DefaultAssetInformation() {} + public DefaultAssetInformation() { + } @Override public int hashCode() { return Objects.hash(this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); } @Override @@ -74,10 +75,10 @@ public boolean equals(Object obj) { } else { DefaultAssetInformation other = (DefaultAssetInformation) obj; return Objects.equals(this.assetKind, other.assetKind) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.assetType, other.assetType) && - Objects.equals(this.defaultThumbnail, other.defaultThumbnail); + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.assetType, other.assetType) && + Objects.equals(this.defaultThumbnail, other.defaultThumbnail); } } @@ -133,13 +134,13 @@ public void setDefaultThumbnail(Resource defaultThumbnail) { public String toString() { return String.format( - "DefaultAssetInformation (" + "assetKind=%s," - + "globalAssetId=%s," - + "specificAssetIds=%s," - + "assetType=%s," - + "defaultThumbnail=%s," - + ")", - this.assetKind, this.globalAssetId, this.specificAssetIds, this.assetType, this.defaultThumbnail); + "DefaultAssetInformation (" + "assetKind=%s," + + "globalAssetId=%s," + + "specificAssetIds=%s," + + "assetType=%s," + + "defaultThumbnail=%s," + + ")", + this.assetKind, this.globalAssetId, this.specificAssetIds, this.assetType, this.defaultThumbnail); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java index e9507263c..c3395df16 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,7 +28,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult - * + * */ @IRI("aas:BaseOperationResult") @@ -43,13 +43,14 @@ public class DefaultBaseOperationResult implements BaseOperationResult { @IRI("https://admin-shell.io/aas/3/0/Result/messages") protected List messages = new ArrayList<>(); - public DefaultBaseOperationResult() {} + public DefaultBaseOperationResult() { + } @Override public int hashCode() { return Objects.hash(this.executionState, - this.success, - this.messages); + this.success, + this.messages); } @Override @@ -63,8 +64,8 @@ public boolean equals(Object obj) { } else { DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; return Objects.equals(this.executionState, other.executionState) && - Objects.equals(this.success, other.success) && - Objects.equals(this.messages, other.messages); + Objects.equals(this.success, other.success) && + Objects.equals(this.messages, other.messages); } } @@ -100,10 +101,10 @@ public void setMessages(List messages) { public String toString() { return String.format( - "DefaultBaseOperationResult (" + "executionState=%s," - + "success=%s," - + ")", - this.executionState, this.success); + "DefaultBaseOperationResult (" + "executionState=%s," + + "success=%s," + + ")", + this.executionState, this.success); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index edde2d692..5937921a6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +34,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement - * + *

* A basic event element. */ @@ -92,27 +92,28 @@ public class DefaultBasicEventElement implements BasicEventElement { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultBasicEventElement() {} + public DefaultBasicEventElement() { + } @Override public int hashCode() { return Objects.hash(this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -126,22 +127,22 @@ public boolean equals(Object obj) { } else { DefaultBasicEventElement other = (DefaultBasicEventElement) obj; return Objects.equals(this.observed, other.observed) && - Objects.equals(this.direction, other.direction) && - Objects.equals(this.state, other.state) && - Objects.equals(this.messageTopic, other.messageTopic) && - Objects.equals(this.messageBroker, other.messageBroker) && - Objects.equals(this.lastUpdate, other.lastUpdate) && - Objects.equals(this.minInterval, other.minInterval) && - Objects.equals(this.maxInterval, other.maxInterval) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.direction, other.direction) && + Objects.equals(this.state, other.state) && + Objects.equals(this.messageTopic, other.messageTopic) && + Objects.equals(this.messageBroker, other.messageBroker) && + Objects.equals(this.lastUpdate, other.lastUpdate) && + Objects.equals(this.minInterval, other.minInterval) && + Objects.equals(this.maxInterval, other.maxInterval) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -317,17 +318,17 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultBasicEventElement (" + "observed=%s," - + "direction=%s," - + "state=%s," - + "messageTopic=%s," - + "messageBroker=%s," - + "lastUpdate=%s," - + "minInterval=%s," - + "maxInterval=%s," - + ")", - this.observed, this.direction, this.state, this.messageTopic, this.messageBroker, this.lastUpdate, this.minInterval, - this.maxInterval); + "DefaultBasicEventElement (" + "observed=%s," + + "direction=%s," + + "state=%s," + + "messageTopic=%s," + + "messageBroker=%s," + + "lastUpdate=%s," + + "minInterval=%s," + + "maxInterval=%s," + + ")", + this.observed, this.direction, this.state, this.messageTopic, this.messageBroker, this.lastUpdate, this.minInterval, + this.maxInterval); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index 93fe2731e..e67c9911f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob - * + *

* A 'Blob' is a data element that represents a file that is contained with its source code in the * value attribute. */ @@ -74,21 +74,22 @@ public class DefaultBlob implements Blob { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultBlob() {} + public DefaultBlob() { + } @Override public int hashCode() { return Objects.hash(Arrays.hashCode(this.value), - this.contentType, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.contentType, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -102,16 +103,16 @@ public boolean equals(Object obj) { } else { DefaultBlob other = (DefaultBlob) obj; return Arrays.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -227,10 +228,10 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultBlob (" + "value=%s," - + "contentType=%s," - + ")", - this.value, this.contentType); + "DefaultBlob (" + "value=%s," + + "contentType=%s," + + ")", + this.value, this.contentType); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index 412bfa110..17c286379 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability - * + *

* A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ @@ -67,19 +67,20 @@ public class DefaultCapability implements Capability { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultCapability() {} + public DefaultCapability() { + } @Override public int hashCode() { return Objects.hash(this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -93,14 +94,14 @@ public boolean equals(Object obj) { } else { DefaultCapability other = (DefaultCapability) obj; return Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -196,8 +197,8 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultCapability (" - + ")" + "DefaultCapability (" + + ")" ); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index 51ad68c22..46d053103 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription - * + *

* The semantics of a property or other elements that may have a semantic description is defined by * a concept description. */ @@ -67,19 +67,20 @@ public class DefaultConceptDescription implements ConceptDescription { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultConceptDescription() {} + public DefaultConceptDescription() { + } @Override public int hashCode() { return Objects.hash(this.isCaseOf, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); } @Override @@ -93,14 +94,14 @@ public boolean equals(Object obj) { } else { DefaultConceptDescription other = (DefaultConceptDescription) obj; return Objects.equals(this.isCaseOf, other.isCaseOf) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions); } } @@ -196,9 +197,9 @@ public void setExtensions(List extensions) { public String toString() { return String.format( - "DefaultConceptDescription (" + "isCaseOf=%s," - + ")", - this.isCaseOf); + "DefaultConceptDescription (" + "isCaseOf=%s," + + ")", + this.isCaseOf); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java index 7f8a5cf0d..a061fa0be 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java @@ -30,42 +30,45 @@ @IRI("aas:CustomDataSpecification") public class DefaultCustomDataSpecification implements CustomDataSpecification { - public DefaultCustomDataSpecification() {} - - @Override - public String toString() { - return "DefaultCustomDataSpecification{" + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode()); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; + public DefaultCustomDataSpecification() { } - return true; - } - /** This builder class can be used to construct a DefaultCustomDataSpecification bean. */ - public static class Builder - extends CustomDataSpecificationBuilder { + @Override + public String toString() { + return "DefaultCustomDataSpecification{" + "}"; + } @Override - protected Builder getSelf() { - return this; + public int hashCode() { + return Objects.hash(super.hashCode()); } @Override - protected DefaultCustomDataSpecification newBuildingInstance() { - return new DefaultCustomDataSpecification(); + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } + return true; + } + + /** + * This builder class can be used to construct a DefaultCustomDataSpecification bean. + */ + public static class Builder + extends CustomDataSpecificationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultCustomDataSpecification newBuildingInstance() { + return new DefaultCustomDataSpecification(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index a92cab507..485555d5d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 - * + *

* Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. */ @@ -78,22 +78,23 @@ public class DefaultDataSpecificationIec61360 implements DataSpecificationIec613 @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") protected ValueList valueList; - public DefaultDataSpecificationIec61360() {} + public DefaultDataSpecificationIec61360() { + } @Override public int hashCode() { return Objects.hash(this.preferredName, - this.shortName, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definition, - this.valueFormat, - this.valueList, - this.value, - this.levelType); + this.shortName, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definition, + this.valueFormat, + this.valueList, + this.value, + this.levelType); } @Override @@ -107,17 +108,17 @@ public boolean equals(Object obj) { } else { DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; return Objects.equals(this.preferredName, other.preferredName) && - Objects.equals(this.shortName, other.shortName) && - Objects.equals(this.unit, other.unit) && - Objects.equals(this.unitId, other.unitId) && - Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && - Objects.equals(this.symbol, other.symbol) && - Objects.equals(this.dataType, other.dataType) && - Objects.equals(this.definition, other.definition) && - Objects.equals(this.valueFormat, other.valueFormat) && - Objects.equals(this.valueList, other.valueList) && - Objects.equals(this.value, other.value) && - Objects.equals(this.levelType, other.levelType); + Objects.equals(this.shortName, other.shortName) && + Objects.equals(this.unit, other.unit) && + Objects.equals(this.unitId, other.unitId) && + Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && + Objects.equals(this.symbol, other.symbol) && + Objects.equals(this.dataType, other.dataType) && + Objects.equals(this.definition, other.definition) && + Objects.equals(this.valueFormat, other.valueFormat) && + Objects.equals(this.valueList, other.valueList) && + Objects.equals(this.value, other.value) && + Objects.equals(this.levelType, other.levelType); } } @@ -243,21 +244,21 @@ public void setLevelType(LevelType levelType) { public String toString() { return String.format( - "DefaultDataSpecificationIec61360 (" + "preferredName=%s," - + "shortName=%s," - + "unit=%s," - + "unitId=%s," - + "sourceOfDefinition=%s," - + "symbol=%s," - + "dataType=%s," - + "definition=%s," - + "valueFormat=%s," - + "valueList=%s," - + "value=%s," - + "levelType=%s," - + ")", - this.preferredName, this.shortName, this.unit, this.unitId, this.sourceOfDefinition, this.symbol, this.dataType, - this.definition, this.valueFormat, this.valueList, this.value, this.levelType); + "DefaultDataSpecificationIec61360 (" + "preferredName=%s," + + "shortName=%s," + + "unit=%s," + + "unitId=%s," + + "sourceOfDefinition=%s," + + "symbol=%s," + + "dataType=%s," + + "definition=%s," + + "valueFormat=%s," + + "valueList=%s," + + "value=%s," + + "levelType=%s," + + ")", + this.preferredName, this.shortName, this.unit, this.unitId, this.sourceOfDefinition, this.symbol, this.dataType, + this.definition, this.valueFormat, this.valueList, this.value, this.levelType); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java index f3496933a..6f0a244ad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor - * + * */ @IRI("aas:Descriptor") @@ -44,13 +44,14 @@ public class DefaultDescriptor implements Descriptor { @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") protected List extensions = new ArrayList<>(); - public DefaultDescriptor() {} + public DefaultDescriptor() { + } @Override public int hashCode() { return Objects.hash(this.description, - this.displayName, - this.extensions); + this.displayName, + this.extensions); } @Override @@ -64,8 +65,8 @@ public boolean equals(Object obj) { } else { DefaultDescriptor other = (DefaultDescriptor) obj; return Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.extensions, other.extensions); } } @@ -101,11 +102,11 @@ public void setExtensions(List extensions) { public String toString() { return String.format( - "DefaultDescriptor (" + "description=%s," - + "displayName=%s," - + "extensions=%s," - + ")", - this.description, this.displayName, this.extensions); + "DefaultDescriptor (" + "description=%s," + + "displayName=%s," + + "extensions=%s," + + ")", + this.description, this.displayName, this.extensions); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index 0235e810d..377bc5baf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification - * + *

* Embed the content of a data specification. */ @@ -40,12 +40,13 @@ public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecificati @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") protected DataSpecificationContent dataSpecificationContent; - public DefaultEmbeddedDataSpecification() {} + public DefaultEmbeddedDataSpecification() { + } @Override public int hashCode() { return Objects.hash(this.dataSpecification, - this.dataSpecificationContent); + this.dataSpecificationContent); } @Override @@ -59,7 +60,7 @@ public boolean equals(Object obj) { } else { DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; return Objects.equals(this.dataSpecification, other.dataSpecification) && - Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); + Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); } } @@ -85,10 +86,10 @@ public void setDataSpecificationContent(DataSpecificationContent dataSpecificati public String toString() { return String.format( - "DefaultEmbeddedDataSpecification (" + "dataSpecification=%s," - + "dataSpecificationContent=%s," - + ")", - this.dataSpecification, this.dataSpecificationContent); + "DefaultEmbeddedDataSpecification (" + "dataSpecification=%s," + + "dataSpecificationContent=%s," + + ")", + this.dataSpecification, this.dataSpecificationContent); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java index 91167f351..ad02d37e2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint - * + * */ @IRI("aas:Endpoint") @@ -37,12 +37,13 @@ public class DefaultEndpoint implements Endpoint { @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") protected ProtocolInformation protocolInformation; - public DefaultEndpoint() {} + public DefaultEndpoint() { + } @Override public int hashCode() { return Objects.hash(this._interface, - this.protocolInformation); + this.protocolInformation); } @Override @@ -56,7 +57,7 @@ public boolean equals(Object obj) { } else { DefaultEndpoint other = (DefaultEndpoint) obj; return Objects.equals(this._interface, other._interface) && - Objects.equals(this.protocolInformation, other.protocolInformation); + Objects.equals(this.protocolInformation, other.protocolInformation); } } @@ -82,10 +83,10 @@ public void setProtocolInformation(ProtocolInformation protocolInformation) { public String toString() { return String.format( - "DefaultEndpoint (" + "_interface=%s," - + "protocolInformation=%s," - + ")", - this._interface, this.protocolInformation); + "DefaultEndpoint (" + "_interface=%s," + + "protocolInformation=%s," + + ")", + this._interface, this.protocolInformation); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index f58ed3ab7..6d7ae13dd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -35,7 +35,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity - * + *

* An entity is a submodel element that is used to model entities. */ @@ -81,23 +81,24 @@ public class DefaultEntity implements Entity { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultEntity() {} + public DefaultEntity() { + } @Override public int hashCode() { return Objects.hash(this.statements, - this.entityType, - this.globalAssetId, - this.specificAssetIds, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.entityType, + this.globalAssetId, + this.specificAssetIds, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -111,18 +112,18 @@ public boolean equals(Object obj) { } else { DefaultEntity other = (DefaultEntity) obj; return Objects.equals(this.statements, other.statements) && - Objects.equals(this.entityType, other.entityType) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.entityType, other.entityType) && + Objects.equals(this.globalAssetId, other.globalAssetId) && + Objects.equals(this.specificAssetIds, other.specificAssetIds) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -258,12 +259,12 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultEntity (" + "statements=%s," - + "entityType=%s," - + "globalAssetId=%s," - + "specificAssetIds=%s," - + ")", - this.statements, this.entityType, this.globalAssetId, this.specificAssetIds); + "DefaultEntity (" + "statements=%s," + + "entityType=%s," + + "globalAssetId=%s," + + "specificAssetIds=%s," + + ")", + this.statements, this.entityType, this.globalAssetId, this.specificAssetIds); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index 30d5f6377..7baa0ebae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment - * + *

* Container for the sets of different identifiables. */ @@ -45,13 +45,14 @@ public class DefaultEnvironment implements Environment { @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") protected List submodels = new ArrayList<>(); - public DefaultEnvironment() {} + public DefaultEnvironment() { + } @Override public int hashCode() { return Objects.hash(this.assetAdministrationShells, - this.submodels, - this.conceptDescriptions); + this.submodels, + this.conceptDescriptions); } @Override @@ -65,8 +66,8 @@ public boolean equals(Object obj) { } else { DefaultEnvironment other = (DefaultEnvironment) obj; return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + Objects.equals(this.submodels, other.submodels) && + Objects.equals(this.conceptDescriptions, other.conceptDescriptions); } } @@ -102,11 +103,11 @@ public void setConceptDescriptions(List conceptDescriptions) public String toString() { return String.format( - "DefaultEnvironment (" + "assetAdministrationShells=%s," - + "submodels=%s," - + "conceptDescriptions=%s," - + ")", - this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + "DefaultEnvironment (" + "assetAdministrationShells=%s," + + "submodels=%s," + + "conceptDescriptions=%s," + + ")", + this.assetAdministrationShells, this.submodels, this.conceptDescriptions); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index 750f1c5ff..73210aa7f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +26,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload - * + *

* Defines the necessary information of an event instance sent out or received. */ @@ -57,18 +57,19 @@ public class DefaultEventPayload implements EventPayload { @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") protected String topic; - public DefaultEventPayload() {} + public DefaultEventPayload() { + } @Override public int hashCode() { return Objects.hash(this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - Arrays.hashCode(this.payload)); + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + Arrays.hashCode(this.payload)); } @Override @@ -82,13 +83,13 @@ public boolean equals(Object obj) { } else { DefaultEventPayload other = (DefaultEventPayload) obj; return Objects.equals(this.source, other.source) && - Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && - Objects.equals(this.observableReference, other.observableReference) && - Objects.equals(this.observableSemanticId, other.observableSemanticId) && - Objects.equals(this.topic, other.topic) && - Objects.equals(this.subjectId, other.subjectId) && - Objects.equals(this.timeStamp, other.timeStamp) && - Arrays.equals(this.payload, other.payload); + Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && + Objects.equals(this.observableReference, other.observableReference) && + Objects.equals(this.observableSemanticId, other.observableSemanticId) && + Objects.equals(this.topic, other.topic) && + Objects.equals(this.subjectId, other.subjectId) && + Objects.equals(this.timeStamp, other.timeStamp) && + Arrays.equals(this.payload, other.payload); } } @@ -174,17 +175,17 @@ public void setPayload(byte[] payload) { public String toString() { return String.format( - "DefaultEventPayload (" + "source=%s," - + "sourceSemanticId=%s," - + "observableReference=%s," - + "observableSemanticId=%s," - + "topic=%s," - + "subjectId=%s," - + "timeStamp=%s," - + "payload=%s," - + ")", - this.source, this.sourceSemanticId, this.observableReference, this.observableSemanticId, this.topic, this.subjectId, - this.timeStamp, this.payload); + "DefaultEventPayload (" + "source=%s," + + "sourceSemanticId=%s," + + "observableReference=%s," + + "observableSemanticId=%s," + + "topic=%s," + + "subjectId=%s," + + "timeStamp=%s," + + "payload=%s," + + ")", + this.source, this.sourceSemanticId, this.observableReference, this.observableSemanticId, this.topic, this.subjectId, + this.timeStamp, this.payload); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index eb013ed1f..109d754bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -28,7 +28,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension - * + *

* Single extension of an element. */ @@ -53,16 +53,17 @@ public class DefaultExtension implements Extension { @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - public DefaultExtension() {} + public DefaultExtension() { + } @Override public int hashCode() { return Objects.hash(this.name, - this.valueType, - this.value, - this.refersTo, - this.semanticId, - this.supplementalSemanticIds); + this.valueType, + this.value, + this.refersTo, + this.semanticId, + this.supplementalSemanticIds); } @Override @@ -76,11 +77,11 @@ public boolean equals(Object obj) { } else { DefaultExtension other = (DefaultExtension) obj; return Objects.equals(this.name, other.name) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.refersTo, other.refersTo) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.refersTo, other.refersTo) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } } @@ -146,12 +147,12 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) public String toString() { return String.format( - "DefaultExtension (" + "name=%s," - + "valueType=%s," - + "value=%s," - + "refersTo=%s," - + ")", - this.name, this.valueType, this.value, this.refersTo); + "DefaultExtension (" + "name=%s," + + "valueType=%s," + + "value=%s," + + "refersTo=%s," + + ")", + this.name, this.valueType, this.value, this.refersTo); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index cd869bf56..95cb3f67b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File - * + *

* A File is a data element that represents an address to a file (a locator). */ @@ -72,21 +72,22 @@ public class DefaultFile implements File { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultFile() {} + public DefaultFile() { + } @Override public int hashCode() { return Objects.hash(this.value, - this.contentType, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.contentType, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -100,16 +101,16 @@ public boolean equals(Object obj) { } else { DefaultFile other = (DefaultFile) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.contentType, other.contentType) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -225,10 +226,10 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultFile (" + "value=%s," - + "contentType=%s," - + ")", - this.value, this.contentType); + "DefaultFile (" + "value=%s," + + "contentType=%s," + + ")", + this.value, this.contentType); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index 45d6d6f7e..0bc731f27 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key - * + *

* A key is a reference to an element by its ID. */ @@ -38,12 +38,13 @@ public class DefaultKey implements Key { @IRI("https://admin-shell.io/aas/3/0/Key/value") protected String value; - public DefaultKey() {} + public DefaultKey() { + } @Override public int hashCode() { return Objects.hash(this.type, - this.value); + this.value); } @Override @@ -57,7 +58,7 @@ public boolean equals(Object obj) { } else { DefaultKey other = (DefaultKey) obj; return Objects.equals(this.type, other.type) && - Objects.equals(this.value, other.value); + Objects.equals(this.value, other.value); } } @@ -83,10 +84,10 @@ public void setValue(String value) { public String toString() { return String.format( - "DefaultKey (" + "type=%s," - + "value=%s," - + ")", - this.type, this.value); + "DefaultKey (" + "type=%s," + + "value=%s," + + ")", + this.type, this.value); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index 4c8a473b9..b1960a205 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 - * + *

* String with length 1023 maximum and minimum 1 characters and with language tags */ @@ -38,12 +38,13 @@ public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefini @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") protected String text; - public DefaultLangStringDefinitionTypeIec61360() {} + public DefaultLangStringDefinitionTypeIec61360() { + } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -57,7 +58,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } @@ -83,8 +84,8 @@ public void setText(String text) { public String toString() { return String.format( - "DefaultLangStringDefinitionTypeIec61360 (" - + ")" + "DefaultLangStringDefinitionTypeIec61360 (" + + ")" ); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index cf01867c5..52aedfe0b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType - * + *

* String with length 128 maximum and minimum 1 characters and with language tags */ @@ -37,12 +37,13 @@ public class DefaultLangStringNameType implements LangStringNameType { @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") protected String text; - public DefaultLangStringNameType() {} + public DefaultLangStringNameType() { + } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -56,7 +57,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringNameType other = (DefaultLangStringNameType) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } @@ -82,8 +83,8 @@ public void setText(String text) { public String toString() { return String.format( - "DefaultLangStringNameType (" - + ")" + "DefaultLangStringNameType (" + + ")" ); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index 40be9c6fc..da037e463 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 - * + *

* String with length 255 maximum and minimum 1 characters and with language tags */ @@ -38,12 +38,13 @@ public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPre @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") protected String text; - public DefaultLangStringPreferredNameTypeIec61360() {} + public DefaultLangStringPreferredNameTypeIec61360() { + } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -57,7 +58,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringPreferredNameTypeIec61360 other = (DefaultLangStringPreferredNameTypeIec61360) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } @@ -83,8 +84,8 @@ public void setText(String text) { public String toString() { return String.format( - "DefaultLangStringPreferredNameTypeIec61360 (" - + ")" + "DefaultLangStringPreferredNameTypeIec61360 (" + + ")" ); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index f33fc73ee..0e4794aa6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 - * + *

* String with length 18 maximum and minimum 1 characters and with language tags */ @@ -38,12 +38,13 @@ public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNa @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") protected String text; - public DefaultLangStringShortNameTypeIec61360() {} + public DefaultLangStringShortNameTypeIec61360() { + } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -57,7 +58,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } @@ -83,8 +84,8 @@ public void setText(String text) { public String toString() { return String.format( - "DefaultLangStringShortNameTypeIec61360 (" - + ")" + "DefaultLangStringShortNameTypeIec61360 (" + + ")" ); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index 196784d6e..cc11b059e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType - * + *

* String with length 1023 maximum and minimum 1 characters and with language tags */ @@ -37,12 +37,13 @@ public class DefaultLangStringTextType implements LangStringTextType { @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") protected String text; - public DefaultLangStringTextType() {} + public DefaultLangStringTextType() { + } @Override public int hashCode() { return Objects.hash(this.language, - this.text); + this.text); } @Override @@ -56,7 +57,7 @@ public boolean equals(Object obj) { } else { DefaultLangStringTextType other = (DefaultLangStringTextType) obj; return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); + Objects.equals(this.text, other.text); } } @@ -82,8 +83,8 @@ public void setText(String text) { public String toString() { return String.format( - "DefaultLangStringTextType (" - + ")" + "DefaultLangStringTextType (" + + ")" ); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index 5cf2b4ecd..207a037f8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType - * + *

* Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and * MAX. True means that the value is available, false means the value is not available. */ @@ -44,14 +44,15 @@ public class DefaultLevelType implements LevelType { @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") protected boolean typ; - public DefaultLevelType() {} + public DefaultLevelType() { + } @Override public int hashCode() { return Objects.hash(this.min, - this.nom, - this.typ, - this.max); + this.nom, + this.typ, + this.max); } @Override @@ -65,9 +66,9 @@ public boolean equals(Object obj) { } else { DefaultLevelType other = (DefaultLevelType) obj; return Objects.equals(this.min, other.min) && - Objects.equals(this.nom, other.nom) && - Objects.equals(this.typ, other.typ) && - Objects.equals(this.max, other.max); + Objects.equals(this.nom, other.nom) && + Objects.equals(this.typ, other.typ) && + Objects.equals(this.max, other.max); } } @@ -113,12 +114,12 @@ public void setMax(boolean max) { public String toString() { return String.format( - "DefaultLevelType (" + "min=%s," - + "nom=%s," - + "typ=%s," - + "max=%s," - + ")", - this.min, this.nom, this.typ, this.max); + "DefaultLevelType (" + "min=%s," + + "nom=%s," + + "typ=%s," + + "max=%s," + + ")", + this.min, this.nom, this.typ, this.max); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java index 89b06f102..696b14814 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message - * + * */ @IRI("aas:Message") @@ -46,15 +46,16 @@ public class DefaultMessage implements Message { @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") protected String timestamp; - public DefaultMessage() {} + public DefaultMessage() { + } @Override public int hashCode() { return Objects.hash(this.code, - this.correlationId, - this.messageType, - this.text, - this.timestamp); + this.correlationId, + this.messageType, + this.text, + this.timestamp); } @Override @@ -68,10 +69,10 @@ public boolean equals(Object obj) { } else { DefaultMessage other = (DefaultMessage) obj; return Objects.equals(this.code, other.code) && - Objects.equals(this.correlationId, other.correlationId) && - Objects.equals(this.messageType, other.messageType) && - Objects.equals(this.text, other.text) && - Objects.equals(this.timestamp, other.timestamp); + Objects.equals(this.correlationId, other.correlationId) && + Objects.equals(this.messageType, other.messageType) && + Objects.equals(this.text, other.text) && + Objects.equals(this.timestamp, other.timestamp); } } @@ -127,13 +128,13 @@ public void setTimestamp(String timestamp) { public String toString() { return String.format( - "DefaultMessage (" + "code=%s," - + "correlationId=%s," - + "messageType=%s," - + "text=%s," - + "timestamp=%s," - + ")", - this.code, this.correlationId, this.messageType, this.text, this.timestamp); + "DefaultMessage (" + "code=%s," + + "correlationId=%s," + + "messageType=%s," + + "text=%s," + + "timestamp=%s," + + ")", + this.code, this.correlationId, this.messageType, this.text, this.timestamp); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 3d0323e79..77c76e1e8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty - * + *

* A property is a data element that has a multi-language value. */ @@ -72,21 +72,22 @@ public class DefaultMultiLanguageProperty implements MultiLanguageProperty { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultMultiLanguageProperty() {} + public DefaultMultiLanguageProperty() { + } @Override public int hashCode() { return Objects.hash(this.value, - this.valueId, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.valueId, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -100,16 +101,16 @@ public boolean equals(Object obj) { } else { DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -225,10 +226,10 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultMultiLanguageProperty (" + "value=%s," - + "valueId=%s," - + ")", - this.value, this.valueId); + "DefaultMultiLanguageProperty (" + "value=%s," + + "valueId=%s," + + ")", + this.value, this.valueId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index 3bbc158f2..b3516587a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation - * + *

* An operation is a submodel element with input and output variables. */ @@ -76,22 +76,23 @@ public class DefaultOperation implements Operation { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultOperation() {} + public DefaultOperation() { + } @Override public int hashCode() { return Objects.hash(this.inputVariables, - this.outputVariables, - this.inoutputVariables, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.outputVariables, + this.inoutputVariables, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -105,17 +106,17 @@ public boolean equals(Object obj) { } else { DefaultOperation other = (DefaultOperation) obj; return Objects.equals(this.inputVariables, other.inputVariables) && - Objects.equals(this.outputVariables, other.outputVariables) && - Objects.equals(this.inoutputVariables, other.inoutputVariables) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.outputVariables, other.outputVariables) && + Objects.equals(this.inoutputVariables, other.inoutputVariables) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -241,11 +242,11 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultOperation (" + "inputVariables=%s," - + "outputVariables=%s," - + "inoutputVariables=%s," - + ")", - this.inputVariables, this.outputVariables, this.inoutputVariables); + "DefaultOperation (" + "inputVariables=%s," + + "outputVariables=%s," + + "inoutputVariables=%s," + + ")", + this.inputVariables, this.outputVariables, this.inoutputVariables); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java index 7a1160c44..828bda3d7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle - * + * */ @IRI("aas:OperationHandle") @@ -33,7 +33,8 @@ public class DefaultOperationHandle implements OperationHandle { @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") protected String handleId; - public DefaultOperationHandle() {} + public DefaultOperationHandle() { + } @Override public int hashCode() { @@ -66,9 +67,9 @@ public void setHandleId(String handleId) { public String toString() { return String.format( - "DefaultOperationHandle (" + "handleId=%s," - + ")", - this.handleId); + "DefaultOperationHandle (" + "handleId=%s," + + ")", + this.handleId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java index b3b6fb572..4df02bd92 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest - * + * */ @IRI("aas:OperationRequest") @@ -42,13 +42,14 @@ public class DefaultOperationRequest implements OperationRequest { @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") protected List inputArguments = new ArrayList<>(); - public DefaultOperationRequest() {} + public DefaultOperationRequest() { + } @Override public int hashCode() { return Objects.hash(this.inoutputArguments, - this.inputArguments, - this.clientTimeoutDuration); + this.inputArguments, + this.clientTimeoutDuration); } @Override @@ -62,8 +63,8 @@ public boolean equals(Object obj) { } else { DefaultOperationRequest other = (DefaultOperationRequest) obj; return Objects.equals(this.inoutputArguments, other.inoutputArguments) && - Objects.equals(this.inputArguments, other.inputArguments) && - Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); + Objects.equals(this.inputArguments, other.inputArguments) && + Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); } } @@ -99,11 +100,11 @@ public void setClientTimeoutDuration(String clientTimeoutDuration) { public String toString() { return String.format( - "DefaultOperationRequest (" + "inoutputArguments=%s," - + "inputArguments=%s," - + "clientTimeoutDuration=%s," - + ")", - this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); + "DefaultOperationRequest (" + "inoutputArguments=%s," + + "inputArguments=%s," + + "clientTimeoutDuration=%s," + + ")", + this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java index 763676200..83d8da8d1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult - * + * */ @IRI("aas:OperationResult") @@ -39,12 +39,13 @@ public class DefaultOperationResult implements OperationResult { @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") protected List outputArguments = new ArrayList<>(); - public DefaultOperationResult() {} + public DefaultOperationResult() { + } @Override public int hashCode() { return Objects.hash(this.inoutputArguments, - this.outputArguments); + this.outputArguments); } @Override @@ -58,7 +59,7 @@ public boolean equals(Object obj) { } else { DefaultOperationResult other = (DefaultOperationResult) obj; return Objects.equals(this.inoutputArguments, other.inoutputArguments) && - Objects.equals(this.outputArguments, other.outputArguments); + Objects.equals(this.outputArguments, other.outputArguments); } } @@ -84,10 +85,10 @@ public void setOutputArguments(List outputArguments) { public String toString() { return String.format( - "DefaultOperationResult (" + "inoutputArguments=%s," - + "outputArguments=%s," - + ")", - this.inoutputArguments, this.outputArguments); + "DefaultOperationResult (" + "inoutputArguments=%s," + + "outputArguments=%s," + + ")", + this.inoutputArguments, this.outputArguments); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 17f42b008..2398a286b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable - * + *

* The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ @@ -36,7 +36,8 @@ public class DefaultOperationVariable implements OperationVariable { @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") protected SubmodelElement value; - public DefaultOperationVariable() {} + public DefaultOperationVariable() { + } @Override public int hashCode() { @@ -69,9 +70,9 @@ public void setValue(SubmodelElement value) { public String toString() { return String.format( - "DefaultOperationVariable (" + "value=%s," - + ")", - this.value); + "DefaultOperationVariable (" + "value=%s," + + ")", + this.value); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java index 43612361c..644c09a77 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -26,7 +26,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription - * + * */ @IRI("aas:PackageDescription") @@ -38,12 +38,13 @@ public class DefaultPackageDescription implements PackageDescription { @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") protected String packageId; - public DefaultPackageDescription() {} + public DefaultPackageDescription() { + } @Override public int hashCode() { return Objects.hash(this.items, - this.packageId); + this.packageId); } @Override @@ -57,7 +58,7 @@ public boolean equals(Object obj) { } else { DefaultPackageDescription other = (DefaultPackageDescription) obj; return Objects.equals(this.items, other.items) && - Objects.equals(this.packageId, other.packageId); + Objects.equals(this.packageId, other.packageId); } } @@ -83,10 +84,10 @@ public void setPackageId(String packageId) { public String toString() { return String.format( - "DefaultPackageDescription (" + "items=%s," - + "packageId=%s," - + ")", - this.items, this.packageId); + "DefaultPackageDescription (" + "items=%s," + + "packageId=%s," + + ")", + this.items, this.packageId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 3c40a0bd9..4e667c908 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property - * + *

* A property is a data element that has a single value. */ @@ -76,22 +76,23 @@ public class DefaultProperty implements Property { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultProperty() {} + public DefaultProperty() { + } @Override public int hashCode() { return Objects.hash(this.valueType, - this.value, - this.valueId, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.value, + this.valueId, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -105,17 +106,17 @@ public boolean equals(Object obj) { } else { DefaultProperty other = (DefaultProperty) obj; return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -241,11 +242,11 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultProperty (" + "valueType=%s," - + "value=%s," - + "valueId=%s," - + ")", - this.valueType, this.value, this.valueId); + "DefaultProperty (" + "valueType=%s," + + "value=%s," + + "valueId=%s," + + ")", + this.valueType, this.value, this.valueId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index 6b2639f9e..d105b8428 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation - * + * */ @IRI("aas:ProtocolInformation") @@ -54,17 +54,18 @@ public class DefaultProtocolInformation implements ProtocolInformation { @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") protected String subprotocolBodyEncoding; - public DefaultProtocolInformation() {} + public DefaultProtocolInformation() { + } @Override public int hashCode() { return Objects.hash(this.href, - this.endpointProtocol, - this.endpointProtocolVersion, - this.subprotocol, - this.subprotocolBody, - this.subprotocolBodyEncoding, - this.securityAttributes); + this.endpointProtocol, + this.endpointProtocolVersion, + this.subprotocol, + this.subprotocolBody, + this.subprotocolBodyEncoding, + this.securityAttributes); } @Override @@ -78,12 +79,12 @@ public boolean equals(Object obj) { } else { DefaultProtocolInformation other = (DefaultProtocolInformation) obj; return Objects.equals(this.href, other.href) && - Objects.equals(this.endpointProtocol, other.endpointProtocol) && - Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && - Objects.equals(this.subprotocol, other.subprotocol) && - Objects.equals(this.subprotocolBody, other.subprotocolBody) && - Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) && - Objects.equals(this.securityAttributes, other.securityAttributes); + Objects.equals(this.endpointProtocol, other.endpointProtocol) && + Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && + Objects.equals(this.subprotocol, other.subprotocol) && + Objects.equals(this.subprotocolBody, other.subprotocolBody) && + Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) && + Objects.equals(this.securityAttributes, other.securityAttributes); } } @@ -159,16 +160,16 @@ public void setSecurityAttributes(List securityAttribut public String toString() { return String.format( - "DefaultProtocolInformation (" + "href=%s," - + "endpointProtocol=%s," - + "endpointProtocolVersion=%s," - + "subprotocol=%s," - + "subprotocolBody=%s," - + "subprotocolBodyEncoding=%s," - + "securityAttributes=%s," - + ")", - this.href, this.endpointProtocol, this.endpointProtocolVersion, this.subprotocol, this.subprotocolBody, - this.subprotocolBodyEncoding, this.securityAttributes); + "DefaultProtocolInformation (" + "href=%s," + + "endpointProtocol=%s," + + "endpointProtocolVersion=%s," + + "subprotocol=%s," + + "subprotocolBody=%s," + + "subprotocolBodyEncoding=%s," + + "securityAttributes=%s," + + ")", + this.href, this.endpointProtocol, this.endpointProtocolVersion, this.subprotocol, this.subprotocolBody, + this.subprotocolBodyEncoding, this.securityAttributes); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 4a3447a43..2d584b8c9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -29,7 +29,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier - * + *

* A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ @@ -58,17 +58,18 @@ public class DefaultQualifier implements Qualifier { @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") protected DataTypeDefXsd valueType; - public DefaultQualifier() {} + public DefaultQualifier() { + } @Override public int hashCode() { return Objects.hash(this.kind, - this.type, - this.valueType, - this.value, - this.valueId, - this.semanticId, - this.supplementalSemanticIds); + this.type, + this.valueType, + this.value, + this.valueId, + this.semanticId, + this.supplementalSemanticIds); } @Override @@ -82,12 +83,12 @@ public boolean equals(Object obj) { } else { DefaultQualifier other = (DefaultQualifier) obj; return Objects.equals(this.kind, other.kind) && - Objects.equals(this.type, other.type) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + Objects.equals(this.type, other.type) && + Objects.equals(this.valueType, other.valueType) && + Objects.equals(this.value, other.value) && + Objects.equals(this.valueId, other.valueId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } } @@ -163,13 +164,13 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) public String toString() { return String.format( - "DefaultQualifier (" + "kind=%s," - + "type=%s," - + "valueType=%s," - + "value=%s," - + "valueId=%s," - + ")", - this.kind, this.type, this.valueType, this.value, this.valueId); + "DefaultQualifier (" + "kind=%s," + + "type=%s," + + "valueType=%s," + + "value=%s," + + "valueId=%s," + + ")", + this.kind, this.type, this.valueType, this.value, this.valueId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index 7406d9abc..a87210cd4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -33,7 +33,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range - * + *

* A range data element is a data element that defines a range with min and max. */ @@ -76,22 +76,23 @@ public class DefaultRange implements Range { @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") protected String idShort; - public DefaultRange() {} + public DefaultRange() { + } @Override public int hashCode() { return Objects.hash(this.valueType, - this.min, - this.max, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.min, + this.max, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -105,17 +106,17 @@ public boolean equals(Object obj) { } else { DefaultRange other = (DefaultRange) obj; return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.min, other.min) && - Objects.equals(this.max, other.max) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.min, other.min) && + Objects.equals(this.max, other.max) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -241,11 +242,11 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultRange (" + "valueType=%s," - + "min=%s," - + "max=%s," - + ")", - this.valueType, this.min, this.max); + "DefaultRange (" + "valueType=%s," + + "min=%s," + + "max=%s," + + ")", + this.valueType, this.min, this.max); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index 84538c648..84660647b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -15,12 +15,6 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.Collections; -import java.util.IdentityHashMap; -import java.util.List; -import java.util.Objects; -import java.util.Set; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; @@ -28,13 +22,31 @@ import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceBuilder; import java.util.ArrayList; +import java.util.Collections; +import java.util.IdentityHashMap; import java.util.List; import java.util.Objects; +import java.util.Set; +private void validateReferredSemanticId(Reference referredSemanticId) { + if (referredSemanticId == null) { + return; + } + Set visited = Collections.newSetFromMap(new IdentityHashMap<>()); + Reference current = referredSemanticId; + while (current != null) { + if (current == this || !visited.add(current)) { + throw new IllegalArgumentException( + "referredSemanticId must not create a circular Reference"); + } + current = current.getReferredSemanticId(); + } +} + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference - * + *

* Reference to either a model element of the same or another AAS or to an external entity. */ @@ -50,21 +62,16 @@ public class DefaultReference implements Reference { @IRI("https://admin-shell.io/aas/3/0/Reference/type") protected ReferenceTypes type; - public DefaultReference() {} + public DefaultReference() { + } @Override public int hashCode() { return Objects.hash(this.type, - this.referredSemanticId, - this.keys); + this.referredSemanticId, + this.keys); } - @Override - public void setReferredSemanticId(Reference referredSemanticId) { - validateReferredSemanticId(referredSemanticId); - this.referredSemanticId = referredSemanticId; - } - @Override public boolean equals(Object obj) { if (this == obj) { @@ -76,8 +83,8 @@ public boolean equals(Object obj) { } else { DefaultReference other = (DefaultReference) obj; return Objects.equals(this.type, other.type) && - Objects.equals(this.referredSemanticId, other.referredSemanticId) && - Objects.equals(this.keys, other.keys); + Objects.equals(this.referredSemanticId, other.referredSemanticId) && + Objects.equals(this.keys, other.keys); } } @@ -96,6 +103,12 @@ public Reference getReferredSemanticId() { return referredSemanticId; } + @Override + public void setReferredSemanticId(Reference referredSemanticId) { + validateReferredSemanticId(referredSemanticId); + this.referredSemanticId = referredSemanticId; + } + @Override public List getKeys() { return keys; @@ -108,11 +121,11 @@ public void setKeys(List keys) { public String toString() { return String.format( - "DefaultReference (" + "type=%s," - + "referredSemanticId=%s," - + "keys=%s," - + ")", - this.type, this.referredSemanticId, this.keys); + "DefaultReference (" + "type=%s," + + "referredSemanticId=%s," + + "keys=%s," + + ")", + this.type, this.referredSemanticId, this.keys); } /** @@ -131,20 +144,5 @@ protected DefaultReference newBuildingInstance() { } } - } - - private void validateReferredSemanticId(Reference referredSemanticId) { - if (referredSemanticId == null) { - return; - } - Set visited = Collections.newSetFromMap(new IdentityHashMap<>()); - Reference current = referredSemanticId; - while (current != null) { - if (current == this || !visited.add(current)) { - throw new IllegalArgumentException( - "referredSemanticId must not create a circular Reference"); - } - current = current.getReferredSemanticId(); - } - } +} } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index d1e17a716..1203c7071 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement - * + *

* A reference element is a data element that defines a logical reference to another element within * the same or another AAS or a reference to an external object or entity. */ @@ -70,20 +70,21 @@ public class DefaultReferenceElement implements ReferenceElement { @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") protected Reference value; - public DefaultReferenceElement() {} + public DefaultReferenceElement() { + } @Override public int hashCode() { return Objects.hash(this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -97,15 +98,15 @@ public boolean equals(Object obj) { } else { DefaultReferenceElement other = (DefaultReferenceElement) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -211,9 +212,9 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultReferenceElement (" + "value=%s," - + ")", - this.value); + "DefaultReferenceElement (" + "value=%s," + + ")", + this.value); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index 78560ec19..857ff771b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement - * + *

* A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ @@ -73,21 +73,22 @@ public class DefaultRelationshipElement implements RelationshipElement { @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") protected Reference second; - public DefaultRelationshipElement() {} + public DefaultRelationshipElement() { + } @Override public int hashCode() { return Objects.hash(this.first, - this.second, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.second, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -101,16 +102,16 @@ public boolean equals(Object obj) { } else { DefaultRelationshipElement other = (DefaultRelationshipElement) obj; return Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.second, other.second) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -226,10 +227,10 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultRelationshipElement (" + "first=%s," - + "second=%s," - + ")", - this.first, this.second); + "DefaultRelationshipElement (" + "first=%s," + + "second=%s," + + ")", + this.first, this.second); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index 068c2ad83..2a693368d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -24,7 +24,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource - * + *

* Resource represents an address to a file (a locator). The value is an URI that can represent an * absolute or relative path */ @@ -38,12 +38,13 @@ public class DefaultResource implements Resource { @IRI("https://admin-shell.io/aas/3/0/Resource/path") protected String path; - public DefaultResource() {} + public DefaultResource() { + } @Override public int hashCode() { return Objects.hash(this.path, - this.contentType); + this.contentType); } @Override @@ -57,7 +58,7 @@ public boolean equals(Object obj) { } else { DefaultResource other = (DefaultResource) obj; return Objects.equals(this.path, other.path) && - Objects.equals(this.contentType, other.contentType); + Objects.equals(this.contentType, other.contentType); } } @@ -83,10 +84,10 @@ public void setContentType(String contentType) { public String toString() { return String.format( - "DefaultResource (" + "path=%s," - + "contentType=%s," - + ")", - this.path, this.contentType); + "DefaultResource (" + "path=%s," + + "contentType=%s," + + ")", + this.path, this.contentType); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java index fa5e27a11..f5c51fdd3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result - * + * */ @IRI("aas:Result") @@ -36,7 +36,8 @@ public class DefaultResult implements Result { @IRI("https://admin-shell.io/aas/3/0/Result/messages") protected List messages = new ArrayList<>(); - public DefaultResult() {} + public DefaultResult() { + } @Override public int hashCode() { @@ -69,9 +70,9 @@ public void setMessages(List messages) { public String toString() { return String.format( - "DefaultResult (" + "messages=%s," - + ")", - this.messages); + "DefaultResult (" + "messages=%s," + + ")", + this.messages); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java index e2497b864..5127b00ea 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject - * + * */ @IRI("aas:SecurityAttributeObject") @@ -40,13 +40,14 @@ public class DefaultSecurityAttributeObject implements SecurityAttributeObject { @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") protected String value; - public DefaultSecurityAttributeObject() {} + public DefaultSecurityAttributeObject() { + } @Override public int hashCode() { return Objects.hash(this.type, - this.key, - this.value); + this.key, + this.value); } @Override @@ -60,8 +61,8 @@ public boolean equals(Object obj) { } else { DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; return Objects.equals(this.type, other.type) && - Objects.equals(this.key, other.key) && - Objects.equals(this.value, other.value); + Objects.equals(this.key, other.key) && + Objects.equals(this.value, other.value); } } @@ -97,11 +98,11 @@ public void setValue(String value) { public String toString() { return String.format( - "DefaultSecurityAttributeObject (" + "type=%s," - + "key=%s," - + "value=%s," - + ")", - this.type, this.key, this.value); + "DefaultSecurityAttributeObject (" + "type=%s," + + "key=%s," + + "value=%s," + + ")", + this.type, this.key, this.value); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java index 4d0c3b7c3..93d3e4b97 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java @@ -21,45 +21,50 @@ import java.util.Objects; -/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum */ +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum + */ @IRI("aas:SecurityTypeEnum") public class DefaultSecurityTypeEnum implements SecurityTypeEnum { - public DefaultSecurityTypeEnum() {} - - @Override - public String toString() { - return "DefaultSecurityTypeEnum{" + "}"; - } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode()); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; + public DefaultSecurityTypeEnum() { } - return true; - } - /** This builder class can be used to construct a DefaultSecurityTypeEnum bean. */ - public static class Builder extends SecurityTypeEnumBuilder { + @Override + public String toString() { + return "DefaultSecurityTypeEnum{" + "}"; + } @Override - protected Builder getSelf() { - return this; + public int hashCode() { + return Objects.hash(super.hashCode()); } @Override - protected DefaultSecurityTypeEnum newBuildingInstance() { - return new DefaultSecurityTypeEnum(); + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } + return true; + } + + /** + * This builder class can be used to construct a DefaultSecurityTypeEnum bean. + */ + public static class Builder extends SecurityTypeEnumBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSecurityTypeEnum newBuildingInstance() { + return new DefaultSecurityTypeEnum(); + } } - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 53122fe0c..81ab509d2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId - * + *

* A specific asset ID describes a generic supplementary identifying attribute of the asset. */ @@ -49,15 +49,16 @@ public class DefaultSpecificAssetId implements SpecificAssetId { @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") protected String value; - public DefaultSpecificAssetId() {} + public DefaultSpecificAssetId() { + } @Override public int hashCode() { return Objects.hash(this.name, - this.value, - this.externalSubjectId, - this.semanticId, - this.supplementalSemanticIds); + this.value, + this.externalSubjectId, + this.semanticId, + this.supplementalSemanticIds); } @Override @@ -71,10 +72,10 @@ public boolean equals(Object obj) { } else { DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; return Objects.equals(this.name, other.name) && - Objects.equals(this.value, other.value) && - Objects.equals(this.externalSubjectId, other.externalSubjectId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + Objects.equals(this.value, other.value) && + Objects.equals(this.externalSubjectId, other.externalSubjectId) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } } @@ -130,11 +131,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) public String toString() { return String.format( - "DefaultSpecificAssetId (" + "name=%s," - + "value=%s," - + "externalSubjectId=%s," - + ")", - this.name, this.value, this.externalSubjectId); + "DefaultSpecificAssetId (" + "name=%s," + + "value=%s," + + "externalSubjectId=%s," + + ")", + this.name, this.value, this.externalSubjectId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 6c58355f9..83d39fbb6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -35,7 +35,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel - * + *

* A submodel defines a specific aspect of the asset represented by the AAS. */ @@ -81,23 +81,24 @@ public class DefaultSubmodel implements Submodel { @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") protected List submodelElements = new ArrayList<>(); - public DefaultSubmodel() {} + public DefaultSubmodel() { + } @Override public int hashCode() { return Objects.hash(this.submodelElements, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.kind, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.kind, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); } @Override @@ -111,18 +112,18 @@ public boolean equals(Object obj) { } else { DefaultSubmodel other = (DefaultSubmodel) obj; return Objects.equals(this.submodelElements, other.submodelElements) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.kind, other.kind) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers) && + Objects.equals(this.kind, other.kind) && + Objects.equals(this.administration, other.administration) && + Objects.equals(this.id, other.id) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions); } } @@ -258,9 +259,9 @@ public void setExtensions(List extensions) { public String toString() { return String.format( - "DefaultSubmodel (" + "submodelElements=%s," - + ")", - this.submodelElements); + "DefaultSubmodel (" + "submodelElements=%s," + + ")", + this.submodelElements); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java index 794fdf368..07d7fa3ae 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -32,7 +32,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor - * + * */ @IRI("aas:SubmodelDescriptor") @@ -65,19 +65,20 @@ public class DefaultSubmodelDescriptor implements SubmodelDescriptor { @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") protected List supplementalSemanticId = new ArrayList<>(); - public DefaultSubmodelDescriptor() {} + public DefaultSubmodelDescriptor() { + } @Override public int hashCode() { return Objects.hash(this.administration, - this.endpoints, - this.idShort, - this.id, - this.semanticId, - this.supplementalSemanticId, - this.description, - this.displayName, - this.extensions); + this.endpoints, + this.idShort, + this.id, + this.semanticId, + this.supplementalSemanticId, + this.description, + this.displayName, + this.extensions); } @Override @@ -91,14 +92,14 @@ public boolean equals(Object obj) { } else { DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; return Objects.equals(this.administration, other.administration) && - Objects.equals(this.endpoints, other.endpoints) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.id, other.id) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticId, other.supplementalSemanticId) && - Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.extensions, other.extensions); + Objects.equals(this.endpoints, other.endpoints) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.id, other.id) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticId, other.supplementalSemanticId) && + Objects.equals(this.description, other.description) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.extensions, other.extensions); } } @@ -194,14 +195,14 @@ public void setExtensions(List extensions) { public String toString() { return String.format( - "DefaultSubmodelDescriptor (" + "administration=%s," - + "endpoints=%s," - + "idShort=%s," - + "id=%s," - + "semanticId=%s," - + "supplementalSemanticId=%s," - + ")", - this.administration, this.endpoints, this.idShort, this.id, this.semanticId, this.supplementalSemanticId); + "DefaultSubmodelDescriptor (" + "administration=%s," + + "endpoints=%s," + + "idShort=%s," + + "id=%s," + + "semanticId=%s," + + "supplementalSemanticId=%s," + + ")", + this.administration, this.endpoints, this.idShort, this.id, this.semanticId, this.supplementalSemanticId); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java index 3cc74a896..0abddf73d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes - * + * */ @IRI("aas:SubmodelElementAttributes") @@ -70,20 +70,21 @@ public class DefaultSubmodelElementAttributes implements SubmodelElementAttribut @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") protected ModellingKind kind; - public DefaultSubmodelElementAttributes() {} + public DefaultSubmodelElementAttributes() { + } @Override public int hashCode() { return Objects.hash(this.kind, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -97,15 +98,15 @@ public boolean equals(Object obj) { } else { DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; return Objects.equals(this.kind, other.kind) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -211,9 +212,9 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultSubmodelElementAttributes (" + "kind=%s," - + ")", - this.kind); + "DefaultSubmodelElementAttributes (" + "kind=%s," + + ")", + this.kind); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index a1806e16d..017db63f5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -34,7 +34,7 @@ /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection - * + *

* A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ @@ -72,20 +72,21 @@ public class DefaultSubmodelElementCollection implements SubmodelElementCollecti @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") protected List value = new ArrayList<>(); - public DefaultSubmodelElementCollection() {} + public DefaultSubmodelElementCollection() { + } @Override public int hashCode() { return Objects.hash(this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -99,15 +100,15 @@ public boolean equals(Object obj) { } else { DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -213,9 +214,9 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultSubmodelElementCollection (" + "value=%s," - + ")", - this.value); + "DefaultSubmodelElementCollection (" + "value=%s," + + ")", + this.value); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index 51430a7d8..85454afb6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -35,7 +35,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList - * + *

* A submodel element list is an ordered list of submodel elements. */ @@ -84,24 +84,25 @@ public class DefaultSubmodelElementList implements SubmodelElementList { @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") protected DataTypeDefXsd valueTypeListElement; - public DefaultSubmodelElementList() {} + public DefaultSubmodelElementList() { + } @Override public int hashCode() { return Objects.hash(this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); } @Override @@ -115,19 +116,19 @@ public boolean equals(Object obj) { } else { DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; return Objects.equals(this.orderRelevant, other.orderRelevant) && - Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && - Objects.equals(this.typeValueListElement, other.typeValueListElement) && - Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && - Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); + Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && + Objects.equals(this.typeValueListElement, other.typeValueListElement) && + Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && + Objects.equals(this.value, other.value) && + Objects.equals(this.category, other.category) && + Objects.equals(this.idShort, other.idShort) && + Objects.equals(this.displayName, other.displayName) && + Objects.equals(this.description, other.description) && + Objects.equals(this.extensions, other.extensions) && + Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && + Objects.equals(this.semanticId, other.semanticId) && + Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && + Objects.equals(this.qualifiers, other.qualifiers); } } @@ -273,13 +274,13 @@ public void setQualifiers(List qualifiers) { public String toString() { return String.format( - "DefaultSubmodelElementList (" + "orderRelevant=%s," - + "semanticIdListElement=%s," - + "typeValueListElement=%s," - + "valueTypeListElement=%s," - + "value=%s," - + ")", - this.orderRelevant, this.semanticIdListElement, this.typeValueListElement, this.valueTypeListElement, this.value); + "DefaultSubmodelElementList (" + "orderRelevant=%s," + + "semanticIdListElement=%s," + + "typeValueListElement=%s," + + "valueTypeListElement=%s," + + "value=%s," + + ")", + this.orderRelevant, this.semanticIdListElement, this.typeValueListElement, this.valueTypeListElement, this.value); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 95df776d9..8d61abdf9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -27,7 +27,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList - * + *

* A set of value reference pairs. */ @@ -37,7 +37,8 @@ public class DefaultValueList implements ValueList { @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") protected List valueReferencePairs = new ArrayList<>(); - public DefaultValueList() {} + public DefaultValueList() { + } @Override public int hashCode() { @@ -70,9 +71,9 @@ public void setValueReferencePairs(List valueReferencePairs) public String toString() { return String.format( - "DefaultValueList (" + "valueReferencePairs=%s," - + ")", - this.valueReferencePairs); + "DefaultValueList (" + "valueReferencePairs=%s," + + ")", + this.valueReferencePairs); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index 752281744..980263577 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -1,12 +1,12 @@ /* * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. * Copyright (c) 2023, SAP SE or an SAP affiliate company - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under @@ -25,7 +25,7 @@ /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair - * + *

* A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ @@ -39,12 +39,13 @@ public class DefaultValueReferencePair implements ValueReferencePair { @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") protected Reference valueId; - public DefaultValueReferencePair() {} + public DefaultValueReferencePair() { + } @Override public int hashCode() { return Objects.hash(this.value, - this.valueId); + this.valueId); } @Override @@ -58,7 +59,7 @@ public boolean equals(Object obj) { } else { DefaultValueReferencePair other = (DefaultValueReferencePair) obj; return Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId); + Objects.equals(this.valueId, other.valueId); } } @@ -84,10 +85,10 @@ public void setValueId(Reference valueId) { public String toString() { return String.format( - "DefaultValueReferencePair (" + "value=%s," - + "valueId=%s," - + ")", - this.value, this.valueId); + "DefaultValueReferencePair (" + "value=%s," + + "valueId=%s," + + ")", + this.value, this.valueId); } /** From e8dc55177bdcb40514549c5af980715e0d89b081 Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Thu, 28 May 2026 16:15:04 +0200 Subject: [PATCH 11/12] apply spotless --- .../aas4j/v3/model/AasSubmodelElements.java | 173 ++--- .../aas4j/v3/model/AbstractLangString.java | 85 ++- .../v3/model/AdministrativeInformation.java | 147 ++-- .../model/AnnotatedRelationshipElement.java | 51 +- .../v3/model/AssetAdministrationShell.java | 117 ++-- .../AssetAdministrationShellDescriptor.java | 329 +++++---- .../aas4j/v3/model/AssetInformation.java | 205 +++--- .../digitaltwin/aas4j/v3/model/AssetKind.java | 31 +- .../aas4j/v3/model/BaseOperationResult.java | 73 +- .../aas4j/v3/model/BasicEventElement.java | 335 +++++----- .../digitaltwin/aas4j/v3/model/Blob.java | 75 +-- .../aas4j/v3/model/Capability.java | 10 +- .../aas4j/v3/model/ConceptDescription.java | 45 +- .../v3/model/CustomDataSpecification.java | 3 +- .../aas4j/v3/model/DataElement.java | 18 +- .../v3/model/DataSpecificationContent.java | 10 +- .../v3/model/DataSpecificationIec61360.java | 424 ++++++------ .../aas4j/v3/model/DataTypeDefXsd.java | 303 ++++----- .../aas4j/v3/model/DataTypeIec61360.java | 231 +++---- .../aas4j/v3/model/Descriptor.java | 99 ++- .../digitaltwin/aas4j/v3/model/Direction.java | 23 +- .../v3/model/EmbeddedDataSpecification.java | 85 ++- .../digitaltwin/aas4j/v3/model/Endpoint.java | 73 +- .../digitaltwin/aas4j/v3/model/Entity.java | 157 +++-- .../aas4j/v3/model/EntityType.java | 33 +- .../aas4j/v3/model/Environment.java | 116 ++-- .../aas4j/v3/model/EventElement.java | 14 +- .../aas4j/v3/model/EventPayload.java | 321 +++++---- .../aas4j/v3/model/ExecutionState.java | 55 +- .../digitaltwin/aas4j/v3/model/Extension.java | 149 ++--- .../digitaltwin/aas4j/v3/model/File.java | 85 ++- .../aas4j/v3/model/HasDataSpecification.java | 63 +- .../aas4j/v3/model/HasExtensions.java | 49 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 47 +- .../aas4j/v3/model/HasSemantics.java | 97 ++- .../aas4j/v3/model/Identifiable.java | 81 ++- .../digitaltwin/aas4j/v3/model/Key.java | 85 ++- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 243 +++---- .../aas4j/v3/model/LangString.java | 126 ++-- .../LangStringDefinitionTypeIec61360.java | 14 +- .../aas4j/v3/model/LangStringNameType.java | 14 +- .../LangStringPreferredNameTypeIec61360.java | 14 +- .../LangStringShortNameTypeIec61360.java | 14 +- .../aas4j/v3/model/LangStringTextType.java | 14 +- .../digitaltwin/aas4j/v3/model/LevelType.java | 143 ++-- .../digitaltwin/aas4j/v3/model/Message.java | 169 +++-- .../aas4j/v3/model/MessageType.java | 52 +- .../digitaltwin/aas4j/v3/model/ModelType.java | 193 +++--- .../aas4j/v3/model/ModellingKind.java | 33 +- .../aas4j/v3/model/MultiLanguageProperty.java | 81 ++- .../digitaltwin/aas4j/v3/model/Operation.java | 115 ++-- .../aas4j/v3/model/OperationHandle.java | 41 +- .../aas4j/v3/model/OperationRequest.java | 97 ++- .../aas4j/v3/model/OperationResult.java | 75 +-- .../aas4j/v3/model/OperationVariable.java | 43 +- .../aas4j/v3/model/PackageDescription.java | 75 +-- .../digitaltwin/aas4j/v3/model/Property.java | 113 ++-- .../aas4j/v3/model/ProtocolInformation.java | 239 ++++--- .../aas4j/v3/model/Qualifiable.java | 51 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 195 +++--- .../aas4j/v3/model/QualifierKind.java | 31 +- .../digitaltwin/aas4j/v3/model/Range.java | 113 ++-- .../digitaltwin/aas4j/v3/model/Referable.java | 159 +++-- .../digitaltwin/aas4j/v3/model/Reference.java | 115 ++-- .../aas4j/v3/model/ReferenceElement.java | 47 +- .../aas4j/v3/model/ReferenceTypes.java | 23 +- .../aas4j/v3/model/RelationshipElement.java | 75 +-- .../digitaltwin/aas4j/v3/model/Resource.java | 75 +-- .../digitaltwin/aas4j/v3/model/Result.java | 43 +- .../v3/model/SecurityAttributeObject.java | 95 ++- .../aas4j/v3/model/SecurityTypeEnum.java | 31 +- .../aas4j/v3/model/SpecificAssetId.java | 113 ++-- .../aas4j/v3/model/StateOfEvent.java | 23 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 54 +- .../aas4j/v3/model/SubmodelDescriptor.java | 203 +++--- .../aas4j/v3/model/SubmodelElement.java | 27 +- .../v3/model/SubmodelElementAttributes.java | 46 +- .../v3/model/SubmodelElementCollection.java | 45 +- .../aas4j/v3/model/SubmodelElementList.java | 211 +++--- .../digitaltwin/aas4j/v3/model/ValueList.java | 49 +- .../aas4j/v3/model/ValueReferencePair.java | 75 +-- .../aas4j/v3/model/annotations/IRI.java | 16 +- .../v3/model/annotations/KnownSubtypes.java | 25 +- .../v3/model/builder/AbstractBuilder.java | 25 +- .../AdministrativeInformationBuilder.java | 129 ++-- .../AnnotatedRelationshipElementBuilder.java | 427 ++++++------ .../AssetAdministrationShellBuilder.java | 361 +++++----- ...tAdministrationShellDescriptorBuilder.java | 406 +++++------ .../builder/AssetInformationBuilder.java | 129 ++-- .../builder/BaseOperationResultBuilder.java | 89 ++- .../builder/BasicEventElementBuilder.java | 469 +++++++------ .../aas4j/v3/model/builder/BlobBuilder.java | 381 ++++++----- .../aas4j/v3/model/builder/Builder.java | 3 +- .../v3/model/builder/CapabilityBuilder.java | 337 +++++----- .../builder/ConceptDescriptionBuilder.java | 317 +++++---- .../CustomDataSpecificationBuilder.java | 3 +- .../DataSpecificationIec61360Builder.java | 340 +++++----- .../v3/model/builder/DescriptorBuilder.java | 127 ++-- .../EmbeddedDataSpecificationBuilder.java | 47 +- .../v3/model/builder/EndpointBuilder.java | 45 +- .../aas4j/v3/model/builder/EntityBuilder.java | 427 ++++++------ .../v3/model/builder/EnvironmentBuilder.java | 127 ++-- .../v3/model/builder/EventPayloadBuilder.java | 166 ++--- .../v3/model/builder/ExtendableBuilder.java | 6 +- .../v3/model/builder/ExtensionBuilder.java | 167 +++-- .../aas4j/v3/model/builder/FileBuilder.java | 381 ++++++----- .../aas4j/v3/model/builder/KeyBuilder.java | 45 +- ...ngStringDefinitionTypeIec61360Builder.java | 48 +- .../builder/LangStringNameTypeBuilder.java | 47 +- ...tringPreferredNameTypeIec61360Builder.java | 48 +- ...angStringShortNameTypeIec61360Builder.java | 48 +- .../builder/LangStringTextTypeBuilder.java | 47 +- .../v3/model/builder/LevelTypeBuilder.java | 85 ++- .../v3/model/builder/MessageBuilder.java | 105 ++- .../builder/MultiLanguagePropertyBuilder.java | 405 ++++++----- .../v3/model/builder/OperationBuilder.java | 427 ++++++------ .../model/builder/OperationHandleBuilder.java | 27 +- .../builder/OperationRequestBuilder.java | 109 ++- .../model/builder/OperationResultBuilder.java | 89 ++- .../builder/OperationVariableBuilder.java | 27 +- .../builder/PackageDescriptionBuilder.java | 75 ++- .../v3/model/builder/PropertyBuilder.java | 403 ++++++----- .../builder/ProtocolInformationBuilder.java | 189 +++--- .../v3/model/builder/QualifierBuilder.java | 167 +++-- .../aas4j/v3/model/builder/RangeBuilder.java | 403 ++++++----- .../v3/model/builder/ReferenceBuilder.java | 87 ++- .../builder/ReferenceElementBuilder.java | 361 +++++----- .../builder/RelationshipElementBuilder.java | 383 ++++++----- .../v3/model/builder/ResourceBuilder.java | 45 +- .../aas4j/v3/model/builder/ResultBuilder.java | 47 +- .../SecurityAttributeObjectBuilder.java | 73 +- .../builder/SecurityTypeEnumBuilder.java | 3 +- .../model/builder/SpecificAssetIdBuilder.java | 129 ++-- .../v3/model/builder/SubmodelBuilder.java | 447 +++++++------ .../builder/SubmodelDescriptorBuilder.java | 317 +++++---- .../SubmodelElementAttributesBuilder.java | 361 +++++----- .../SubmodelElementCollectionBuilder.java | 383 ++++++----- .../builder/SubmodelElementListBuilder.java | 429 ++++++------ .../v3/model/builder/ValueListBuilder.java | 47 +- .../builder/ValueReferencePairBuilder.java | 47 +- .../DefaultAdministrativeInformation.java | 240 ++++--- .../DefaultAnnotatedRelationshipElement.java | 443 ++++++------ .../impl/DefaultAssetAdministrationShell.java | 432 ++++++------ ...ultAssetAdministrationShellDescriptor.java | 474 ++++++------- .../model/impl/DefaultAssetInformation.java | 244 +++---- .../impl/DefaultBaseOperationResult.java | 170 +++-- .../model/impl/DefaultBasicEventElement.java | 629 +++++++++--------- .../aas4j/v3/model/impl/DefaultBlob.java | 429 ++++++------ .../v3/model/impl/DefaultCapability.java | 362 +++++----- .../model/impl/DefaultConceptDescription.java | 366 +++++----- .../impl/DefaultCustomDataSpecification.java | 66 +- .../DefaultDataSpecificationIec61360.java | 479 ++++++------- .../v3/model/impl/DefaultDescriptor.java | 170 +++-- .../DefaultEmbeddedDataSpecification.java | 139 ++-- .../aas4j/v3/model/impl/DefaultEndpoint.java | 126 ++-- .../aas4j/v3/model/impl/DefaultEntity.java | 479 +++++++------ .../v3/model/impl/DefaultEnvironment.java | 174 +++-- .../v3/model/impl/DefaultEventPayload.java | 356 +++++----- .../aas4j/v3/model/impl/DefaultExtension.java | 265 ++++---- .../aas4j/v3/model/impl/DefaultFile.java | 425 ++++++------ .../aas4j/v3/model/impl/DefaultKey.java | 122 ++-- ...faultLangStringDefinitionTypeIec61360.java | 124 ++-- .../model/impl/DefaultLangStringNameType.java | 123 ++-- ...ltLangStringPreferredNameTypeIec61360.java | 142 ++-- ...efaultLangStringShortNameTypeIec61360.java | 124 ++-- .../model/impl/DefaultLangStringTextType.java | 123 ++-- .../aas4j/v3/model/impl/DefaultLevelType.java | 197 +++--- .../aas4j/v3/model/impl/DefaultMessage.java | 232 +++---- .../impl/DefaultMultiLanguageProperty.java | 427 ++++++------ .../aas4j/v3/model/impl/DefaultOperation.java | 447 +++++++------ .../v3/model/impl/DefaultOperationHandle.java | 100 ++- .../model/impl/DefaultOperationRequest.java | 174 +++-- .../v3/model/impl/DefaultOperationResult.java | 130 ++-- .../model/impl/DefaultOperationVariable.java | 99 ++- .../model/impl/DefaultPackageDescription.java | 141 ++-- .../aas4j/v3/model/impl/DefaultProperty.java | 443 ++++++------ .../impl/DefaultProtocolInformation.java | 327 +++++---- .../aas4j/v3/model/impl/DefaultQualifier.java | 314 +++++---- .../aas4j/v3/model/impl/DefaultRange.java | 443 ++++++------ .../aas4j/v3/model/impl/DefaultReference.java | 184 +++-- .../model/impl/DefaultReferenceElement.java | 395 ++++++----- .../impl/DefaultRelationshipElement.java | 426 ++++++------ .../aas4j/v3/model/impl/DefaultResource.java | 126 ++-- .../aas4j/v3/model/impl/DefaultResult.java | 104 ++- .../impl/DefaultSecurityAttributeObject.java | 163 +++-- .../model/impl/DefaultSecurityTypeEnum.java | 68 +- .../v3/model/impl/DefaultSpecificAssetId.java | 232 ++++--- .../aas4j/v3/model/impl/DefaultSubmodel.java | 469 +++++++------ .../model/impl/DefaultSubmodelDescriptor.java | 383 ++++++----- .../DefaultSubmodelElementAttributes.java | 391 ++++++----- .../DefaultSubmodelElementCollection.java | 394 ++++++----- .../impl/DefaultSubmodelElementList.java | 518 ++++++++------- .../aas4j/v3/model/impl/DefaultValueList.java | 104 ++- .../model/impl/DefaultValueReferencePair.java | 135 ++-- 194 files changed, 16297 insertions(+), 17502 deletions(-) diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index c99ded6fa..be897a98c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -15,116 +15,77 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration of all possible elements of a 'SubmodelElementList'. - */ +/** Enumeration of all possible elements of a 'SubmodelElementList'. */ @IRI("aas:AasSubmodelElements") public enum AasSubmodelElements { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Blob") - BLOB, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Capability") - CAPABILITY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/DataElement") - DATA_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Entity") - ENTITY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/EventElement") - EVENT_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/File") - FILE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Operation") - OPERATION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Property") - PROPERTY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Range") - RANGE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/ReferenceElement") - REFERENCE_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElement") - SUBMODEL_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Blob") + BLOB, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Capability") + CAPABILITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/DataElement") + DATA_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Entity") + ENTITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/EventElement") + EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/File") + FILE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Operation") + OPERATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Property") + PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Range") + RANGE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/ReferenceElement") + REFERENCE_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElement") + SUBMODEL_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + /** */ + @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index 9ee914137..4cd9bb5bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -15,59 +15,54 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -/** - * Strings with language tags - */ +/** Strings with language tags */ @KnownSubtypes({ - @KnownSubtypes.Type(value = LangStringTextType.class), - @KnownSubtypes.Type(value = LangStringNameType.class), - @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringTextType.class), + @KnownSubtypes.Type(value = LangStringNameType.class), + @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) }) public interface AbstractLangString { - /** - * Language tag conforming to BCP 47 - *

- * More information under https://admin-shell.io/aas/3/0/AbstractLangString/language - * - * @return Returns the String for the property language. - */ - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") - String getLanguage(); - - /** - * Language tag conforming to BCP 47 - *

- * More information under https://admin-shell.io/aas/3/0/AbstractLangString/language - * - * @param language desired value for the property language. - */ - void setLanguage(String language); + /** + * Language tag conforming to BCP 47 + * + *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/language + * + * @return Returns the String for the property language. + */ + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + String getLanguage(); - /** - * Text in the 'language' - *

- * More information under https://admin-shell.io/aas/3/0/AbstractLangString/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") - String getText(); + /** + * Language tag conforming to BCP 47 + * + *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/language + * + * @param language desired value for the property language. + */ + void setLanguage(String language); - /** - * Text in the 'language' - *

- * More information under https://admin-shell.io/aas/3/0/AbstractLangString/text - * - * @param text desired value for the property text. - */ - void setText(String text); + /** + * Text in the 'language' + * + *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + String getText(); + /** + * Text in the 'language' + * + *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/text + * + * @param text desired value for the property text. + */ + void setText(String text); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 0d7b6cb8a..3b4dd556a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -15,94 +15,87 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAdministrativeInformation; - -/** - * Administrative meta-information for an element like version information. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAdministrativeInformation.class) -}) +/** Administrative meta-information for an element like version information. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAdministrativeInformation.class)}) public interface AdministrativeInformation extends HasDataSpecification { - /** - * Version of the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version - * - * @return Returns the String for the property version. - */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") - String getVersion(); - - /** - * Version of the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version - * - * @param version desired value for the property version. - */ - void setVersion(String version); + /** + * Version of the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version + * + * @return Returns the String for the property version. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") + String getVersion(); - /** - * Revision of the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision - * - * @return Returns the String for the property revision. - */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") - String getRevision(); + /** + * Version of the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version + * + * @param version desired value for the property version. + */ + void setVersion(String version); - /** - * Revision of the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision - * - * @param revision desired value for the property revision. - */ - void setRevision(String revision); + /** + * Revision of the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision + * + * @return Returns the String for the property revision. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") + String getRevision(); - /** - * The subject ID of the subject responsible for making the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator - * - * @return Returns the Reference for the property creator. - */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") - Reference getCreator(); + /** + * Revision of the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision + * + * @param revision desired value for the property revision. + */ + void setRevision(String revision); - /** - * The subject ID of the subject responsible for making the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator - * - * @param creator desired value for the property creator. - */ - void setCreator(Reference creator); + /** + * The subject ID of the subject responsible for making the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator + * + * @return Returns the Reference for the property creator. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") + Reference getCreator(); - /** - * Identifier of the template that guided the creation of the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId - * - * @return Returns the String for the property templateId. - */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") - String getTemplateId(); + /** + * The subject ID of the subject responsible for making the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator + * + * @param creator desired value for the property creator. + */ + void setCreator(Reference creator); - /** - * Identifier of the template that guided the creation of the element. - *

- * More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId - * - * @param templateId desired value for the property templateId. - */ - void setTemplateId(String templateId); + /** + * Identifier of the template that guided the creation of the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId + * + * @return Returns the String for the property templateId. + */ + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") + String getTemplateId(); + /** + * Identifier of the template that guided the creation of the element. + * + *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId + * + * @param templateId desired value for the property templateId. + */ + void setTemplateId(String templateId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index b2cb55ae7..d5575b28f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -15,41 +15,38 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAnnotatedRelationshipElement; -import java.util.List; - - /** * An annotated relationship element is a relationship element that can be annotated with additional * data elements. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAnnotatedRelationshipElement.class)}) public interface AnnotatedRelationshipElement extends RelationshipElement { - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - *

- * More information under https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations - * - * @return Returns the List of DataElements for the property annotations. - */ - @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") - List getAnnotations(); - - /** - * A data element that represents an annotation that holds for the relationship between the two - * elements - *

- * More information under https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations - * - * @param annotations desired value for the property annotations. - */ - void setAnnotations(List annotations); - + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + *

More information under + * https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations + * + * @return Returns the List of DataElements for the property annotations. + */ + @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") + List getAnnotations(); + + /** + * A data element that represents an annotation that holds for the relationship between the two + * elements + * + *

More information under + * https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations + * + * @param annotations desired value for the property annotations. + */ + void setAnnotations(List annotations); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index fe1416200..f1751e9b6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -15,76 +15,71 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShell; -import java.util.List; - - -/** - * An asset administration shell. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class) -}) +/** An asset administration shell. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class)}) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { - /** - * The reference to the AAS the AAS was derived from. - *

- * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom - * - * @return Returns the Reference for the property derivedFrom. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") - Reference getDerivedFrom(); - - /** - * The reference to the AAS the AAS was derived from. - *

- * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom - * - * @param derivedFrom desired value for the property derivedFrom. - */ - void setDerivedFrom(Reference derivedFrom); + /** + * The reference to the AAS the AAS was derived from. + * + *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom + * + * @return Returns the Reference for the property derivedFrom. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") + Reference getDerivedFrom(); - /** - * Meta-information about the asset the AAS is representing. - *

- * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation - * - * @return Returns the AssetInformation for the property assetInformation. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") - AssetInformation getAssetInformation(); + /** + * The reference to the AAS the AAS was derived from. + * + *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom + * + * @param derivedFrom desired value for the property derivedFrom. + */ + void setDerivedFrom(Reference derivedFrom); - /** - * Meta-information about the asset the AAS is representing. - *

- * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation - * - * @param assetInformation desired value for the property assetInformation. - */ - void setAssetInformation(AssetInformation assetInformation); + /** + * Meta-information about the asset the AAS is representing. + * + *

More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation + * + * @return Returns the AssetInformation for the property assetInformation. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") + AssetInformation getAssetInformation(); - /** - * References to submodels of the AAS. - *

- * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels - * - * @return Returns the List of References for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") - List getSubmodels(); + /** + * Meta-information about the asset the AAS is representing. + * + *

More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation + * + * @param assetInformation desired value for the property assetInformation. + */ + void setAssetInformation(AssetInformation assetInformation); - /** - * References to submodels of the AAS. - *

- * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * References to submodels of the AAS. + * + *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels + * + * @return Returns the List of References for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") + List getSubmodels(); + /** + * References to submodels of the AAS. + * + *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index a83366f34..f8f1c3c6b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -15,186 +15,163 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellDescriptor; -import java.util.List; - - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class)}) public interface AssetAdministrationShellDescriptor extends Descriptor { - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind - * - * @return Returns the AssetKind for the property assetKind. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") - AssetKind getAssetKind(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind - * - * @param assetKind desired value for the property assetKind. - */ - void setAssetKind(AssetKind assetKind); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType - * - * @return Returns the String for the property assetType. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") - String getAssetType(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType - * - * @param assetType desired value for the property assetType. - */ - void setAssetType(String assetType); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints - * - * @return Returns the List of Endpoints for the property endpoints. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") - List getEndpoints(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") - String getGlobalAssetId(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); - - /** - * - * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") - String getIdShort(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * - * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") - String getId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id - * - * @param id desired value for the property id. - */ - void setId(String id); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") - List getSpecificAssetIds(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @return Returns the List of SubmodelDescriptors for the property submodelDescriptors. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") - List getSubmodelDescriptors(); - - /** - * - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors - * - * @param submodelDescriptors desired value for the property submodelDescriptors. - */ - void setSubmodelDescriptors(List submodelDescriptors); - + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind + * + * @return Returns the AssetKind for the property assetKind. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") + AssetKind getAssetKind(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind + * + * @param assetKind desired value for the property assetKind. + */ + void setAssetKind(AssetKind assetKind); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType + * + * @return Returns the String for the property assetType. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") + String getAssetType(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType + * + * @param assetType desired value for the property assetType. + */ + void setAssetType(String assetType); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints + * + * @return Returns the List of Endpoints for the property endpoints. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") + List getEndpoints(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints + * + * @param endpoints desired value for the property endpoints. + */ + void setEndpoints(List endpoints); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") + String getGlobalAssetId(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") + String getIdShort(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") + String getId(); + + /** + * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id + * + * @param id desired value for the property id. + */ + void setId(String id); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") + List getSpecificAssetIds(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @return Returns the List of SubmodelDescriptors for the property submodelDescriptors. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") + List getSubmodelDescriptors(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors + * + * @param submodelDescriptors desired value for the property submodelDescriptors. + */ + void setSubmodelDescriptors(List submodelDescriptors); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index aaa5d07c6..39733557d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -15,119 +15,114 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetInformation; -import java.util.List; - - /** * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultAssetInformation.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetInformation.class)}) public interface AssetInformation { - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind - * - * @return Returns the AssetKind for the property assetKind. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") - AssetKind getAssetKind(); - - /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind - * - * @param assetKind desired value for the property assetKind. - */ - void setAssetKind(AssetKind assetKind); - - /** - * Global identifier of the asset the AAS is representing. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") - String getGlobalAssetId(); - - /** - * Global identifier of the asset the AAS is representing. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") - List getSpecificAssetIds(); - - /** - * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial - * number etc. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset - * under consideration as identified by 'globalAssetId'. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType - * - * @return Returns the String for the property assetType. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") - String getAssetType(); - - /** - * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the asset - * under consideration as identified by 'globalAssetId'. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType - * - * @param assetType desired value for the property assetType. - */ - void setAssetType(String assetType); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail - * - * @return Returns the Resource for the property defaultThumbnail. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") - Resource getDefaultThumbnail(); - - /** - * Thumbnail of the asset represented by the Asset Administration Shell. - *

- * More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail - * - * @param defaultThumbnail desired value for the property defaultThumbnail. - */ - void setDefaultThumbnail(Resource defaultThumbnail); - + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind + * + * @return Returns the AssetKind for the property assetKind. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") + AssetKind getAssetKind(); + + /** + * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind + * + * @param assetKind desired value for the property assetKind. + */ + void setAssetKind(AssetKind assetKind); + + /** + * Global identifier of the asset the AAS is representing. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") + String getGlobalAssetId(); + + /** + * Global identifier of the asset the AAS is representing. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") + List getSpecificAssetIds(); + + /** + * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial + * number etc. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the + * asset under consideration as identified by 'globalAssetId'. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType + * + * @return Returns the String for the property assetType. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") + String getAssetType(); + + /** + * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the + * asset under consideration as identified by 'globalAssetId'. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType + * + * @param assetType desired value for the property assetType. + */ + void setAssetType(String assetType); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail + * + * @return Returns the Resource for the property defaultThumbnail. + */ + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") + Resource getDefaultThumbnail(); + + /** + * Thumbnail of the asset represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail + * + * @param defaultThumbnail desired value for the property defaultThumbnail. + */ + void setDefaultThumbnail(Resource defaultThumbnail); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 09a491db5..05b13ebc8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -15,32 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration for denoting whether an asset is a type asset or an instance asset. - */ +/** Enumeration for denoting whether an asset is a type asset or an instance asset. */ @IRI("aas:AssetKind") public enum AssetKind { - /** - * Instance asset - */ - @IRI("https://admin-shell.io/aas/3/0/AssetKind/Instance") - INSTANCE, - - /** - * Neither a type asset nor an instance asset - */ - @IRI("https://admin-shell.io/aas/3/0/AssetKind/NotApplicable") - NOT_APPLICABLE, + /** Instance asset */ + @IRI("https://admin-shell.io/aas/3/0/AssetKind/Instance") + INSTANCE, - /** - * Type asset - */ - @IRI("https://admin-shell.io/aas/3/0/AssetKind/Type") - TYPE; + /** Neither a type asset nor an instance asset */ + @IRI("https://admin-shell.io/aas/3/0/AssetKind/NotApplicable") + NOT_APPLICABLE, + /** Type asset */ + @IRI("https://admin-shell.io/aas/3/0/AssetKind/Type") + TYPE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java index 43253aa50..630656eac 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -15,52 +15,41 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBaseOperationResult; - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBaseOperationResult.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBaseOperationResult.class)}) public interface BaseOperationResult extends Result { - /** - * - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState - * - * @return Returns the ExecutionState for the property executionState. - */ - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") - ExecutionState getExecutionState(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState - * - * @param executionState desired value for the property executionState. - */ - void setExecutionState(ExecutionState executionState); - - /** - * - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success - * - * @return Returns the boolean for the property success. - */ - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") - boolean getSuccess(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success - * - * @param success desired value for the property success. - */ - void setSuccess(boolean success); - + /** + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState + * + * @return Returns the ExecutionState for the property executionState. + */ + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") + ExecutionState getExecutionState(); + + /** + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState + * + * @param executionState desired value for the property executionState. + */ + void setExecutionState(ExecutionState executionState); + + /** + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") + boolean getSuccess(); + + /** + * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 817f1835f..5532dd9bc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -15,180 +15,175 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBasicEventElement; - -/** - * A basic event element. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBasicEventElement.class) -}) +/** A basic event element. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBasicEventElement.class)}) public interface BasicEventElement extends EventElement { - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed - * - * @return Returns the Reference for the property observed. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") - Reference getObserved(); - - /** - * Reference to the 'Referable', which defines the scope of the event. Can be - * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed - * - * @param observed desired value for the property observed. - */ - void setObserved(Reference observed); - - /** - * Direction of event. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction - * - * @return Returns the Direction for the property direction. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") - Direction getDirection(); - - /** - * Direction of event. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction - * - * @param direction desired value for the property direction. - */ - void setDirection(Direction direction); - - /** - * State of event. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/state - * - * @return Returns the StateOfEvent for the property state. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") - StateOfEvent getState(); - - /** - * State of event. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/state - * - * @param state desired value for the property state. - */ - void setState(StateOfEvent state); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic - * - * @return Returns the String for the property messageTopic. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") - String getMessageTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic - * - * @param messageTopic desired value for the property messageTopic. - */ - void setMessageTopic(String messageTopic); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker - * - * @return Returns the Reference for the property messageBroker. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") - Reference getMessageBroker(); - - /** - * Information, which outer message infrastructure shall handle messages for the 'EventElement'. - * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which - * contains 'DataElement''s describing the proprietary specification for the message broker. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker - * - * @param messageBroker desired value for the property messageBroker. - */ - void setMessageBroker(Reference messageBroker); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate - * - * @return Returns the String for the property lastUpdate. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") - String getLastUpdate(); - - /** - * Timestamp in UTC, when the last event was received (input direction) or sent (output direction). - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate - * - * @param lastUpdate desired value for the property lastUpdate. - */ - void setLastUpdate(String lastUpdate); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the respective - * Referable can handle input events. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval - * - * @return Returns the String for the property minInterval. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") - String getMinInterval(); - - /** - * For input direction, reports on the maximum frequency, the software entity behind the respective - * Referable can handle input events. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval - * - * @param minInterval desired value for the property minInterval. - */ - void setMinInterval(String minInterval); - - /** - * For input direction: not applicable. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval - * - * @return Returns the String for the property maxInterval. - */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") - String getMaxInterval(); - - /** - * For input direction: not applicable. - *

- * More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval - * - * @param maxInterval desired value for the property maxInterval. - */ - void setMaxInterval(String maxInterval); - + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed + * + * @return Returns the Reference for the property observed. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") + Reference getObserved(); + + /** + * Reference to the 'Referable', which defines the scope of the event. Can be + * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed + * + * @param observed desired value for the property observed. + */ + void setObserved(Reference observed); + + /** + * Direction of event. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction + * + * @return Returns the Direction for the property direction. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") + Direction getDirection(); + + /** + * Direction of event. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction + * + * @param direction desired value for the property direction. + */ + void setDirection(Direction direction); + + /** + * State of event. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/state + * + * @return Returns the StateOfEvent for the property state. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") + StateOfEvent getState(); + + /** + * State of event. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/state + * + * @param state desired value for the property state. + */ + void setState(StateOfEvent state); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic + * + * @return Returns the String for the property messageTopic. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") + String getMessageTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic + * + * @param messageTopic desired value for the property messageTopic. + */ + void setMessageTopic(String messageTopic); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker + * + * @return Returns the Reference for the property messageBroker. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") + Reference getMessageBroker(); + + /** + * Information, which outer message infrastructure shall handle messages for the 'EventElement'. + * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which + * contains 'DataElement''s describing the proprietary specification for the message broker. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker + * + * @param messageBroker desired value for the property messageBroker. + */ + void setMessageBroker(Reference messageBroker); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output + * direction). + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate + * + * @return Returns the String for the property lastUpdate. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") + String getLastUpdate(); + + /** + * Timestamp in UTC, when the last event was received (input direction) or sent (output + * direction). + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate + * + * @param lastUpdate desired value for the property lastUpdate. + */ + void setLastUpdate(String lastUpdate); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the + * respective Referable can handle input events. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval + * + * @return Returns the String for the property minInterval. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") + String getMinInterval(); + + /** + * For input direction, reports on the maximum frequency, the software entity behind the + * respective Referable can handle input events. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval + * + * @param minInterval desired value for the property minInterval. + */ + void setMinInterval(String minInterval); + + /** + * For input direction: not applicable. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval + * + * @return Returns the String for the property maxInterval. + */ + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") + String getMaxInterval(); + + /** + * For input direction: not applicable. + * + *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval + * + * @param maxInterval desired value for the property maxInterval. + */ + void setMaxInterval(String maxInterval); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index ba0979549..2d89544a3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -15,57 +15,52 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultBlob; - /** * A 'Blob' is a data element that represents a file that is contained with its source code in the * value attribute. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultBlob.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBlob.class)}) public interface Blob extends DataElement { - /** - * The value of the 'Blob' instance of a blob data element. - *

- * More information under https://admin-shell.io/aas/3/0/Blob/value - * - * @return Returns the byte[] for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/Blob/value") - byte[] getValue(); - - /** - * The value of the 'Blob' instance of a blob data element. - *

- * More information under https://admin-shell.io/aas/3/0/Blob/value - * - * @param value desired value for the property value. - */ - void setValue(byte[] value); + /** + * The value of the 'Blob' instance of a blob data element. + * + *

More information under https://admin-shell.io/aas/3/0/Blob/value + * + * @return Returns the byte[] for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Blob/value") + byte[] getValue(); - /** - * Content type of the content of the 'Blob'. - *

- * More information under https://admin-shell.io/aas/3/0/Blob/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") - String getContentType(); + /** + * The value of the 'Blob' instance of a blob data element. + * + *

More information under https://admin-shell.io/aas/3/0/Blob/value + * + * @param value desired value for the property value. + */ + void setValue(byte[] value); - /** - * Content type of the content of the 'Blob'. - *

- * More information under https://admin-shell.io/aas/3/0/Blob/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Content type of the content of the 'Blob'. + * + *

More information under https://admin-shell.io/aas/3/0/Blob/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") + String getContentType(); + /** + * Content type of the content of the 'Blob'. + * + *

More information under https://admin-shell.io/aas/3/0/Blob/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index 97911472c..ad53bf3c2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -15,18 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultCapability; - /** * A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultCapability.class) -}) -public interface Capability extends SubmodelElement { - -} +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultCapability.class)}) +public interface Capability extends SubmodelElement {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 0288fe3e2..54ca318b5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -15,39 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultConceptDescription; -import java.util.List; - - /** * The semantics of a property or other elements that may have a semantic description is defined by * a concept description. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultConceptDescription.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultConceptDescription.class)}) public interface ConceptDescription extends HasDataSpecification, Identifiable { - /** - * Reference to an external definition the concept is compatible to or was derived from. - *

- * More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf - * - * @return Returns the List of References for the property isCaseOf. - */ - @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") - List getIsCaseOf(); - - /** - * Reference to an external definition the concept is compatible to or was derived from. - *

- * More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf - * - * @param isCaseOfs desired value for the property isCaseOf. - */ - void setIsCaseOf(List isCaseOfs); - + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + *

More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf + * + * @return Returns the List of References for the property isCaseOf. + */ + @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") + List getIsCaseOf(); + + /** + * Reference to an external definition the concept is compatible to or was derived from. + * + *

More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf + * + * @param isCaseOfs desired value for the property isCaseOf. + */ + void setIsCaseOf(List isCaseOfs); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java index e004b1803..71041bb00 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/CustomDataSpecification.java @@ -19,5 +19,4 @@ * This interface is needed to test the serialization/deserialization of a custom data specification * content. See: https://github.com/eclipse-aas4j/aas4j/issues/196 */ -public interface CustomDataSpecification extends DataSpecificationContent { -} \ No newline at end of file +public interface CustomDataSpecification extends DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 947fee649..8dda5b503 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -15,21 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - /** * A data element is a submodel element that is not further composed out of other submodel elements. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = Blob.class), - @KnownSubtypes.Type(value = File.class), - @KnownSubtypes.Type(value = MultiLanguageProperty.class), - @KnownSubtypes.Type(value = Property.class), - @KnownSubtypes.Type(value = Range.class), - @KnownSubtypes.Type(value = ReferenceElement.class) + @KnownSubtypes.Type(value = Blob.class), + @KnownSubtypes.Type(value = File.class), + @KnownSubtypes.Type(value = MultiLanguageProperty.class), + @KnownSubtypes.Type(value = Property.class), + @KnownSubtypes.Type(value = Range.class), + @KnownSubtypes.Type(value = ReferenceElement.class) }) -public interface DataElement extends SubmodelElement { - -} +public interface DataElement extends SubmodelElement {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 830c99164..491e82ea0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -15,18 +15,12 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - /** * Data specification content is part of a data specification template and defines which additional * attributes shall be added to the element instance that references the data specification template * and meta information about the template itself. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DataSpecificationIec61360.class) -}) -public interface DataSpecificationContent { - -} +@KnownSubtypes({@KnownSubtypes.Type(value = DataSpecificationIec61360.class)}) +public interface DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index c5876acc0..8153ea9ce 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -15,250 +15,248 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDataSpecificationIec61360; -import java.util.List; - - /** * Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultDataSpecificationIec61360.class)}) public interface DataSpecificationIec61360 extends DataSpecificationContent { - /** - * Preferred name - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName - * - * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property preferredName. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") - List getPreferredName(); - - /** - * Preferred name - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName - * - * @param preferredNames desired value for the property preferredName. - */ - void setPreferredName(List preferredNames); + /** + * Preferred name + * + *

More information under + * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName + * + * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property + * preferredName. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") + List getPreferredName(); - /** - * Short name - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName - * - * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortName. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") - List getShortName(); + /** + * Preferred name + * + *

More information under + * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName + * + * @param preferredNames desired value for the property preferredName. + */ + void setPreferredName(List preferredNames); - /** - * Short name - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName - * - * @param shortNames desired value for the property shortName. - */ - void setShortName(List shortNames); + /** + * Short name + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName + * + * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortName. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") + List getShortName(); - /** - * Unit - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit - * - * @return Returns the String for the property unit. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") - String getUnit(); + /** + * Short name + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName + * + * @param shortNames desired value for the property shortName. + */ + void setShortName(List shortNames); - /** - * Unit - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit - * - * @param unit desired value for the property unit. - */ - void setUnit(String unit); + /** + * Unit + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit + * + * @return Returns the String for the property unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") + String getUnit(); - /** - * Unique unit id - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId - * - * @return Returns the Reference for the property unitId. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") - Reference getUnitId(); + /** + * Unit + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit + * + * @param unit desired value for the property unit. + */ + void setUnit(String unit); - /** - * Unique unit id - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId - * - * @param unitId desired value for the property unitId. - */ - void setUnitId(Reference unitId); + /** + * Unique unit id + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId + * + * @return Returns the Reference for the property unitId. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") + Reference getUnitId(); - /** - * Source of definition - *

- * More information under - * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition - * - * @return Returns the String for the property sourceOfDefinition. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") - String getSourceOfDefinition(); + /** + * Unique unit id + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId + * + * @param unitId desired value for the property unitId. + */ + void setUnitId(Reference unitId); - /** - * Source of definition - *

- * More information under - * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition - * - * @param sourceOfDefinition desired value for the property sourceOfDefinition. - */ - void setSourceOfDefinition(String sourceOfDefinition); + /** + * Source of definition + * + *

More information under + * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition + * + * @return Returns the String for the property sourceOfDefinition. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") + String getSourceOfDefinition(); - /** - * Symbol - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol - * - * @return Returns the String for the property symbol. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") - String getSymbol(); + /** + * Source of definition + * + *

More information under + * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition + * + * @param sourceOfDefinition desired value for the property sourceOfDefinition. + */ + void setSourceOfDefinition(String sourceOfDefinition); - /** - * Symbol - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol - * - * @param symbol desired value for the property symbol. - */ - void setSymbol(String symbol); + /** + * Symbol + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol + * + * @return Returns the String for the property symbol. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") + String getSymbol(); - /** - * Data Type - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType - * - * @return Returns the DataTypeIec61360 for the property dataType. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") - DataTypeIec61360 getDataType(); + /** + * Symbol + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol + * + * @param symbol desired value for the property symbol. + */ + void setSymbol(String symbol); - /** - * Data Type - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType - * - * @param dataType desired value for the property dataType. - */ - void setDataType(DataTypeIec61360 dataType); + /** + * Data Type + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType + * + * @return Returns the DataTypeIec61360 for the property dataType. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") + DataTypeIec61360 getDataType(); - /** - * Definition in different languages - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition - * - * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definition. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") - List getDefinition(); + /** + * Data Type + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType + * + * @param dataType desired value for the property dataType. + */ + void setDataType(DataTypeIec61360 dataType); - /** - * Definition in different languages - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition - * - * @param definitions desired value for the property definition. - */ - void setDefinition(List definitions); + /** + * Definition in different languages + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition + * + * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definition. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") + List getDefinition(); - /** - * Value Format - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat - * - * @return Returns the String for the property valueFormat. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") - String getValueFormat(); + /** + * Definition in different languages + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition + * + * @param definitions desired value for the property definition. + */ + void setDefinition(List definitions); - /** - * Value Format - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat - * - * @param valueFormat desired value for the property valueFormat. - */ - void setValueFormat(String valueFormat); + /** + * Value Format + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat + * + * @return Returns the String for the property valueFormat. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") + String getValueFormat(); - /** - * List of allowed values - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList - * - * @return Returns the ValueList for the property valueList. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") - ValueList getValueList(); + /** + * Value Format + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat + * + * @param valueFormat desired value for the property valueFormat. + */ + void setValueFormat(String valueFormat); - /** - * List of allowed values - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList - * - * @param valueList desired value for the property valueList. - */ - void setValueList(ValueList valueList); + /** + * List of allowed values + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList + * + * @return Returns the ValueList for the property valueList. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") + ValueList getValueList(); - /** - * Value - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") - String getValue(); + /** + * List of allowed values + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList + * + * @param valueList desired value for the property valueList. + */ + void setValueList(ValueList valueList); - /** - * Value - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Value + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") + String getValue(); - /** - * Set of levels. - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType - * - * @return Returns the LevelType for the property levelType. - */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") - LevelType getLevelType(); + /** + * Value + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Set of levels. - *

- * More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType - * - * @param levelType desired value for the property levelType. - */ - void setLevelType(LevelType levelType); + /** + * Set of levels. + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType + * + * @return Returns the LevelType for the property levelType. + */ + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") + LevelType getLevelType(); + /** + * Set of levels. + * + *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType + * + * @param levelType desired value for the property levelType. + */ + void setLevelType(LevelType levelType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index 26b7237ec..40d49d2fe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -15,194 +15,129 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration listing all XSD anySimpleTypes - */ +/** Enumeration listing all XSD anySimpleTypes */ @IRI("aas:DataTypeDefXsd") public enum DataTypeDefXsd { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/AnyUri") - ANY_URI, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Base64Binary") - BASE64BINARY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Boolean") - BOOLEAN, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Byte") - BYTE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Date") - DATE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/DateTime") - DATE_TIME, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Decimal") - DECIMAL, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double") - DOUBLE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Duration") - DURATION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Float") - FLOAT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GDay") - GDAY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonth") - GMONTH, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonthDay") - GMONTH_DAY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYear") - GYEAR, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYearMonth") - GYEAR_MONTH, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/HexBinary") - HEX_BINARY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Int") - INT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Integer") - INTEGER, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Long") - LONG, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NegativeInteger") - NEGATIVE_INTEGER, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonNegativeInteger") - NON_NEGATIVE_INTEGER, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonPositiveInteger") - NON_POSITIVE_INTEGER, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/PositiveInteger") - POSITIVE_INTEGER, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Short") - SHORT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/String") - STRING, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Time") - TIME, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedByte") - UNSIGNED_BYTE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedInt") - UNSIGNED_INT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedLong") - UNSIGNED_LONG, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedShort") - UNSIGNED_SHORT; + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/AnyUri") + ANY_URI, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Base64Binary") + BASE64BINARY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Boolean") + BOOLEAN, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Byte") + BYTE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Date") + DATE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/DateTime") + DATE_TIME, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Decimal") + DECIMAL, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double") + DOUBLE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Duration") + DURATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Float") + FLOAT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GDay") + GDAY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonth") + GMONTH, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonthDay") + GMONTH_DAY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYear") + GYEAR, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYearMonth") + GYEAR_MONTH, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/HexBinary") + HEX_BINARY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Int") + INT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Integer") + INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Long") + LONG, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NegativeInteger") + NEGATIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonNegativeInteger") + NON_NEGATIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonPositiveInteger") + NON_POSITIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/PositiveInteger") + POSITIVE_INTEGER, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Short") + SHORT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/String") + STRING, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Time") + TIME, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedByte") + UNSIGNED_BYTE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedInt") + UNSIGNED_INT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedLong") + UNSIGNED_LONG, + /** */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedShort") + UNSIGNED_SHORT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index c465ffb1d..9b443c762 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -15,136 +15,113 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * - */ +/** */ @IRI("aas:DataTypeIec61360") public enum DataTypeIec61360 { - /** - * values containing the content of a file. Values may be binaries. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Blob") - BLOB, - - /** - * values representing truth of logic or Boolean algebra (TRUE, FALSE) - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Boolean") - BOOLEAN, - - /** - * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from IEC - * 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Date") - DATE, - - /** - * values containing an address to a file. The values are of type URI and can represent an absolute - * or relative path. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/File") - FILE, - - /** - * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C - * Recommendation 28:2014) - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Html") - HTML, - - /** - * values containing values of type INTEGER but are no currencies or measures - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCount") - INTEGER_COUNT, - - /** - * values containing values of type INTEGER that are currencies - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCurrency") - INTEGER_CURRENCY, - - /** - * values containing values that are measure of type INTEGER. In addition such a value comes with a - * physical unit. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerMeasure") - INTEGER_MEASURE, - - /** - * values conforming to ISO/IEC 11179 series global identifier sequences - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Irdi") - IRDI, - - /** - * values containing values of type STRING conformant to Rfc 3987 - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Iri") - IRI, - - /** - * values containing values of type rational - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Rational") - RATIONAL, - - /** - * values containing values of type rational. In addition such a value comes with a physical unit. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RationalMeasure") - RATIONAL_MEASURE, - - /** - * values containing numbers that can be written as a terminating or non-terminating decimal; a - * rational or irrational number but are no currencies or measures - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCount") - REAL_COUNT, - - /** - * values containing values of type REAL that are currencies - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCurrency") - REAL_CURRENCY, - - /** - * values containing values that are measures of type REAL. In addition such a value comes with a - * physical unit. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealMeasure") - REAL_MEASURE, - - /** - * values consisting of sequence of characters but cannot be translated into other languages - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/String") - STRING, - - /** - * values containing string but shall be represented as different string in different languages - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/StringTranslatable") - STRING_TRANSLATABLE, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Time") - TIME, - - /** - * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the - * corresponding type in xml. - */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Timestamp") - TIMESTAMP; - + /** values containing the content of a file. Values may be binaries. */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Blob") + BLOB, + + /** values representing truth of logic or Boolean algebra (TRUE, FALSE) */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Boolean") + BOOLEAN, + + /** + * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from + * IEC 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Date") + DATE, + + /** + * values containing an address to a file. The values are of type URI and can represent an + * absolute or relative path. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/File") + FILE, + + /** + * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C + * Recommendation 28:2014) + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Html") + HTML, + + /** values containing values of type INTEGER but are no currencies or measures */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCount") + INTEGER_COUNT, + + /** values containing values of type INTEGER that are currencies */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCurrency") + INTEGER_CURRENCY, + + /** + * values containing values that are measure of type INTEGER. In addition such a value comes with + * a physical unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerMeasure") + INTEGER_MEASURE, + + /** values conforming to ISO/IEC 11179 series global identifier sequences */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Irdi") + IRDI, + + /** values containing values of type STRING conformant to Rfc 3987 */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Iri") + IRI, + + /** values containing values of type rational */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Rational") + RATIONAL, + + /** + * values containing values of type rational. In addition such a value comes with a physical unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RationalMeasure") + RATIONAL_MEASURE, + + /** + * values containing numbers that can be written as a terminating or non-terminating decimal; a + * rational or irrational number but are no currencies or measures + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCount") + REAL_COUNT, + + /** values containing values of type REAL that are currencies */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCurrency") + REAL_CURRENCY, + + /** + * values containing values that are measures of type REAL. In addition such a value comes with a + * physical unit. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealMeasure") + REAL_MEASURE, + + /** values consisting of sequence of characters but cannot be translated into other languages */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/String") + STRING, + + /** + * values containing string but shall be represented as different string in different languages + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/StringTranslatable") + STRING_TRANSLATABLE, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Time") + TIME, + + /** + * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the + * corresponding type in xml. + */ + @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Timestamp") + TIMESTAMP; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index 2663909ae..6a5e681b9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -15,72 +15,61 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDescriptor; -import java.util.List; - - -/** - * - */ +/** */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultDescriptor.class), - @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), - @KnownSubtypes.Type(value = SubmodelDescriptor.class) + @KnownSubtypes.Type(value = DefaultDescriptor.class), + @KnownSubtypes.Type(value = AssetAdministrationShellDescriptor.class), + @KnownSubtypes.Type(value = SubmodelDescriptor.class) }) public interface Descriptor { - /** - * - * More information under https://admin-shell.io/aas/3/0/Descriptor/description - * - * @return Returns the List of LangStringTextTypes for the property description. - */ - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - List getDescription(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Descriptor/description - * - * @param descriptions desired value for the property description. - */ - void setDescription(List descriptions); + /** + * More information under https://admin-shell.io/aas/3/0/Descriptor/description + * + * @return Returns the List of LangStringTextTypes for the property description. + */ + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + List getDescription(); - /** - * - * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - List getDisplayName(); + /** + * More information under https://admin-shell.io/aas/3/0/Descriptor/description + * + * @param descriptions desired value for the property description. + */ + void setDescription(List descriptions); - /** - * - * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName - * - * @param displayNames desired value for the property displayName. - */ - void setDisplayName(List displayNames); + /** + * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName + * + * @return Returns the List of LangStringNameTypes for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + List getDisplayName(); - /** - * - * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions - * - * @return Returns the List of Extensions for the property extensions. - */ - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - List getExtensions(); + /** + * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName + * + * @param displayNames desired value for the property displayName. + */ + void setDisplayName(List displayNames); - /** - * - * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions - * - * @param extensions desired value for the property extensions. - */ - void setExtensions(List extensions); + /** + * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions + * + * @return Returns the List of Extensions for the property extensions. + */ + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + List getExtensions(); + /** + * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions + * + * @param extensions desired value for the property extensions. + */ + void setExtensions(List extensions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index 27917e8d8..879d927b3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -15,26 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Direction - */ +/** Direction */ @IRI("aas:Direction") public enum Direction { - /** - * Input direction. - */ - @IRI("https://admin-shell.io/aas/3/0/Direction/Input") - INPUT, - - /** - * Output direction - */ - @IRI("https://admin-shell.io/aas/3/0/Direction/Output") - OUTPUT; + /** Input direction. */ + @IRI("https://admin-shell.io/aas/3/0/Direction/Input") + INPUT, + /** Output direction */ + @IRI("https://admin-shell.io/aas/3/0/Direction/Output") + OUTPUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index 4b1087f43..d6f59766e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -15,58 +15,53 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEmbeddedDataSpecification; - -/** - * Embed the content of a data specification. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class) -}) +/** Embed the content of a data specification. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEmbeddedDataSpecification.class)}) public interface EmbeddedDataSpecification { - /** - * Reference to the data specification - *

- * More information under https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification - * - * @return Returns the Reference for the property dataSpecification. - */ - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") - Reference getDataSpecification(); - - /** - * Reference to the data specification - *

- * More information under https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification - * - * @param dataSpecification desired value for the property dataSpecification. - */ - void setDataSpecification(Reference dataSpecification); + /** + * Reference to the data specification + * + *

More information under + * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification + * + * @return Returns the Reference for the property dataSpecification. + */ + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") + Reference getDataSpecification(); - /** - * Actual content of the data specification - *

- * More information under - * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent - * - * @return Returns the DataSpecificationContent for the property dataSpecificationContent. - */ - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") - DataSpecificationContent getDataSpecificationContent(); + /** + * Reference to the data specification + * + *

More information under + * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification + * + * @param dataSpecification desired value for the property dataSpecification. + */ + void setDataSpecification(Reference dataSpecification); - /** - * Actual content of the data specification - *

- * More information under - * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent - * - * @param dataSpecificationContent desired value for the property dataSpecificationContent. - */ - void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); + /** + * Actual content of the data specification + * + *

More information under + * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent + * + * @return Returns the DataSpecificationContent for the property dataSpecificationContent. + */ + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") + DataSpecificationContent getDataSpecificationContent(); + /** + * Actual content of the data specification + * + *

More information under + * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent + * + * @param dataSpecificationContent desired value for the property dataSpecificationContent. + */ + void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index 7470a3a62..f5be0981b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -15,52 +15,41 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEndpoint; - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEndpoint.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEndpoint.class)}) public interface Endpoint { - /** - * - * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface - * - * @return Returns the String for the property _interface. - */ - @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") - String get_interface(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface - * - * @param _interface desired value for the property _interface. - */ - void set_interface(String _interface); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation - * - * @return Returns the ProtocolInformation for the property protocolInformation. - */ - @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") - ProtocolInformation getProtocolInformation(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation - * - * @param protocolInformation desired value for the property protocolInformation. - */ - void setProtocolInformation(ProtocolInformation protocolInformation); - + /** + * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface + * + * @return Returns the String for the property _interface. + */ + @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") + String get_interface(); + + /** + * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface + * + * @param _interface desired value for the property _interface. + */ + void set_interface(String _interface); + + /** + * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation + * + * @return Returns the ProtocolInformation for the property protocolInformation. + */ + @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") + ProtocolInformation getProtocolInformation(); + + /** + * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation + * + * @param protocolInformation desired value for the property protocolInformation. + */ + void setProtocolInformation(ProtocolInformation protocolInformation); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index dedfdc117..60a13de64 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -15,99 +15,92 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEntity; -import java.util.List; - - -/** - * An entity is a submodel element that is used to model entities. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEntity.class) -}) +/** An entity is a submodel element that is used to model entities. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEntity.class)}) public interface Entity extends SubmodelElement { - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/statements - * - * @return Returns the List of SubmodelElements for the property statements. - */ - @IRI("https://admin-shell.io/aas/3/0/Entity/statements") - List getStatements(); - - /** - * Describes statements applicable to the entity by a set of submodel elements, typically with a - * qualified value. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/statements - * - * @param statements desired value for the property statements. - */ - void setStatements(List statements); + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/statements + * + * @return Returns the List of SubmodelElements for the property statements. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/statements") + List getStatements(); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/entityType - * - * @return Returns the EntityType for the property entityType. - */ - @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") - EntityType getEntityType(); + /** + * Describes statements applicable to the entity by a set of submodel elements, typically with a + * qualified value. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/statements + * + * @param statements desired value for the property statements. + */ + void setStatements(List statements); - /** - * Describes whether the entity is a co-managed entity or a self-managed entity. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/entityType - * - * @param entityType desired value for the property entityType. - */ - void setEntityType(EntityType entityType); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/entityType + * + * @return Returns the EntityType for the property entityType. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") + EntityType getEntityType(); - /** - * Global identifier of the asset the entity is representing. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") - String getGlobalAssetId(); + /** + * Describes whether the entity is a co-managed entity or a self-managed entity. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/entityType + * + * @param entityType desired value for the property entityType. + */ + void setEntityType(EntityType entityType); - /** - * Global identifier of the asset the entity is representing. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId - * - * @param globalAssetId desired value for the property globalAssetId. - */ - void setGlobalAssetId(String globalAssetId); + /** + * Global identifier of the asset the entity is representing. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId + * + * @return Returns the String for the property globalAssetId. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") + String getGlobalAssetId(); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset represented - * by the Asset Administration Shell. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds - * - * @return Returns the List of SpecificAssetIds for the property specificAssetIds. - */ - @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") - List getSpecificAssetIds(); + /** + * Global identifier of the asset the entity is representing. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId + * + * @param globalAssetId desired value for the property globalAssetId. + */ + void setGlobalAssetId(String globalAssetId); - /** - * Reference to a specific asset ID representing a supplementary identifier of the asset represented - * by the Asset Administration Shell. - *

- * More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds - * - * @param specificAssetIds desired value for the property specificAssetIds. - */ - void setSpecificAssetIds(List specificAssetIds); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset + * represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds + * + * @return Returns the List of SpecificAssetIds for the property specificAssetIds. + */ + @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") + List getSpecificAssetIds(); + /** + * Reference to a specific asset ID representing a supplementary identifier of the asset + * represented by the Asset Administration Shell. + * + *

More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds + * + * @param specificAssetIds desired value for the property specificAssetIds. + */ + void setSpecificAssetIds(List specificAssetIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index 0dd80a7a4..d3384cdd6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -15,28 +15,23 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. - */ +/** Enumeration for denoting whether an entity is a self-managed entity or a co-managed entity. */ @IRI("aas:EntityType") public enum EntityType { - /** - * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/0/EntityType/CoManagedEntity") - CO_MANAGED_ENTITY, - - /** - * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite - * self-managed entity. - */ - @IRI("https://admin-shell.io/aas/3/0/EntityType/SelfManagedEntity") - SELF_MANAGED_ENTITY; - + /** + * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/0/EntityType/CoManagedEntity") + CO_MANAGED_ENTITY, + + /** + * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite + * self-managed entity. + */ + @IRI("https://admin-shell.io/aas/3/0/EntityType/SelfManagedEntity") + SELF_MANAGED_ENTITY; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index e4ea1dec7..2e1f49b09 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -15,76 +15,70 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEnvironment; -import java.util.List; - - -/** - * Container for the sets of different identifiables. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEnvironment.class) -}) +/** Container for the sets of different identifiables. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEnvironment.class)}) public interface Environment { - /** - * Asset administration shell - *

- * More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells - * - * @return Returns the List of AssetAdministrationShells for the property assetAdministrationShells. - */ - @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") - List getAssetAdministrationShells(); - - /** - * Asset administration shell - *

- * More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells - * - * @param assetAdministrationShells desired value for the property assetAdministrationShells. - */ - void setAssetAdministrationShells(List assetAdministrationShells); + /** + * Asset administration shell + * + *

More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells + * + * @return Returns the List of AssetAdministrationShells for the property + * assetAdministrationShells. + */ + @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") + List getAssetAdministrationShells(); - /** - * Submodel - *

- * More information under https://admin-shell.io/aas/3/0/Environment/submodels - * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") - List getSubmodels(); + /** + * Asset administration shell + * + *

More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells + * + * @param assetAdministrationShells desired value for the property assetAdministrationShells. + */ + void setAssetAdministrationShells(List assetAdministrationShells); - /** - * Submodel - *

- * More information under https://admin-shell.io/aas/3/0/Environment/submodels - * - * @param submodels desired value for the property submodels. - */ - void setSubmodels(List submodels); + /** + * Submodel + * + *

More information under https://admin-shell.io/aas/3/0/Environment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") + List getSubmodels(); - /** - * Concept description - *

- * More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions - * - * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. - */ - @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") - List getConceptDescriptions(); + /** + * Submodel + * + *

More information under https://admin-shell.io/aas/3/0/Environment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); - /** - * Concept description - *

- * More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions - * - * @param conceptDescriptions desired value for the property conceptDescriptions. - */ - void setConceptDescriptions(List conceptDescriptions); + /** + * Concept description + * + *

More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions + * + * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. + */ + @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") + List getConceptDescriptions(); + /** + * Concept description + * + *

More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions + * + * @param conceptDescriptions desired value for the property conceptDescriptions. + */ + void setConceptDescriptions(List conceptDescriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index aee143f0b..4d7379ee9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -15,16 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -/** - * An event element. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = BasicEventElement.class) -}) -public interface EventElement extends SubmodelElement { - -} +/** An event element. */ +@KnownSubtypes({@KnownSubtypes.Type(value = BasicEventElement.class)}) +public interface EventElement extends SubmodelElement {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index ff95bd0bc..f5c135b10 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -15,174 +15,167 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEventPayload; - -/** - * Defines the necessary information of an event instance sent out or received. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultEventPayload.class) -}) +/** Defines the necessary information of an event instance sent out or received. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultEventPayload.class)}) public interface EventPayload { - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/source - * - * @return Returns the Reference for the property source. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") - Reference getSource(); - - /** - * Reference to the source event element, including identification of 'AssetAdministrationShell', - * 'Submodel', 'SubmodelElement''s. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/source - * - * @param source desired value for the property source. - */ - void setSource(Reference source); - - /** - * 'semanticId' of the source event element, if available - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId - * - * @return Returns the Reference for the property sourceSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") - Reference getSourceSemanticId(); - - /** - * 'semanticId' of the source event element, if available - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId - * - * @param sourceSemanticId desired value for the property sourceSemanticId. - */ - void setSourceSemanticId(Reference sourceSemanticId); - - /** - * Reference to the referable, which defines the scope of the event. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference - * - * @return Returns the Reference for the property observableReference. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") - Reference getObservableReference(); - - /** - * Reference to the referable, which defines the scope of the event. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference - * - * @param observableReference desired value for the property observableReference. - */ - void setObservableReference(Reference observableReference); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId - * - * @return Returns the Reference for the property observableSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") - Reference getObservableSemanticId(); - - /** - * 'semanticId' of the referable which defines the scope of the event, if available. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId - * - * @param observableSemanticId desired value for the property observableSemanticId. - */ - void setObservableSemanticId(Reference observableSemanticId); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/topic - * - * @return Returns the String for the property topic. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") - String getTopic(); - - /** - * Information for the outer message infrastructure for scheduling the event to the respective - * communication channel. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/topic - * - * @param topic desired value for the property topic. - */ - void setTopic(String topic); - - /** - * Subject, who/which initiated the creation. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId - * - * @return Returns the Reference for the property subjectId. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") - Reference getSubjectId(); - - /** - * Subject, who/which initiated the creation. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId - * - * @param subjectId desired value for the property subjectId. - */ - void setSubjectId(Reference subjectId); - - /** - * Timestamp in UTC, when this event was triggered. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp - * - * @return Returns the String for the property timeStamp. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") - String getTimeStamp(); - - /** - * Timestamp in UTC, when this event was triggered. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp - * - * @param timeStamp desired value for the property timeStamp. - */ - void setTimeStamp(String timeStamp); - - /** - * Event specific payload. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/payload - * - * @return Returns the byte[] for the property payload. - */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") - byte[] getPayload(); - - /** - * Event specific payload. - *

- * More information under https://admin-shell.io/aas/3/0/EventPayload/payload - * - * @param payload desired value for the property payload. - */ - void setPayload(byte[] payload); - + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/source + * + * @return Returns the Reference for the property source. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") + Reference getSource(); + + /** + * Reference to the source event element, including identification of 'AssetAdministrationShell', + * 'Submodel', 'SubmodelElement''s. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/source + * + * @param source desired value for the property source. + */ + void setSource(Reference source); + + /** + * 'semanticId' of the source event element, if available + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId + * + * @return Returns the Reference for the property sourceSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") + Reference getSourceSemanticId(); + + /** + * 'semanticId' of the source event element, if available + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId + * + * @param sourceSemanticId desired value for the property sourceSemanticId. + */ + void setSourceSemanticId(Reference sourceSemanticId); + + /** + * Reference to the referable, which defines the scope of the event. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference + * + * @return Returns the Reference for the property observableReference. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") + Reference getObservableReference(); + + /** + * Reference to the referable, which defines the scope of the event. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference + * + * @param observableReference desired value for the property observableReference. + */ + void setObservableReference(Reference observableReference); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId + * + * @return Returns the Reference for the property observableSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") + Reference getObservableSemanticId(); + + /** + * 'semanticId' of the referable which defines the scope of the event, if available. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId + * + * @param observableSemanticId desired value for the property observableSemanticId. + */ + void setObservableSemanticId(Reference observableSemanticId); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/topic + * + * @return Returns the String for the property topic. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") + String getTopic(); + + /** + * Information for the outer message infrastructure for scheduling the event to the respective + * communication channel. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/topic + * + * @param topic desired value for the property topic. + */ + void setTopic(String topic); + + /** + * Subject, who/which initiated the creation. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId + * + * @return Returns the Reference for the property subjectId. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") + Reference getSubjectId(); + + /** + * Subject, who/which initiated the creation. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId + * + * @param subjectId desired value for the property subjectId. + */ + void setSubjectId(Reference subjectId); + + /** + * Timestamp in UTC, when this event was triggered. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp + * + * @return Returns the String for the property timeStamp. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") + String getTimeStamp(); + + /** + * Timestamp in UTC, when this event was triggered. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp + * + * @param timeStamp desired value for the property timeStamp. + */ + void setTimeStamp(String timeStamp); + + /** + * Event specific payload. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/payload + * + * @return Returns the byte[] for the property payload. + */ + @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") + byte[] getPayload(); + + /** + * Event specific payload. + * + *

More information under https://admin-shell.io/aas/3/0/EventPayload/payload + * + * @param payload desired value for the property payload. + */ + void setPayload(byte[] payload); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index 51ca92575..627dd307d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -15,50 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * - */ +/** */ @IRI("aas:ExecutionState") public enum ExecutionState { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Canceled") - CANCELED, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Completed") - COMPLETED, + /** */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Canceled") + CANCELED, - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Failed") - FAILED, + /** */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Completed") + COMPLETED, - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Initiated") - INITIATED, + /** */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Failed") + FAILED, - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Running") - RUNNING, + /** */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Initiated") + INITIATED, - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Timeout") - TIMEOUT; + /** */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Running") + RUNNING, + /** */ + @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Timeout") + TIMEOUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index 887143cd0..101c2255e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -15,95 +15,88 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultExtension; -import java.util.List; - - -/** - * Single extension of an element. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultExtension.class) -}) +/** Single extension of an element. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultExtension.class)}) public interface Extension extends HasSemantics { - /** - * Name of the extension. - *

- * More information under https://admin-shell.io/aas/3/0/Extension/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/0/Extension/name") - String getName(); - - /** - * Name of the extension. - *

- * More information under https://admin-shell.io/aas/3/0/Extension/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * Name of the extension. + * + *

More information under https://admin-shell.io/aas/3/0/Extension/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/name") + String getName(); - /** - * Type of the value of the extension. - *

- * More information under https://admin-shell.io/aas/3/0/Extension/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") - DataTypeDefXsd getValueType(); + /** + * Name of the extension. + * + *

More information under https://admin-shell.io/aas/3/0/Extension/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * Type of the value of the extension. - *

- * More information under https://admin-shell.io/aas/3/0/Extension/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Type of the value of the extension. + * + *

More information under https://admin-shell.io/aas/3/0/Extension/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") + DataTypeDefXsd getValueType(); - /** - * Value of the extension - *

- * More information under https://admin-shell.io/aas/3/0/Extension/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/Extension/value") - String getValue(); + /** + * Type of the value of the extension. + * + *

More information under https://admin-shell.io/aas/3/0/Extension/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * Value of the extension - *

- * More information under https://admin-shell.io/aas/3/0/Extension/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * Value of the extension + * + *

More information under https://admin-shell.io/aas/3/0/Extension/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/value") + String getValue(); - /** - * Reference to an element the extension refers to. - *

- * More information under https://admin-shell.io/aas/3/0/Extension/refersTo - * - * @return Returns the List of References for the property refersTo. - */ - @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") - List getRefersTo(); + /** + * Value of the extension + * + *

More information under https://admin-shell.io/aas/3/0/Extension/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Reference to an element the extension refers to. - *

- * More information under https://admin-shell.io/aas/3/0/Extension/refersTo - * - * @param refersTos desired value for the property refersTo. - */ - void setRefersTo(List refersTos); + /** + * Reference to an element the extension refers to. + * + *

More information under https://admin-shell.io/aas/3/0/Extension/refersTo + * + * @return Returns the List of References for the property refersTo. + */ + @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") + List getRefersTo(); + /** + * Reference to an element the extension refers to. + * + *

More information under https://admin-shell.io/aas/3/0/Extension/refersTo + * + * @param refersTos desired value for the property refersTo. + */ + void setRefersTo(List refersTos); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index 6e250ae88..cde883615 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -15,56 +15,49 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultFile; - -/** - * A File is a data element that represents an address to a file (a locator). - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultFile.class) -}) +/** A File is a data element that represents an address to a file (a locator). */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultFile.class)}) public interface File extends DataElement { - /** - * Path and name of the referenced file (with file extension). - *

- * More information under https://admin-shell.io/aas/3/0/File/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/File/value") - String getValue(); - - /** - * Path and name of the referenced file (with file extension). - *

- * More information under https://admin-shell.io/aas/3/0/File/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Content type of the content of the file. - *

- * More information under https://admin-shell.io/aas/3/0/File/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/0/File/contentType") - String getContentType(); - - /** - * Content type of the content of the file. - *

- * More information under https://admin-shell.io/aas/3/0/File/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); - + /** + * Path and name of the referenced file (with file extension). + * + *

More information under https://admin-shell.io/aas/3/0/File/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/File/value") + String getValue(); + + /** + * Path and name of the referenced file (with file extension). + * + *

More information under https://admin-shell.io/aas/3/0/File/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/0/File/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/0/File/contentType") + String getContentType(); + + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/0/File/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 2e1850ac8..83bde45b1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -15,45 +15,40 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import java.util.List; - - -/** - * Element that can be extended by using data specification templates. - */ +/** Element that can be extended by using data specification templates. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AdministrativeInformation.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface HasDataSpecification { - /** - * Embedded data specification. - *

- * More information under - * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications - * - * @return Returns the List of EmbeddedDataSpecifications for the property - * embeddedDataSpecifications. - */ - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - List getEmbeddedDataSpecifications(); - - /** - * Embedded data specification. - *

- * More information under - * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. - */ - void setEmbeddedDataSpecifications(List embeddedDataSpecifications); - + /** + * Embedded data specification. + * + *

More information under + * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications + * + * @return Returns the List of EmbeddedDataSpecifications for the property + * embeddedDataSpecifications. + */ + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + List getEmbeddedDataSpecifications(); + + /** + * Embedded data specification. + * + *

More information under + * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. + */ + void setEmbeddedDataSpecifications(List embeddedDataSpecifications); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 520da0103..3e7bceb28 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -15,37 +15,30 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import java.util.List; - - -/** - * Element that can be extended by proprietary extensions. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = Referable.class) -}) +/** Element that can be extended by proprietary extensions. */ +@KnownSubtypes({@KnownSubtypes.Type(value = Referable.class)}) public interface HasExtensions { - /** - * An extension of the element. - *

- * More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions - * - * @return Returns the List of Extensions for the property extensions. - */ - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - List getExtensions(); - - /** - * An extension of the element. - *

- * More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions - * - * @param extensions desired value for the property extensions. - */ - void setExtensions(List extensions); - + /** + * An extension of the element. + * + *

More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions + * + * @return Returns the List of Extensions for the property extensions. + */ + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + List getExtensions(); + + /** + * An extension of the element. + * + *

More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions + * + * @param extensions desired value for the property extensions. + */ + void setExtensions(List extensions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index f80b78076..03b686c3a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -15,36 +15,29 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -/** - * An element with a kind is an element that can either represent a template or an instance. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = Submodel.class) -}) +/** An element with a kind is an element that can either represent a template or an instance. */ +@KnownSubtypes({@KnownSubtypes.Type(value = Submodel.class)}) public interface HasKind { - /** - * Kind of the element: either type or instance. - *

- * More information under https://admin-shell.io/aas/3/0/HasKind/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") - ModellingKind getKind(); - - /** - * Kind of the element: either type or instance. - *

- * More information under https://admin-shell.io/aas/3/0/HasKind/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); - + /** + * Kind of the element: either type or instance. + * + *

More information under https://admin-shell.io/aas/3/0/HasKind/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") + ModellingKind getKind(); + + /** + * Kind of the element: either type or instance. + * + *

More information under https://admin-shell.io/aas/3/0/HasKind/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index 539cc88bb..d2f7587d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -15,65 +15,60 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import java.util.List; - - -/** - * Element that can have a semantic definition plus some supplemental semantic definitions. - */ +/** Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Extension.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class), - @KnownSubtypes.Type(value = Qualifier.class) + @KnownSubtypes.Type(value = SpecificAssetId.class), + @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element or - * also main semantic ID of the element. - *

- * More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - Reference getSemanticId(); - - /** - * Identifier of the semantic definition of the element. It is called semantic ID of the element or - * also main semantic ID of the element. - *

- * More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element + * or also main semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + Reference getSemanticId(); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - *

- * More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds - * - * @return Returns the List of References for the property supplementalSemanticIds. - */ - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - List getSupplementalSemanticIds(); + /** + * Identifier of the semantic definition of the element. It is called semantic ID of the element + * or also main semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); - /** - * Identifier of a supplemental semantic definition of the element. It is called supplemental - * semantic ID of the element. - *

- * More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds - * - * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. - */ - void setSupplementalSemanticIds(List supplementalSemanticIds); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds + * + * @return Returns the List of References for the property supplementalSemanticIds. + */ + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + List getSupplementalSemanticIds(); + /** + * Identifier of a supplemental semantic definition of the element. It is called supplemental + * semantic ID of the element. + * + *

More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds + * + * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. + */ + void setSupplementalSemanticIds(List supplementalSemanticIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index 488f68e0e..7a6a679d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -15,57 +15,52 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -/** - * An element that has a globally unique identifier. - */ +/** An element that has a globally unique identifier. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = AssetAdministrationShell.class), - @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = AssetAdministrationShell.class), + @KnownSubtypes.Type(value = ConceptDescription.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Identifiable extends Referable { - /** - * Administrative information of an identifiable element. - *

- * More information under https://admin-shell.io/aas/3/0/Identifiable/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") - AdministrativeInformation getAdministration(); - - /** - * Administrative information of an identifiable element. - *

- * More information under https://admin-shell.io/aas/3/0/Identifiable/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); + /** + * Administrative information of an identifiable element. + * + *

More information under https://admin-shell.io/aas/3/0/Identifiable/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + AdministrativeInformation getAdministration(); - /** - * The globally unique identification of the element. - *

- * More information under https://admin-shell.io/aas/3/0/Identifiable/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") - String getId(); + /** + * Administrative information of an identifiable element. + * + *

More information under https://admin-shell.io/aas/3/0/Identifiable/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); - /** - * The globally unique identification of the element. - *

- * More information under https://admin-shell.io/aas/3/0/Identifiable/id - * - * @param id desired value for the property id. - */ - void setId(String id); + /** + * The globally unique identification of the element. + * + *

More information under https://admin-shell.io/aas/3/0/Identifiable/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + String getId(); + /** + * The globally unique identification of the element. + * + *

More information under https://admin-shell.io/aas/3/0/Identifiable/id + * + * @param id desired value for the property id. + */ + void setId(String id); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index d0dd32eb2..ce177a620 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -15,56 +15,49 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultKey; - -/** - * A key is a reference to an element by its ID. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultKey.class) -}) +/** A key is a reference to an element by its ID. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultKey.class)}) public interface Key { - /** - * Denotes which kind of entity is referenced. - *

- * More information under https://admin-shell.io/aas/3/0/Key/type - * - * @return Returns the KeyTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/0/Key/type") - KeyTypes getType(); - - /** - * Denotes which kind of entity is referenced. - *

- * More information under https://admin-shell.io/aas/3/0/Key/type - * - * @param type desired value for the property type. - */ - void setType(KeyTypes type); - - /** - * The key value, for example an IRDI or an URI - *

- * More information under https://admin-shell.io/aas/3/0/Key/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/Key/value") - String getValue(); - - /** - * The key value, for example an IRDI or an URI - *

- * More information under https://admin-shell.io/aas/3/0/Key/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - + /** + * Denotes which kind of entity is referenced. + * + *

More information under https://admin-shell.io/aas/3/0/Key/type + * + * @return Returns the KeyTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/Key/type") + KeyTypes getType(); + + /** + * Denotes which kind of entity is referenced. + * + *

More information under https://admin-shell.io/aas/3/0/Key/type + * + * @param type desired value for the property type. + */ + void setType(KeyTypes type); + + /** + * The key value, for example an IRDI or an URI + * + *

More information under https://admin-shell.io/aas/3/0/Key/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Key/value") + String getValue(); + + /** + * The key value, for example an IRDI or an URI + * + *

More information under https://admin-shell.io/aas/3/0/Key/value + * + * @param value desired value for the property value. + */ + void setValue(String value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index b7ac85d9c..9e7983b78 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -15,158 +15,105 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration of different key value types within a key. - */ +/** Enumeration of different key value types within a key. */ @IRI("aas:KeyTypes") public enum KeyTypes { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Blob") - BLOB, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Capability") - CAPABILITY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** - * Data element. - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/DataElement") - DATA_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Entity") - ENTITY, - - /** - * Event. - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/EventElement") - EVENT_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/File") - FILE, - - /** - * Bookmark or a similar local identifier of a subordinate part of a primary resource - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/FragmentReference") - FRAGMENT_REFERENCE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference") - GLOBAL_REFERENCE, - - /** - * Identifiable. - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Identifiable") - IDENTIFIABLE, - - /** - * Property with a value that can be provided in multiple languages - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Operation") - OPERATION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Property") - PROPERTY, - - /** - * Range with min and max - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Range") - RANGE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Referable") - REFERABLE, - - /** - * Reference - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ReferenceElement") - REFERENCE_ELEMENT, - - /** - * Relationship - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Submodel") - SUBMODEL, - - /** - * Submodel Element - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElement") - SUBMODEL_ELEMENT, - - /** - * Struct of Submodel Elements - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** - * List of Submodel Elements - */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Blob") + BLOB, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Capability") + CAPABILITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** Data element. */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/DataElement") + DATA_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Entity") + ENTITY, + + /** Event. */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/EventElement") + EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/File") + FILE, + + /** Bookmark or a similar local identifier of a subordinate part of a primary resource */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/FragmentReference") + FRAGMENT_REFERENCE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference") + GLOBAL_REFERENCE, + + /** Identifiable. */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Identifiable") + IDENTIFIABLE, + + /** Property with a value that can be provided in multiple languages */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Operation") + OPERATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Property") + PROPERTY, + + /** Range with min and max */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Range") + RANGE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Referable") + REFERABLE, + + /** Reference */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ReferenceElement") + REFERENCE_ELEMENT, + + /** Relationship */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Submodel") + SUBMODEL, + + /** Submodel Element */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElement") + SUBMODEL_ELEMENT, + + /** Struct of Submodel Elements */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + /** List of Submodel Elements */ + @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index f6c2b21ca..4271a9388 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -15,79 +15,77 @@ package org.eclipse.digitaltwin.aas4j.v3.model; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - import java.io.Serializable; import java.util.Objects; - +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; @IRI("rdf:langString") public class LangString implements Serializable { - private String language = null; - private String value = null; - - public LangString() { - super(); - } - - public LangString(String valueAndLanguage) { - if (valueAndLanguage.contains("@")) { - String[] splitString = valueAndLanguage.split("@"); - this.value = splitString[0]; - this.language = splitString[1]; - } else { - this.value = valueAndLanguage; - } - } - - public LangString(String value, String language) { - this.value = value; - this.language = language; - } - - public String getLanguage() { - return language; - } - - public void setLanguage(String language) { - this.language = language; - } - - public String getValue() { - return value; - } + private String language = null; + private String value = null; - public void setValue(String value) { - this.value = value; - } + public LangString() { + super(); + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - LangString other = (LangString) obj; - return Objects.equals(this.language, other.language) && Objects.equals(this.value, other.value); - } + public LangString(String valueAndLanguage) { + if (valueAndLanguage.contains("@")) { + String[] splitString = valueAndLanguage.split("@"); + this.value = splitString[0]; + this.language = splitString[1]; + } else { + this.value = valueAndLanguage; } - - @Override - public int hashCode() { - return Objects.hash(this.language, this.value); + } + + public LangString(String value, String language) { + this.value = value; + this.language = language; + } + + public String getLanguage() { + return language; + } + + public void setLanguage(String language) { + this.language = language; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + LangString other = (LangString) obj; + return Objects.equals(this.language, other.language) + && Objects.equals(this.value, other.value); } - - @Override - public String toString() { - String result = this.value; - if (this.language != null && !this.language.isEmpty()) { - return "\"" + result + "\"@" + this.language; - } - return result; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.value); + } + + @Override + public String toString() { + String result = this.value; + if (this.language != null && !this.language.isEmpty()) { + return "\"" + result + "\"@" + this.language; } - + return result; + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index 7c8fed233..5a88a50cd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -15,17 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringDefinitionTypeIec61360; - -/** - * String with length 1023 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class) -}) -public interface LangStringDefinitionTypeIec61360 extends AbstractLangString { - -} +/** String with length 1023 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeIec61360.class)}) +public interface LangStringDefinitionTypeIec61360 extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 93c4ff81c..8b8246f31 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -15,17 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringNameType; - -/** - * String with length 128 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringNameType.class) -}) -public interface LangStringNameType extends AbstractLangString { - -} +/** String with length 128 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringNameType.class)}) +public interface LangStringNameType extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 9f94dc713..08093b1db 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -15,17 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringPreferredNameTypeIec61360; - -/** - * String with length 255 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class) -}) -public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString { - -} +/** String with length 255 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringPreferredNameTypeIec61360.class)}) +public interface LangStringPreferredNameTypeIec61360 extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index 9d8027636..41a8a3dd6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -15,17 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringShortNameTypeIec61360; - -/** - * String with length 18 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class) -}) -public interface LangStringShortNameTypeIec61360 extends AbstractLangString { - -} +/** String with length 18 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringShortNameTypeIec61360.class)}) +public interface LangStringShortNameTypeIec61360 extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index c1696aa49..22129354b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -15,17 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringTextType; - -/** - * String with length 1023 maximum and minimum 1 characters and with language tags - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLangStringTextType.class) -}) -public interface LangStringTextType extends AbstractLangString { - -} +/** String with length 1023 maximum and minimum 1 characters and with language tags */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringTextType.class)}) +public interface LangStringTextType extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index d0d22d953..5cac25173 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -15,95 +15,90 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLevelType; - /** * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and * MAX. True means that the value is available, false means the value is not available. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultLevelType.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLevelType.class)}) public interface LevelType { - /** - * Minimum of the value - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/min - * - * @return Returns the boolean for the property min. - */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/min") - boolean getMin(); - - /** - * Minimum of the value - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/min - * - * @param min desired value for the property min. - */ - void setMin(boolean min); + /** + * Minimum of the value + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/min + * + * @return Returns the boolean for the property min. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/min") + boolean getMin(); - /** - * Nominal value (value as designated) - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/nom - * - * @return Returns the boolean for the property nom. - */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") - boolean getNom(); + /** + * Minimum of the value + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/min + * + * @param min desired value for the property min. + */ + void setMin(boolean min); - /** - * Nominal value (value as designated) - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/nom - * - * @param nom desired value for the property nom. - */ - void setNom(boolean nom); + /** + * Nominal value (value as designated) + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/nom + * + * @return Returns the boolean for the property nom. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") + boolean getNom(); - /** - * Value as typically present - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/typ - * - * @return Returns the boolean for the property typ. - */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") - boolean getTyp(); + /** + * Nominal value (value as designated) + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/nom + * + * @param nom desired value for the property nom. + */ + void setNom(boolean nom); - /** - * Value as typically present - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/typ - * - * @param typ desired value for the property typ. - */ - void setTyp(boolean typ); + /** + * Value as typically present + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/typ + * + * @return Returns the boolean for the property typ. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") + boolean getTyp(); - /** - * Maximum of the value - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/max - * - * @return Returns the boolean for the property max. - */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/max") - boolean getMax(); + /** + * Value as typically present + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/typ + * + * @param typ desired value for the property typ. + */ + void setTyp(boolean typ); - /** - * Maximum of the value - *

- * More information under https://admin-shell.io/aas/3/0/LevelType/max - * - * @param max desired value for the property max. - */ - void setMax(boolean max); + /** + * Maximum of the value + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/max + * + * @return Returns the boolean for the property max. + */ + @IRI("https://admin-shell.io/aas/3/0/LevelType/max") + boolean getMax(); + /** + * Maximum of the value + * + *

More information under https://admin-shell.io/aas/3/0/LevelType/max + * + * @param max desired value for the property max. + */ + void setMax(boolean max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index 5c0f8c5ab..d3a1afbc7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -15,103 +15,86 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMessage; - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMessage.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMessage.class)}) public interface Message { - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/code - * - * @return Returns the String for the property code. - */ - @IRI("https://admin-shell.io/aas/3/0/Message/code") - String getCode(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/code - * - * @param code desired value for the property code. - */ - void setCode(String code); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/correlationId - * - * @return Returns the String for the property correlationId. - */ - @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") - String getCorrelationId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/correlationId - * - * @param correlationId desired value for the property correlationId. - */ - void setCorrelationId(String correlationId); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/messageType - * - * @return Returns the MessageTypeEnum for the property messageType. - */ - @IRI("https://admin-shell.io/aas/3/0/Message/messageType") - MessageTypeEnum getMessageType(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/messageType - * - * @param messageType desired value for the property messageType. - */ - void setMessageType(MessageTypeEnum messageType); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/text - * - * @return Returns the String for the property text. - */ - @IRI("https://admin-shell.io/aas/3/0/Message/text") - String getText(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/text - * - * @param text desired value for the property text. - */ - void setText(String text); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/timestamp - * - * @return Returns the String for the property timestamp. - */ - @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") - String getTimestamp(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Message/timestamp - * - * @param timestamp desired value for the property timestamp. - */ - void setTimestamp(String timestamp); - + /** + * More information under https://admin-shell.io/aas/3/0/Message/code + * + * @return Returns the String for the property code. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/code") + String getCode(); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/code + * + * @param code desired value for the property code. + */ + void setCode(String code); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/correlationId + * + * @return Returns the String for the property correlationId. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") + String getCorrelationId(); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/correlationId + * + * @param correlationId desired value for the property correlationId. + */ + void setCorrelationId(String correlationId); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/messageType + * + * @return Returns the MessageTypeEnum for the property messageType. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/messageType") + MessageTypeEnum getMessageType(); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/messageType + * + * @param messageType desired value for the property messageType. + */ + void setMessageType(MessageTypeEnum messageType); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/text + * + * @return Returns the String for the property text. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/text") + String getText(); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/text + * + * @param text desired value for the property text. + */ + void setText(String text); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/timestamp + * + * @return Returns the String for the property timestamp. + */ + @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") + String getTimestamp(); + + /** + * More information under https://admin-shell.io/aas/3/0/Message/timestamp + * + * @param timestamp desired value for the property timestamp. + */ + void setTimestamp(String timestamp); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java index d9beb154b..1a1df99e5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -17,39 +17,27 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** - * - */ +/** */ @IRI("aas:MessageType") public enum MessageType { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") - ERROR, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") - EXCEPTION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") - INFO, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") - UNDEFINED, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") - WARNING; + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") + ERROR, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") + EXCEPTION, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") + INFO, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") + UNDEFINED, + + /** */ + @IRI("https://admin-shell.io/aas/3/2/MessageType/Warning") + WARNING; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index d846b3dd3..202e529cb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -15,128 +15,85 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * - */ +/** */ @IRI("aas:ModelType") public enum ModelType { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/AnnotatedRelationshipElement") - ANNOTATED_RELATIONSHIP_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/AssetAdministrationShell") - ASSET_ADMINISTRATION_SHELL, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/BasicEventElement") - BASIC_EVENT_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Blob") - BLOB, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Capability") - CAPABILITY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/ConceptDescription") - CONCEPT_DESCRIPTION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Entity") - ENTITY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/File") - FILE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/MultiLanguageProperty") - MULTI_LANGUAGE_PROPERTY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Operation") - OPERATION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Property") - PROPERTY, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Qualifier") - QUALIFIER, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Range") - RANGE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Reference") - REFERENCE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/ReferenceElement") - REFERENCE_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/RelationshipElement") - RELATIONSHIP_ELEMENT, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Submodel") - SUBMODEL, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementCollection") - SUBMODEL_ELEMENT_COLLECTION, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementList") - SUBMODEL_ELEMENT_LIST; + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/AnnotatedRelationshipElement") + ANNOTATED_RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/AssetAdministrationShell") + ASSET_ADMINISTRATION_SHELL, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/BasicEventElement") + BASIC_EVENT_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Blob") + BLOB, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Capability") + CAPABILITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/ConceptDescription") + CONCEPT_DESCRIPTION, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Entity") + ENTITY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/File") + FILE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/MultiLanguageProperty") + MULTI_LANGUAGE_PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Operation") + OPERATION, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Property") + PROPERTY, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Qualifier") + QUALIFIER, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Range") + RANGE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Reference") + REFERENCE, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/ReferenceElement") + REFERENCE_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/RelationshipElement") + RELATIONSHIP_ELEMENT, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/Submodel") + SUBMODEL, + + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementCollection") + SUBMODEL_ELEMENT_COLLECTION, + /** */ + @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementList") + SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index 920b726c2..fcb63bf3c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -15,28 +15,23 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration for denoting whether an element is a template or an instance. - */ +/** Enumeration for denoting whether an element is a template or an instance. */ @IRI("aas:ModellingKind") public enum ModellingKind { - /** - * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a - * corresponding element template. - */ - @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Instance") - INSTANCE, - - /** - * Specification of the common features of a structured element in sufficient detail that such a - * instance can be instantiated using it - */ - @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Template") - TEMPLATE; - + /** + * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a + * corresponding element template. + */ + @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Instance") + INSTANCE, + + /** + * Specification of the common features of a structured element in sufficient detail that such a + * instance can be instantiated using it + */ + @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Template") + TEMPLATE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 27709a010..201a35ec7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -15,57 +15,50 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMultiLanguageProperty; -import java.util.List; - - -/** - * A property is a data element that has a multi-language value. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class) -}) +/** A property is a data element that has a multi-language value. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class)}) public interface MultiLanguageProperty extends DataElement { - /** - * The value of the property instance. - *

- * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value - * - * @return Returns the List of LangStringTextTypes for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") - List getValue(); - - /** - * The value of the property instance. - *

- * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value - * - * @param values desired value for the property value. - */ - void setValue(List values); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value + * + * @return Returns the List of LangStringTextTypes for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") + List getValue(); - /** - * Reference to the global unique ID of a coded value. - *

- * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") - Reference getValueId(); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value + * + * @param values desired value for the property value. + */ + void setValue(List values); - /** - * Reference to the global unique ID of a coded value. - *

- * More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") + Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index 169fa277e..b0c9f2b4e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -15,76 +15,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperation; -import java.util.List; - - -/** - * An operation is a submodel element with input and output variables. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperation.class) -}) +/** An operation is a submodel element with input and output variables. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperation.class)}) public interface Operation extends SubmodelElement { - /** - * Input parameter of the operation. - *

- * More information under https://admin-shell.io/aas/3/0/Operation/inputVariables - * - * @return Returns the List of OperationVariables for the property inputVariables. - */ - @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") - List getInputVariables(); - - /** - * Input parameter of the operation. - *

- * More information under https://admin-shell.io/aas/3/0/Operation/inputVariables - * - * @param inputVariables desired value for the property inputVariables. - */ - void setInputVariables(List inputVariables); + /** + * Input parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/0/Operation/inputVariables + * + * @return Returns the List of OperationVariables for the property inputVariables. + */ + @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") + List getInputVariables(); - /** - * Output parameter of the operation. - *

- * More information under https://admin-shell.io/aas/3/0/Operation/outputVariables - * - * @return Returns the List of OperationVariables for the property outputVariables. - */ - @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") - List getOutputVariables(); + /** + * Input parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/0/Operation/inputVariables + * + * @param inputVariables desired value for the property inputVariables. + */ + void setInputVariables(List inputVariables); - /** - * Output parameter of the operation. - *

- * More information under https://admin-shell.io/aas/3/0/Operation/outputVariables - * - * @param outputVariables desired value for the property outputVariables. - */ - void setOutputVariables(List outputVariables); + /** + * Output parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/0/Operation/outputVariables + * + * @return Returns the List of OperationVariables for the property outputVariables. + */ + @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") + List getOutputVariables(); - /** - * Parameter that is input and output of the operation. - *

- * More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables - * - * @return Returns the List of OperationVariables for the property inoutputVariables. - */ - @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") - List getInoutputVariables(); + /** + * Output parameter of the operation. + * + *

More information under https://admin-shell.io/aas/3/0/Operation/outputVariables + * + * @param outputVariables desired value for the property outputVariables. + */ + void setOutputVariables(List outputVariables); - /** - * Parameter that is input and output of the operation. - *

- * More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables - * - * @param inoutputVariables desired value for the property inoutputVariables. - */ - void setInoutputVariables(List inoutputVariables); + /** + * Parameter that is input and output of the operation. + * + *

More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables + * + * @return Returns the List of OperationVariables for the property inoutputVariables. + */ + @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") + List getInoutputVariables(); + /** + * Parameter that is input and output of the operation. + * + *

More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables + * + * @param inoutputVariables desired value for the property inoutputVariables. + */ + void setInoutputVariables(List inoutputVariables); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index f28ac0fb8..10a5ed330 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -15,35 +15,26 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationHandle; - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationHandle.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationHandle.class)}) public interface OperationHandle { - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId - * - * @return Returns the String for the property handleId. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") - String getHandleId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId - * - * @param handleId desired value for the property handleId. - */ - void setHandleId(String handleId); - + /** + * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId + * + * @return Returns the String for the property handleId. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") + String getHandleId(); + + /** + * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId + * + * @param handleId desired value for the property handleId. + */ + void setHandleId(String handleId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 431ab02b7..037261b84 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -15,70 +15,57 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; -import java.util.List; - - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationRequest.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) public interface OperationRequest { - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments - * - * @return Returns the List of OperationVariables for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") - List getInoutputArguments(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(List inoutputArguments); + /** + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments + * + * @return Returns the List of OperationVariables for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") + List getInoutputArguments(); - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments - * - * @return Returns the List of OperationVariables for the property inputArguments. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") - List getInputArguments(); + /** + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(List inoutputArguments); - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments - * - * @param inputArguments desired value for the property inputArguments. - */ - void setInputArguments(List inputArguments); + /** + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments + * + * @return Returns the List of OperationVariables for the property inputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") + List getInputArguments(); - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration - * - * @return Returns the String for the property clientTimeoutDuration. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") - String getClientTimeoutDuration(); + /** + * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments + * + * @param inputArguments desired value for the property inputArguments. + */ + void setInputArguments(List inputArguments); - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration - * - * @param clientTimeoutDuration desired value for the property clientTimeoutDuration. - */ - void setClientTimeoutDuration(String clientTimeoutDuration); + /** + * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration + * + * @return Returns the String for the property clientTimeoutDuration. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") + String getClientTimeoutDuration(); + /** + * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration + * + * @param clientTimeoutDuration desired value for the property clientTimeoutDuration. + */ + void setClientTimeoutDuration(String clientTimeoutDuration); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index a2da1bf9f..d6e4b6e0d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -15,53 +15,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationResult; -import java.util.List; - - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationResult.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationResult.class)}) public interface OperationResult { - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments - * - * @return Returns the List of OperationVariables for the property inoutputArguments. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") - List getInoutputArguments(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments - * - * @param inoutputArguments desired value for the property inoutputArguments. - */ - void setInoutputArguments(List inoutputArguments); - - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments - * - * @return Returns the List of OperationVariables for the property outputArguments. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") - List getOutputArguments(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments - * - * @param outputArguments desired value for the property outputArguments. - */ - void setOutputArguments(List outputArguments); - + /** + * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments + * + * @return Returns the List of OperationVariables for the property inoutputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") + List getInoutputArguments(); + + /** + * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments + * + * @param inoutputArguments desired value for the property inoutputArguments. + */ + void setInoutputArguments(List inoutputArguments); + + /** + * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments + * + * @return Returns the List of OperationVariables for the property outputArguments. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") + List getOutputArguments(); + + /** + * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments + * + * @param outputArguments desired value for the property outputArguments. + */ + void setOutputArguments(List outputArguments); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index c8ff6ae4d..e6523955d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -15,38 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationVariable; - /** * The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultOperationVariable.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationVariable.class)}) public interface OperationVariable { - /** - * Describes an argument or result of an operation via a submodel element - *

- * More information under https://admin-shell.io/aas/3/0/OperationVariable/value - * - * @return Returns the SubmodelElement for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") - SubmodelElement getValue(); - - /** - * Describes an argument or result of an operation via a submodel element - *

- * More information under https://admin-shell.io/aas/3/0/OperationVariable/value - * - * @param value desired value for the property value. - */ - void setValue(SubmodelElement value); - + /** + * Describes an argument or result of an operation via a submodel element + * + *

More information under https://admin-shell.io/aas/3/0/OperationVariable/value + * + * @return Returns the SubmodelElement for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") + SubmodelElement getValue(); + + /** + * Describes an argument or result of an operation via a submodel element + * + *

More information under https://admin-shell.io/aas/3/0/OperationVariable/value + * + * @param value desired value for the property value. + */ + void setValue(SubmodelElement value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index 251df7328..07f66e670 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -15,53 +15,42 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultPackageDescription; -import java.util.List; - - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultPackageDescription.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultPackageDescription.class)}) public interface PackageDescription { - /** - * - * More information under https://admin-shell.io/aas/3/0/PackageDescription/items - * - * @return Returns the List of Strings for the property items. - */ - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") - List getItems(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/PackageDescription/items - * - * @param items desired value for the property items. - */ - void setItems(List items); - - /** - * - * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId - * - * @return Returns the String for the property packageId. - */ - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") - String getPackageId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId - * - * @param packageId desired value for the property packageId. - */ - void setPackageId(String packageId); - + /** + * More information under https://admin-shell.io/aas/3/0/PackageDescription/items + * + * @return Returns the List of Strings for the property items. + */ + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") + List getItems(); + + /** + * More information under https://admin-shell.io/aas/3/0/PackageDescription/items + * + * @param items desired value for the property items. + */ + void setItems(List items); + + /** + * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId + * + * @return Returns the String for the property packageId. + */ + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") + String getPackageId(); + + /** + * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId + * + * @param packageId desired value for the property packageId. + */ + void setPackageId(String packageId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index b79dab6fe..cbfbd17c5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -15,75 +15,68 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProperty; - -/** - * A property is a data element that has a single value. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProperty.class) -}) +/** A property is a data element that has a single value. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProperty.class)}) public interface Property extends DataElement { - /** - * Data type of the value - *

- * More information under https://admin-shell.io/aas/3/0/Property/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/0/Property/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the value - *

- * More information under https://admin-shell.io/aas/3/0/Property/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Data type of the value + * + *

More information under https://admin-shell.io/aas/3/0/Property/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Property/valueType") + DataTypeDefXsd getValueType(); - /** - * The value of the property instance. - *

- * More information under https://admin-shell.io/aas/3/0/Property/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/Property/value") - String getValue(); + /** + * Data type of the value + * + *

More information under https://admin-shell.io/aas/3/0/Property/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * The value of the property instance. - *

- * More information under https://admin-shell.io/aas/3/0/Property/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/0/Property/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Property/value") + String getValue(); - /** - * Reference to the global unique ID of a coded value. - *

- * More information under https://admin-shell.io/aas/3/0/Property/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/0/Property/valueId") - Reference getValueId(); + /** + * The value of the property instance. + * + *

More information under https://admin-shell.io/aas/3/0/Property/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Reference to the global unique ID of a coded value. - *

- * More information under https://admin-shell.io/aas/3/0/Property/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/0/Property/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/Property/valueId") + Reference getValueId(); + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/0/Property/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index 500e0b50e..574621c3f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -15,138 +15,121 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProtocolInformation; -import java.util.List; - - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultProtocolInformation.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultProtocolInformation.class)}) public interface ProtocolInformation { - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href - * - * @return Returns the String for the property href. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") - String getHref(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href - * - * @param href desired value for the property href. - */ - void setHref(String href); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol - * - * @return Returns the String for the property endpointProtocol. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") - String getEndpointProtocol(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol - * - * @param endpointProtocol desired value for the property endpointProtocol. - */ - void setEndpointProtocol(String endpointProtocol); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion - * - * @return Returns the List of Strings for the property endpointProtocolVersion. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") - List getEndpointProtocolVersion(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion - * - * @param endpointProtocolVersions desired value for the property endpointProtocolVersion. - */ - void setEndpointProtocolVersion(List endpointProtocolVersions); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol - * - * @return Returns the String for the property subprotocol. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") - String getSubprotocol(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol - * - * @param subprotocol desired value for the property subprotocol. - */ - void setSubprotocol(String subprotocol); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody - * - * @return Returns the String for the property subprotocolBody. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") - String getSubprotocolBody(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody - * - * @param subprotocolBody desired value for the property subprotocolBody. - */ - void setSubprotocolBody(String subprotocolBody); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding - * - * @return Returns the String for the property subprotocolBodyEncoding. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") - String getSubprotocolBodyEncoding(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. - */ - void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes - * - * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") - List getSecurityAttributes(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes - * - * @param securityAttributes desired value for the property securityAttributes. - */ - void setSecurityAttributes(List securityAttributes); - + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href + * + * @return Returns the String for the property href. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") + String getHref(); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href + * + * @param href desired value for the property href. + */ + void setHref(String href); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol + * + * @return Returns the String for the property endpointProtocol. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") + String getEndpointProtocol(); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol + * + * @param endpointProtocol desired value for the property endpointProtocol. + */ + void setEndpointProtocol(String endpointProtocol); + + /** + * More information under + * https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion + * + * @return Returns the List of Strings for the property endpointProtocolVersion. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") + List getEndpointProtocolVersion(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion + * + * @param endpointProtocolVersions desired value for the property endpointProtocolVersion. + */ + void setEndpointProtocolVersion(List endpointProtocolVersions); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol + * + * @return Returns the String for the property subprotocol. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") + String getSubprotocol(); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol + * + * @param subprotocol desired value for the property subprotocol. + */ + void setSubprotocol(String subprotocol); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody + * + * @return Returns the String for the property subprotocolBody. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") + String getSubprotocolBody(); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody + * + * @param subprotocolBody desired value for the property subprotocolBody. + */ + void setSubprotocolBody(String subprotocolBody); + + /** + * More information under + * https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding + * + * @return Returns the String for the property subprotocolBodyEncoding. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") + String getSubprotocolBodyEncoding(); + + /** + * More information under + * https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. + */ + void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes + * + * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. + */ + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") + List getSecurityAttributes(); + + /** + * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes + * + * @param securityAttributes desired value for the property securityAttributes. + */ + void setSecurityAttributes(List securityAttributes); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 8cce0e81b..501dec2a9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -15,39 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import java.util.List; - - -/** - * The value of a qualifiable element may be further qualified by one or more qualifiers. - */ +/** The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Submodel.class) }) public interface Qualifiable { - /** - * Additional qualification of a qualifiable element. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers - * - * @return Returns the List of Qualifiers for the property qualifiers. - */ - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - List getQualifiers(); - - /** - * Additional qualification of a qualifiable element. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers - * - * @param qualifiers desired value for the property qualifiers. - */ - void setQualifiers(List qualifiers); - + /** + * Additional qualification of a qualifiable element. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers + * + * @return Returns the List of Qualifiers for the property qualifiers. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + List getQualifiers(); + + /** + * Additional qualification of a qualifiable element. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers + * + * @param qualifiers desired value for the property qualifiers. + */ + void setQualifiers(List qualifiers); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index 9553d658b..55febdb18 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -15,114 +15,109 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultQualifier; - /** * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultQualifier.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultQualifier.class)}) public interface Qualifier extends HasSemantics { - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/kind - * - * @return Returns the QualifierKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") - QualifierKind getKind(); - - /** - * The qualifier kind describes the kind of the qualifier that is applied to the element. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/kind - * - * @param kind desired value for the property kind. - */ - void setKind(QualifierKind kind); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/type - * - * @return Returns the String for the property type. - */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") - String getType(); - - /** - * The qualifier type describes the type of the qualifier that is applied to the element. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/type - * - * @param type desired value for the property type. - */ - void setType(String type); - - /** - * Data type of the qualifier value. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the qualifier value. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); - - /** - * The qualifier value is the value of the qualifier. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") - String getValue(); - - /** - * The qualifier value is the value of the qualifier. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/value - * - * @param value desired value for the property value. - */ - void setValue(String value); - - /** - * Reference to the global unique ID of a coded value. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") - Reference getValueId(); - - /** - * Reference to the global unique ID of a coded value. - *

- * More information under https://admin-shell.io/aas/3/0/Qualifier/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); - + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/kind + * + * @return Returns the QualifierKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") + QualifierKind getKind(); + + /** + * The qualifier kind describes the kind of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/kind + * + * @param kind desired value for the property kind. + */ + void setKind(QualifierKind kind); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/type + * + * @return Returns the String for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") + String getType(); + + /** + * The qualifier type describes the type of the qualifier that is applied to the element. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/type + * + * @param type desired value for the property type. + */ + void setType(String type); + + /** + * Data type of the qualifier value. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") + DataTypeDefXsd getValueType(); + + /** + * Data type of the qualifier value. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); + + /** + * The qualifier value is the value of the qualifier. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") + String getValue(); + + /** + * The qualifier value is the value of the qualifier. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/value + * + * @param value desired value for the property value. + */ + void setValue(String value); + + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") + Reference getValueId(); + + /** + * Reference to the global unique ID of a coded value. + * + *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index 17ddf64bb..9c16e29f2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -15,32 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Enumeration for kinds of qualifiers. - */ +/** Enumeration for kinds of qualifiers. */ @IRI("aas:QualifierKind") public enum QualifierKind { - /** - * qualifies the semantic definition the element is referring to ('semanticId') - */ - @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ConceptQualifier") - CONCEPT_QUALIFIER, - - /** - * qualifies the elements within a specific submodel on concept level. - */ - @IRI("https://admin-shell.io/aas/3/0/QualifierKind/TemplateQualifier") - TEMPLATE_QUALIFIER, + /** qualifies the semantic definition the element is referring to ('semanticId') */ + @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ConceptQualifier") + CONCEPT_QUALIFIER, - /** - * qualifies the value of the element and can change during run-time. - */ - @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ValueQualifier") - VALUE_QUALIFIER; + /** qualifies the elements within a specific submodel on concept level. */ + @IRI("https://admin-shell.io/aas/3/0/QualifierKind/TemplateQualifier") + TEMPLATE_QUALIFIER, + /** qualifies the value of the element and can change during run-time. */ + @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ValueQualifier") + VALUE_QUALIFIER; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 81cc01dc5..6d3345ce9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -15,75 +15,68 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRange; - -/** - * A range data element is a data element that defines a range with min and max. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRange.class) -}) +/** A range data element is a data element that defines a range with min and max. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultRange.class)}) public interface Range extends DataElement { - /** - * Data type of the min und max - *

- * More information under https://admin-shell.io/aas/3/0/Range/valueType - * - * @return Returns the DataTypeDefXsd for the property valueType. - */ - @IRI("https://admin-shell.io/aas/3/0/Range/valueType") - DataTypeDefXsd getValueType(); - - /** - * Data type of the min und max - *

- * More information under https://admin-shell.io/aas/3/0/Range/valueType - * - * @param valueType desired value for the property valueType. - */ - void setValueType(DataTypeDefXsd valueType); + /** + * Data type of the min und max + * + *

More information under https://admin-shell.io/aas/3/0/Range/valueType + * + * @return Returns the DataTypeDefXsd for the property valueType. + */ + @IRI("https://admin-shell.io/aas/3/0/Range/valueType") + DataTypeDefXsd getValueType(); - /** - * The minimum value of the range. - *

- * More information under https://admin-shell.io/aas/3/0/Range/min - * - * @return Returns the String for the property min. - */ - @IRI("https://admin-shell.io/aas/3/0/Range/min") - String getMin(); + /** + * Data type of the min und max + * + *

More information under https://admin-shell.io/aas/3/0/Range/valueType + * + * @param valueType desired value for the property valueType. + */ + void setValueType(DataTypeDefXsd valueType); - /** - * The minimum value of the range. - *

- * More information under https://admin-shell.io/aas/3/0/Range/min - * - * @param min desired value for the property min. - */ - void setMin(String min); + /** + * The minimum value of the range. + * + *

More information under https://admin-shell.io/aas/3/0/Range/min + * + * @return Returns the String for the property min. + */ + @IRI("https://admin-shell.io/aas/3/0/Range/min") + String getMin(); - /** - * The maximum value of the range. - *

- * More information under https://admin-shell.io/aas/3/0/Range/max - * - * @return Returns the String for the property max. - */ - @IRI("https://admin-shell.io/aas/3/0/Range/max") - String getMax(); + /** + * The minimum value of the range. + * + *

More information under https://admin-shell.io/aas/3/0/Range/min + * + * @param min desired value for the property min. + */ + void setMin(String min); - /** - * The maximum value of the range. - *

- * More information under https://admin-shell.io/aas/3/0/Range/max - * - * @param max desired value for the property max. - */ - void setMax(String max); + /** + * The maximum value of the range. + * + *

More information under https://admin-shell.io/aas/3/0/Range/max + * + * @return Returns the String for the property max. + */ + @IRI("https://admin-shell.io/aas/3/0/Range/max") + String getMax(); + /** + * The maximum value of the range. + * + *

More information under https://admin-shell.io/aas/3/0/Range/max + * + * @param max desired value for the property max. + */ + void setMax(String max); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index 3dd1c1551..56de69493 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -15,100 +15,95 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; -import java.util.List; - - -/** - * An element that is referable by its 'idShort'. - */ +/** An element that is referable by its 'idShort'. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Identifiable.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/category - * - * @return Returns the String for the property category. - */ - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - String getCategory(); - - /** - * The category is a value that gives further meta information w.r.t. to the class of the element. - * It affects the expected existence of attributes and the applicability of constraints. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/category - * - * @param category desired value for the property category. - */ - void setCategory(String category); + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/category + * + * @return Returns the String for the property category. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + String getCategory(); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable this - * ID is an identifying string of the element within its name space. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - String getIdShort(); + /** + * The category is a value that gives further meta information w.r.t. to the class of the element. + * It affects the expected existence of attributes and the applicability of constraints. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/category + * + * @param category desired value for the property category. + */ + void setCategory(String category); - /** - * In case of identifiables this attribute is a short name of the element. In case of referable this - * ID is an identifying string of the element within its name space. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable + * this ID is an identifying string of the element within its name space. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + String getIdShort(); - /** - * Display name. Can be provided in several languages. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - List getDisplayName(); + /** + * In case of identifiables this attribute is a short name of the element. In case of referable + * this ID is an identifying string of the element within its name space. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); - /** - * Display name. Can be provided in several languages. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/displayName - * - * @param displayNames desired value for the property displayName. - */ - void setDisplayName(List displayNames); + /** + * Display name. Can be provided in several languages. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/displayName + * + * @return Returns the List of LangStringNameTypes for the property displayName. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + List getDisplayName(); - /** - * Description or comments on the element. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/description - * - * @return Returns the List of LangStringTextTypes for the property description. - */ - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - List getDescription(); + /** + * Display name. Can be provided in several languages. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/displayName + * + * @param displayNames desired value for the property displayName. + */ + void setDisplayName(List displayNames); - /** - * Description or comments on the element. - *

- * More information under https://admin-shell.io/aas/3/0/Referable/description - * - * @param descriptions desired value for the property description. - */ - void setDescription(List descriptions); + /** + * Description or comments on the element. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/description + * + * @return Returns the List of LangStringTextTypes for the property description. + */ + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + List getDescription(); + /** + * Description or comments on the element. + * + *

More information under https://admin-shell.io/aas/3/0/Referable/description + * + * @param descriptions desired value for the property description. + */ + void setDescription(List descriptions); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index 4b45eb96d..499368339 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -15,76 +15,69 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReference; -import java.util.List; - - -/** - * Reference to either a model element of the same or another AAS or to an external entity. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReference.class) -}) +/** Reference to either a model element of the same or another AAS or to an external entity. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReference.class)}) public interface Reference { - /** - * Type of the reference. - *

- * More information under https://admin-shell.io/aas/3/0/Reference/type - * - * @return Returns the ReferenceTypes for the property type. - */ - @IRI("https://admin-shell.io/aas/3/0/Reference/type") - ReferenceTypes getType(); - - /** - * Type of the reference. - *

- * More information under https://admin-shell.io/aas/3/0/Reference/type - * - * @param type desired value for the property type. - */ - void setType(ReferenceTypes type); + /** + * Type of the reference. + * + *

More information under https://admin-shell.io/aas/3/0/Reference/type + * + * @return Returns the ReferenceTypes for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/Reference/type") + ReferenceTypes getType(); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - *

- * More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId - * - * @return Returns the Reference for the property referredSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") - Reference getReferredSemanticId(); + /** + * Type of the reference. + * + *

More information under https://admin-shell.io/aas/3/0/Reference/type + * + * @param type desired value for the property type. + */ + void setType(ReferenceTypes type); - /** - * 'semanticId' of the referenced model element ('type' = 'ModelReference'). - *

- * More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId - * - * @param referredSemanticId desired value for the property referredSemanticId. - */ - void setReferredSemanticId(Reference referredSemanticId); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + *

More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId + * + * @return Returns the Reference for the property referredSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") + Reference getReferredSemanticId(); - /** - * Unique references in their name space. - *

- * More information under https://admin-shell.io/aas/3/0/Reference/keys - * - * @return Returns the List of Keys for the property keys. - */ - @IRI("https://admin-shell.io/aas/3/0/Reference/keys") - List getKeys(); + /** + * 'semanticId' of the referenced model element ('type' = 'ModelReference'). + * + *

More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId + * + * @param referredSemanticId desired value for the property referredSemanticId. + */ + void setReferredSemanticId(Reference referredSemanticId); - /** - * Unique references in their name space. - *

- * More information under https://admin-shell.io/aas/3/0/Reference/keys - * - * @param keys desired value for the property keys. - */ - void setKeys(List keys); + /** + * Unique references in their name space. + * + *

More information under https://admin-shell.io/aas/3/0/Reference/keys + * + * @return Returns the List of Keys for the property keys. + */ + @IRI("https://admin-shell.io/aas/3/0/Reference/keys") + List getKeys(); + /** + * Unique references in their name space. + * + *

More information under https://admin-shell.io/aas/3/0/Reference/keys + * + * @param keys desired value for the property keys. + */ + void setKeys(List keys); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index c73f32d3f..3776fc471 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -15,40 +15,35 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReferenceElement; - /** * A reference element is a data element that defines a logical reference to another element within * the same or another AAS or a reference to an external object or entity. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultReferenceElement.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultReferenceElement.class)}) public interface ReferenceElement extends DataElement { - /** - * Global reference to an external object or entity or a logical reference to another element within - * the same or another AAS (i.e. a model reference to a Referable). - *

- * More information under https://admin-shell.io/aas/3/0/ReferenceElement/value - * - * @return Returns the Reference for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") - Reference getValue(); - - /** - * Global reference to an external object or entity or a logical reference to another element within - * the same or another AAS (i.e. a model reference to a Referable). - *

- * More information under https://admin-shell.io/aas/3/0/ReferenceElement/value - * - * @param value desired value for the property value. - */ - void setValue(Reference value); - + /** + * Global reference to an external object or entity or a logical reference to another element + * within the same or another AAS (i.e. a model reference to a Referable). + * + *

More information under https://admin-shell.io/aas/3/0/ReferenceElement/value + * + * @return Returns the Reference for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") + Reference getValue(); + + /** + * Global reference to an external object or entity or a logical reference to another element + * within the same or another AAS (i.e. a model reference to a Referable). + * + *

More information under https://admin-shell.io/aas/3/0/ReferenceElement/value + * + * @param value desired value for the property value. + */ + void setValue(Reference value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index e71f33892..d6bd0667f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -15,26 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * Reference types - */ +/** Reference types */ @IRI("aas:ReferenceTypes") public enum ReferenceTypes { - /** - * External reference. - */ - @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ExternalReference") - EXTERNAL_REFERENCE, - - /** - * Model reference. - */ - @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference") - MODEL_REFERENCE; + /** External reference. */ + @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ExternalReference") + EXTERNAL_REFERENCE, + /** Model reference. */ + @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference") + MODEL_REFERENCE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 912010fc0..707ac82df 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -15,58 +15,55 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultRelationshipElement; - /** * A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultRelationshipElement.class), - @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) + @KnownSubtypes.Type(value = DefaultRelationshipElement.class), + @KnownSubtypes.Type(value = AnnotatedRelationshipElement.class) }) public interface RelationshipElement extends SubmodelElement { - /** - * Reference to the first element in the relationship taking the role of the subject. - *

- * More information under https://admin-shell.io/aas/3/0/RelationshipElement/first - * - * @return Returns the Reference for the property first. - */ - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") - Reference getFirst(); - - /** - * Reference to the first element in the relationship taking the role of the subject. - *

- * More information under https://admin-shell.io/aas/3/0/RelationshipElement/first - * - * @param first desired value for the property first. - */ - void setFirst(Reference first); + /** + * Reference to the first element in the relationship taking the role of the subject. + * + *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/first + * + * @return Returns the Reference for the property first. + */ + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + Reference getFirst(); - /** - * Reference to the second element in the relationship taking the role of the object. - *

- * More information under https://admin-shell.io/aas/3/0/RelationshipElement/second - * - * @return Returns the Reference for the property second. - */ - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") - Reference getSecond(); + /** + * Reference to the first element in the relationship taking the role of the subject. + * + *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/first + * + * @param first desired value for the property first. + */ + void setFirst(Reference first); - /** - * Reference to the second element in the relationship taking the role of the object. - *

- * More information under https://admin-shell.io/aas/3/0/RelationshipElement/second - * - * @param second desired value for the property second. - */ - void setSecond(Reference second); + /** + * Reference to the second element in the relationship taking the role of the object. + * + *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/second + * + * @return Returns the Reference for the property second. + */ + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + Reference getSecond(); + /** + * Reference to the second element in the relationship taking the role of the object. + * + *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/second + * + * @param second desired value for the property second. + */ + void setSecond(Reference second); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index 6ea79bd9c..de8486cc7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -15,57 +15,52 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResource; - /** * Resource represents an address to a file (a locator). The value is an URI that can represent an * absolute or relative path */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResource.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResource.class)}) public interface Resource { - /** - * Path and name of the resource (with file extension). - *

- * More information under https://admin-shell.io/aas/3/0/Resource/path - * - * @return Returns the String for the property path. - */ - @IRI("https://admin-shell.io/aas/3/0/Resource/path") - String getPath(); - - /** - * Path and name of the resource (with file extension). - *

- * More information under https://admin-shell.io/aas/3/0/Resource/path - * - * @param path desired value for the property path. - */ - void setPath(String path); + /** + * Path and name of the resource (with file extension). + * + *

More information under https://admin-shell.io/aas/3/0/Resource/path + * + * @return Returns the String for the property path. + */ + @IRI("https://admin-shell.io/aas/3/0/Resource/path") + String getPath(); - /** - * Content type of the content of the file. - *

- * More information under https://admin-shell.io/aas/3/0/Resource/contentType - * - * @return Returns the String for the property contentType. - */ - @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") - String getContentType(); + /** + * Path and name of the resource (with file extension). + * + *

More information under https://admin-shell.io/aas/3/0/Resource/path + * + * @param path desired value for the property path. + */ + void setPath(String path); - /** - * Content type of the content of the file. - *

- * More information under https://admin-shell.io/aas/3/0/Resource/contentType - * - * @param contentType desired value for the property contentType. - */ - void setContentType(String contentType); + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/0/Resource/contentType + * + * @return Returns the String for the property contentType. + */ + @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") + String getContentType(); + /** + * Content type of the content of the file. + * + *

More information under https://admin-shell.io/aas/3/0/Resource/contentType + * + * @param contentType desired value for the property contentType. + */ + void setContentType(String contentType); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index 00501af2c..bac250273 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -15,37 +15,30 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResult; -import java.util.List; - - -/** - * - */ +/** */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResult.class), - @KnownSubtypes.Type(value = BaseOperationResult.class) + @KnownSubtypes.Type(value = DefaultResult.class), + @KnownSubtypes.Type(value = BaseOperationResult.class) }) public interface Result { - /** - * - * More information under https://admin-shell.io/aas/3/0/Result/messages - * - * @return Returns the List of Messages for the property messages. - */ - @IRI("https://admin-shell.io/aas/3/0/Result/messages") - List getMessages(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/Result/messages - * - * @param messages desired value for the property messages. - */ - void setMessages(List messages); - + /** + * More information under https://admin-shell.io/aas/3/0/Result/messages + * + * @return Returns the List of Messages for the property messages. + */ + @IRI("https://admin-shell.io/aas/3/0/Result/messages") + List getMessages(); + + /** + * More information under https://admin-shell.io/aas/3/0/Result/messages + * + * @param messages desired value for the property messages. + */ + void setMessages(List messages); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java index 98cf650eb..82716d3c5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -15,69 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityAttributeObject; - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityAttributeObject.class)}) public interface SecurityAttributeObject { - /** - * - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type - * - * @return Returns the SecurityTypeEnum for the property type. - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") - SecurityTypeEnum getType(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type - * - * @param type desired value for the property type. - */ - void setType(SecurityTypeEnum type); + /** + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type + * + * @return Returns the SecurityTypeEnum for the property type. + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") + SecurityTypeEnum getType(); - /** - * - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key - * - * @return Returns the String for the property key. - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") - String getKey(); + /** + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type + * + * @param type desired value for the property type. + */ + void setType(SecurityTypeEnum type); - /** - * - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key - * - * @param key desired value for the property key. - */ - void setKey(String key); + /** + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key + * + * @return Returns the String for the property key. + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") + String getKey(); - /** - * - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") - String getValue(); + /** + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key + * + * @param key desired value for the property key. + */ + void setKey(String key); - /** - * - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") + String getValue(); + /** + * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value + * + * @param value desired value for the property value. + */ + void setValue(String value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java index 47f03e268..3c8f5387f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -15,32 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * - */ +/** */ @IRI("aas:SecurityTypeEnum") public enum SecurityTypeEnum { - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/None") - NONE, - - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/Rfc_Tlsa") - RFC_TLSA, + /** */ + @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/None") + NONE, - /** - * - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/W3c_Did") - W3C_DID; + /** */ + @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/Rfc_Tlsa") + RFC_TLSA, + /** */ + @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/W3c_Did") + W3C_DID; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index 862aa5c62..e40de9dde 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -15,75 +15,68 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSpecificAssetId; - -/** - * A specific asset ID describes a generic supplementary identifying attribute of the asset. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSpecificAssetId.class) -}) +/** A specific asset ID describes a generic supplementary identifying attribute of the asset. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSpecificAssetId.class)}) public interface SpecificAssetId extends HasSemantics { - /** - * Name of the identifier - *

- * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name - * - * @return Returns the String for the property name. - */ - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") - String getName(); - - /** - * Name of the identifier - *

- * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name - * - * @param name desired value for the property name. - */ - void setName(String name); + /** + * Name of the identifier + * + *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name + * + * @return Returns the String for the property name. + */ + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") + String getName(); - /** - * The value of the specific asset identifier with the corresponding name. - *

- * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") - String getValue(); + /** + * Name of the identifier + * + *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name + * + * @param name desired value for the property name. + */ + void setName(String name); - /** - * The value of the specific asset identifier with the corresponding name. - *

- * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The value of the specific asset identifier with the corresponding name. + * + *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") + String getValue(); - /** - * The (external) subject the key belongs to or has meaning to. - *

- * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId - * - * @return Returns the Reference for the property externalSubjectId. - */ - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") - Reference getExternalSubjectId(); + /** + * The value of the specific asset identifier with the corresponding name. + * + *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * The (external) subject the key belongs to or has meaning to. - *

- * More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId - * - * @param externalSubjectId desired value for the property externalSubjectId. - */ - void setExternalSubjectId(Reference externalSubjectId); + /** + * The (external) subject the key belongs to or has meaning to. + * + *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId + * + * @return Returns the Reference for the property externalSubjectId. + */ + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") + Reference getExternalSubjectId(); + /** + * The (external) subject the key belongs to or has meaning to. + * + *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId + * + * @param externalSubjectId desired value for the property externalSubjectId. + */ + void setExternalSubjectId(Reference externalSubjectId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index 3e002723b..c4262d666 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -15,26 +15,17 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; - -/** - * State of an event - */ +/** State of an event */ @IRI("aas:StateOfEvent") public enum StateOfEvent { - /** - * Event is off. - */ - @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/Off") - OFF, - - /** - * Event is on - */ - @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/On") - ON; + /** Event is off. */ + @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/Off") + OFF, + /** Event is on */ + @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/On") + ON; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index faa24f1c7..55eed0f07 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -15,38 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodel; -import java.util.List; - - -/** - * A submodel defines a specific aspect of the asset represented by the AAS. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodel.class) -}) -public interface Submodel extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { - - /** - * A submodel consists of zero or more submodel elements. - *

- * More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements - * - * @return Returns the List of SubmodelElements for the property submodelElements. - */ - @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") - List getSubmodelElements(); - - /** - * A submodel consists of zero or more submodel elements. - *

- * More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements - * - * @param submodelElements desired value for the property submodelElements. - */ - void setSubmodelElements(List submodelElements); - +/** A submodel defines a specific aspect of the asset represented by the AAS. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodel.class)}) +public interface Submodel + extends HasDataSpecification, HasSemantics, Qualifiable, HasKind, Identifiable { + + /** + * A submodel consists of zero or more submodel elements. + * + *

More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements + * + * @return Returns the List of SubmodelElements for the property submodelElements. + */ + @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") + List getSubmodelElements(); + + /** + * A submodel consists of zero or more submodel elements. + * + *

More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements + * + * @param submodelElements desired value for the property submodelElements. + */ + void setSubmodelElements(List submodelElements); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index 8c3e48ef6..62077f2fc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -15,121 +15,102 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; -import java.util.List; - - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class) -}) +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelDescriptor.class)}) public interface SubmodelDescriptor extends Descriptor { - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration - * - * @return Returns the AdministrativeInformation for the property administration. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") - AdministrativeInformation getAdministration(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration - * - * @param administration desired value for the property administration. - */ - void setAdministration(AdministrativeInformation administration); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints - * - * @return Returns the List of Endpoints for the property endpoints. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") - List getEndpoints(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort - * - * @return Returns the String for the property idShort. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") - String getIdShort(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort - * - * @param idShort desired value for the property idShort. - */ - void setIdShort(String idShort); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id - * - * @return Returns the String for the property id. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") - String getId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id - * - * @param id desired value for the property id. - */ - void setId(String id); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId - * - * @return Returns the Reference for the property semanticId. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") - Reference getSemanticId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId - * - * @param semanticId desired value for the property semanticId. - */ - void setSemanticId(Reference semanticId); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId - * - * @return Returns the List of References for the property supplementalSemanticId. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") - List getSupplementalSemanticId(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId - * - * @param supplementalSemanticIds desired value for the property supplementalSemanticId. - */ - void setSupplementalSemanticId(List supplementalSemanticIds); - + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration + * + * @return Returns the AdministrativeInformation for the property administration. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") + AdministrativeInformation getAdministration(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration + * + * @param administration desired value for the property administration. + */ + void setAdministration(AdministrativeInformation administration); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints + * + * @return Returns the List of Endpoints for the property endpoints. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") + List getEndpoints(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints + * + * @param endpoints desired value for the property endpoints. + */ + void setEndpoints(List endpoints); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort + * + * @return Returns the String for the property idShort. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") + String getIdShort(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort + * + * @param idShort desired value for the property idShort. + */ + void setIdShort(String idShort); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id + * + * @return Returns the String for the property id. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") + String getId(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id + * + * @param id desired value for the property id. + */ + void setId(String id); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId + * + * @return Returns the Reference for the property semanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") + Reference getSemanticId(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId + * + * @param semanticId desired value for the property semanticId. + */ + void setSemanticId(Reference semanticId); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId + * + * @return Returns the List of References for the property supplementalSemanticId. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") + List getSupplementalSemanticId(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId + * + * @param supplementalSemanticIds desired value for the property supplementalSemanticId. + */ + void setSupplementalSemanticId(List supplementalSemanticIds); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index 8aa64ca0d..8c3a38ca2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -15,23 +15,18 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; - -/** - * A submodel element is an element suitable for the description and differentiation of assets. - */ +/** A submodel element is an element suitable for the description and differentiation of assets. */ @KnownSubtypes({ - @KnownSubtypes.Type(value = DataElement.class), - @KnownSubtypes.Type(value = Capability.class), - @KnownSubtypes.Type(value = Entity.class), - @KnownSubtypes.Type(value = EventElement.class), - @KnownSubtypes.Type(value = Operation.class), - @KnownSubtypes.Type(value = RelationshipElement.class), - @KnownSubtypes.Type(value = SubmodelElementCollection.class), - @KnownSubtypes.Type(value = SubmodelElementList.class) + @KnownSubtypes.Type(value = DataElement.class), + @KnownSubtypes.Type(value = Capability.class), + @KnownSubtypes.Type(value = Entity.class), + @KnownSubtypes.Type(value = EventElement.class), + @KnownSubtypes.Type(value = Operation.class), + @KnownSubtypes.Type(value = RelationshipElement.class), + @KnownSubtypes.Type(value = SubmodelElementCollection.class), + @KnownSubtypes.Type(value = SubmodelElementList.class) }) -public interface SubmodelElement extends Referable, HasDataSpecification, HasSemantics, Qualifiable { - -} +public interface SubmodelElement + extends Referable, HasDataSpecification, HasSemantics, Qualifiable {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index 16894c966..9181e71fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -15,35 +15,27 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementAttributes; - -/** - * - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class) -}) -public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind - * - * @return Returns the ModellingKind for the property kind. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") - ModellingKind getKind(); - - /** - * - * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind - * - * @param kind desired value for the property kind. - */ - void setKind(ModellingKind kind); - +/** */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementAttributes.class)}) +public interface SubmodelElementAttributes + extends Referable, HasDataSpecification, HasSemantics, Qualifiable { + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind + * + * @return Returns the ModellingKind for the property kind. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") + ModellingKind getKind(); + + /** + * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind + * + * @param kind desired value for the property kind. + */ + void setKind(ModellingKind kind); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index 11c289253..d12acab1d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -15,39 +15,34 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementCollection; -import java.util.List; - - /** * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementCollection.class)}) public interface SubmodelElementCollection extends SubmodelElement { - /** - * Submodel element contained in the collection. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value - * - * @return Returns the List of SubmodelElements for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") - List getValue(); - - /** - * Submodel element contained in the collection. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value - * - * @param values desired value for the property value. - */ - void setValue(List values); - + /** + * Submodel element contained in the collection. + * + *

More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value + * + * @return Returns the List of SubmodelElements for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") + List getValue(); + + /** + * Submodel element contained in the collection. + * + *

More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value + * + * @param values desired value for the property value. + */ + void setValue(List values); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index 82cdebec3..7ba2d1ebe 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -15,116 +15,115 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementList; -import java.util.List; - - -/** - * A submodel element list is an ordered list of submodel elements. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultSubmodelElementList.class) -}) +/** A submodel element list is an ordered list of submodel elements. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementList.class)}) public interface SubmodelElementList extends SubmodelElement { - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant - * - * @return Returns the boolean for the property orderRelevant. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") - boolean getOrderRelevant(); - - /** - * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is - * representing a set or a bag. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant - * - * @param orderRelevant desired value for the property orderRelevant. - */ - void setOrderRelevant(boolean orderRelevant); - - /** - * Semantic ID the submodel elements contained in the list match to. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement - * - * @return Returns the Reference for the property semanticIdListElement. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") - Reference getSemanticIdListElement(); - - /** - * Semantic ID the submodel elements contained in the list match to. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement - * - * @param semanticIdListElement desired value for the property semanticIdListElement. - */ - void setSemanticIdListElement(Reference semanticIdListElement); - - /** - * The submodel element type of the submodel elements contained in the list. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement - * - * @return Returns the AasSubmodelElements for the property typeValueListElement. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") - AasSubmodelElements getTypeValueListElement(); - - /** - * The submodel element type of the submodel elements contained in the list. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement - * - * @param typeValueListElement desired value for the property typeValueListElement. - */ - void setTypeValueListElement(AasSubmodelElements typeValueListElement); - - /** - * The value type of the submodel element contained in the list. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement - * - * @return Returns the DataTypeDefXsd for the property valueTypeListElement. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") - DataTypeDefXsd getValueTypeListElement(); - - /** - * The value type of the submodel element contained in the list. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement - * - * @param valueTypeListElement desired value for the property valueTypeListElement. - */ - void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); - - /** - * Submodel element contained in the list. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value - * - * @return Returns the List of SubmodelElements for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") - List getValue(); - - /** - * Submodel element contained in the list. - *

- * More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value - * - * @param values desired value for the property value. - */ - void setValue(List values); - + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant + * + * @return Returns the boolean for the property orderRelevant. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") + boolean getOrderRelevant(); + + /** + * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is + * representing a set or a bag. + * + *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant + * + * @param orderRelevant desired value for the property orderRelevant. + */ + void setOrderRelevant(boolean orderRelevant); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + *

More information under + * https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement + * + * @return Returns the Reference for the property semanticIdListElement. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") + Reference getSemanticIdListElement(); + + /** + * Semantic ID the submodel elements contained in the list match to. + * + *

More information under + * https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement + * + * @param semanticIdListElement desired value for the property semanticIdListElement. + */ + void setSemanticIdListElement(Reference semanticIdListElement); + + /** + * The submodel element type of the submodel elements contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement + * + * @return Returns the AasSubmodelElements for the property typeValueListElement. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") + AasSubmodelElements getTypeValueListElement(); + + /** + * The submodel element type of the submodel elements contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement + * + * @param typeValueListElement desired value for the property typeValueListElement. + */ + void setTypeValueListElement(AasSubmodelElements typeValueListElement); + + /** + * The value type of the submodel element contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement + * + * @return Returns the DataTypeDefXsd for the property valueTypeListElement. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") + DataTypeDefXsd getValueTypeListElement(); + + /** + * The value type of the submodel element contained in the list. + * + *

More information under + * https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement + * + * @param valueTypeListElement desired value for the property valueTypeListElement. + */ + void setValueTypeListElement(DataTypeDefXsd valueTypeListElement); + + /** + * Submodel element contained in the list. + * + *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value + * + * @return Returns the List of SubmodelElements for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") + List getValue(); + + /** + * Submodel element contained in the list. + * + *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value + * + * @param values desired value for the property value. + */ + void setValue(List values); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 992199355..6820f14b1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -15,38 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueList; -import java.util.List; - - -/** - * A set of value reference pairs. - */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueList.class) -}) +/** A set of value reference pairs. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueList.class)}) public interface ValueList { - /** - * A pair of a value together with its global unique id. - *

- * More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs - * - * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. - */ - @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") - List getValueReferencePairs(); - - /** - * A pair of a value together with its global unique id. - *

- * More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs - * - * @param valueReferencePairs desired value for the property valueReferencePairs. - */ - void setValueReferencePairs(List valueReferencePairs); - + /** + * A pair of a value together with its global unique id. + * + *

More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs + * + * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. + */ + @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") + List getValueReferencePairs(); + + /** + * A pair of a value together with its global unique id. + * + *

More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs + * + * @param valueReferencePairs desired value for the property valueReferencePairs. + */ + void setValueReferencePairs(List valueReferencePairs); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index eec7b062a..a66169842 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -15,57 +15,52 @@ package org.eclipse.digitaltwin.aas4j.v3.model; - import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueReferencePair; - /** * A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultValueReferencePair.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueReferencePair.class)}) public interface ValueReferencePair { - /** - * The value of the referenced concept definition of the value in 'valueId'. - *

- * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value - * - * @return Returns the String for the property value. - */ - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") - String getValue(); - - /** - * The value of the referenced concept definition of the value in 'valueId'. - *

- * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value - * - * @param value desired value for the property value. - */ - void setValue(String value); + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value + * + * @return Returns the String for the property value. + */ + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") + String getValue(); - /** - * Global unique id of the value. - *

- * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId - * - * @return Returns the Reference for the property valueId. - */ - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") - Reference getValueId(); + /** + * The value of the referenced concept definition of the value in 'valueId'. + * + *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value + * + * @param value desired value for the property value. + */ + void setValue(String value); - /** - * Global unique id of the value. - *

- * More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId - * - * @param valueId desired value for the property valueId. - */ - void setValueId(Reference valueId); + /** + * Global unique id of the value. + * + *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId + * + * @return Returns the Reference for the property valueId. + */ + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") + Reference getValueId(); + /** + * Global unique id of the value. + * + *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId + * + * @param valueId desired value for the property valueId. + */ + void setValueId(Reference valueId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 974a7e368..70765247f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -21,12 +21,12 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface IRI { - /** - * This annotation stores the IRI under which a certain element of a model is defined. Expected - * behaviour when de-referencing the value of this annotation is a definition and further - * information about this element. - * - * @return IRI defining an element - */ - public String[] value() default {}; + /** + * This annotation stores the IRI under which a certain element of a model is defined. Expected + * behaviour when de-referencing the value of this annotation is a definition and further + * information about this element. + * + * @return IRI defining an element + */ + public String[] value() default {}; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index 09c52e6df..0577042f0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -21,19 +21,18 @@ // Retention policy runtime required for reflective access @Retention(RetentionPolicy.RUNTIME) public @interface KnownSubtypes { - /** - * This element stores the known sub-types, e.g. implementing classes of an interface, or extending - * classes of a class. Note that this list can never be expected to be complete, as custom - * implementations will not be included. - * - * @return List of known implementing subtypes - */ - public KnownSubtypes.Type[] value(); + /** + * This element stores the known sub-types, e.g. implementing classes of an interface, or + * extending classes of a class. Note that this list can never be expected to be complete, as + * custom implementations will not be included. + * + * @return List of known implementing subtypes + */ + public KnownSubtypes.Type[] value(); - public @interface Type { - Class value(); - - String name() default ""; - } + public @interface Type { + Class value(); + String name() default ""; + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index 78f076216..d368a5653 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -17,21 +17,20 @@ public abstract class AbstractBuilder implements Builder { - private final T buildingInstance; + private final T buildingInstance; - protected AbstractBuilder() { - buildingInstance = newBuildingInstance(); - } + protected AbstractBuilder() { + buildingInstance = newBuildingInstance(); + } - protected abstract T newBuildingInstance(); + protected abstract T newBuildingInstance(); - protected T getBuildingInstance() { - return buildingInstance; - } - - @Override - public T build() { - return buildingInstance; - } + protected T getBuildingInstance() { + return buildingInstance; + } + @Override + public T build() { + return buildingInstance; + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index c468d52fa..3f8097bb5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -15,79 +15,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class AdministrativeInformationBuilder> - extends ExtendableBuilder { +public abstract class AdministrativeInformationBuilder< + T extends AdministrativeInformation, B extends AdministrativeInformationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for version - * - * @param version desired value to be set - * @return Builder object with new value for version - */ - public B version(String version) { - getBuildingInstance().setVersion(version); - return getSelf(); - } + /** + * This function allows setting a value for version + * + * @param version desired value to be set + * @return Builder object with new value for version + */ + public B version(String version) { + getBuildingInstance().setVersion(version); + return getSelf(); + } - /** - * This function allows setting a value for revision - * - * @param revision desired value to be set - * @return Builder object with new value for revision - */ - public B revision(String revision) { - getBuildingInstance().setRevision(revision); - return getSelf(); - } + /** + * This function allows setting a value for revision + * + * @param revision desired value to be set + * @return Builder object with new value for revision + */ + public B revision(String revision) { + getBuildingInstance().setRevision(revision); + return getSelf(); + } - /** - * This function allows setting a value for creator - * - * @param creator desired value to be set - * @return Builder object with new value for creator - */ - public B creator(Reference creator) { - getBuildingInstance().setCreator(creator); - return getSelf(); - } + /** + * This function allows setting a value for creator + * + * @param creator desired value to be set + * @return Builder object with new value for creator + */ + public B creator(Reference creator) { + getBuildingInstance().setCreator(creator); + return getSelf(); + } - /** - * This function allows setting a value for templateId - * - * @param templateId desired value to be set - * @return Builder object with new value for templateId - */ - public B templateId(String templateId) { - getBuildingInstance().setTemplateId(templateId); - return getSelf(); - } + /** + * This function allows setting a value for templateId + * + * @param templateId desired value to be set + * @return Builder object with new value for templateId + */ + public B templateId(String templateId) { + getBuildingInstance().setTemplateId(templateId); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index 92a00d564..d07585d69 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -24,218 +25,216 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class AnnotatedRelationshipElementBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for annotations - * - * @param annotations desired value to be set - * @return Builder object with new value for annotations - */ - public B annotations(List annotations) { - getBuildingInstance().setAnnotations(annotations); - return getSelf(); - } - - /** - * This function allows adding a value to the List annotations - * - * @param annotations desired value to be added - * @return Builder object with new value for annotations - */ - public B annotations(DataElement annotations) { - getBuildingInstance().getAnnotations().add(annotations); - return getSelf(); - } - - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class AnnotatedRelationshipElementBuilder< + T extends AnnotatedRelationshipElement, B extends AnnotatedRelationshipElementBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for annotations + * + * @param annotations desired value to be set + * @return Builder object with new value for annotations + */ + public B annotations(List annotations) { + getBuildingInstance().setAnnotations(annotations); + return getSelf(); + } + + /** + * This function allows adding a value to the List annotations + * + * @param annotations desired value to be added + * @return Builder object with new value for annotations + */ + public B annotations(DataElement annotations) { + getBuildingInstance().getAnnotations().add(annotations); + return getSelf(); + } + + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index d57e3f784..47a9dc076 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -24,185 +25,183 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class AssetAdministrationShellBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for derivedFrom - * - * @param derivedFrom desired value to be set - * @return Builder object with new value for derivedFrom - */ - public B derivedFrom(Reference derivedFrom) { - getBuildingInstance().setDerivedFrom(derivedFrom); - return getSelf(); - } - - /** - * This function allows setting a value for assetInformation - * - * @param assetInformation desired value to be set - * @return Builder object with new value for assetInformation - */ - public B assetInformation(AssetInformation assetInformation) { - getBuildingInstance().setAssetInformation(assetInformation); - return getSelf(); - } - - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Reference submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class AssetAdministrationShellBuilder< + T extends AssetAdministrationShell, B extends AssetAdministrationShellBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for derivedFrom + * + * @param derivedFrom desired value to be set + * @return Builder object with new value for derivedFrom + */ + public B derivedFrom(Reference derivedFrom) { + getBuildingInstance().setDerivedFrom(derivedFrom); + return getSelf(); + } + + /** + * This function allows setting a value for assetInformation + * + * @param assetInformation desired value to be set + * @return Builder object with new value for assetInformation + */ + public B assetInformation(AssetInformation assetInformation) { + getBuildingInstance().setAssetInformation(assetInformation); + return getSelf(); + } + + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Reference submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index 10a91996f..43c0dd018 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; @@ -25,207 +26,206 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; -import java.util.List; - - -public abstract class AssetAdministrationShellDescriptorBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } - - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } - - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } - - /** - * This function allows setting a value for submodelDescriptors - * - * @param submodelDescriptors desired value to be set - * @return Builder object with new value for submodelDescriptors - */ - public B submodelDescriptors(List submodelDescriptors) { - getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelDescriptors - * - * @param submodelDescriptors desired value to be added - * @return Builder object with new value for submodelDescriptors - */ - public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { - getBuildingInstance().getSubmodelDescriptors().add(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class AssetAdministrationShellDescriptorBuilder< + T extends AssetAdministrationShellDescriptor, + B extends AssetAdministrationShellDescriptorBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for assetKind + * + * @param assetKind desired value to be set + * @return Builder object with new value for assetKind + */ + public B assetKind(AssetKind assetKind) { + getBuildingInstance().setAssetKind(assetKind); + return getSelf(); + } + + /** + * This function allows setting a value for assetType + * + * @param assetType desired value to be set + * @return Builder object with new value for assetType + */ + public B assetType(String assetType) { + getBuildingInstance().setAssetType(assetType); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } + + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } + + /** + * This function allows setting a value for submodelDescriptors + * + * @param submodelDescriptors desired value to be set + * @return Builder object with new value for submodelDescriptors + */ + public B submodelDescriptors(List submodelDescriptors) { + getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodelDescriptors + * + * @param submodelDescriptors desired value to be added + * @return Builder object with new value for submodelDescriptors + */ + public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { + getBuildingInstance().getSubmodelDescriptors().add(submodelDescriptors); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index acbca62b6..1e818958c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -15,80 +15,79 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import java.util.List; - - -public abstract class AssetInformationBuilder> - extends ExtendableBuilder { +public abstract class AssetInformationBuilder< + T extends AssetInformation, B extends AssetInformationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } + /** + * This function allows setting a value for assetKind + * + * @param assetKind desired value to be set + * @return Builder object with new value for assetKind + */ + public B assetKind(AssetKind assetKind) { + getBuildingInstance().setAssetKind(assetKind); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } + /** + * This function allows setting a value for assetType + * + * @param assetType desired value to be set + * @return Builder object with new value for assetType + */ + public B assetType(String assetType) { + getBuildingInstance().setAssetType(assetType); + return getSelf(); + } - /** - * This function allows setting a value for defaultThumbnail - * - * @param defaultThumbnail desired value to be set - * @return Builder object with new value for defaultThumbnail - */ - public B defaultThumbnail(Resource defaultThumbnail) { - getBuildingInstance().setDefaultThumbnail(defaultThumbnail); - return getSelf(); - } + /** + * This function allows setting a value for defaultThumbnail + * + * @param defaultThumbnail desired value to be set + * @return Builder object with new value for defaultThumbnail + */ + public B defaultThumbnail(Resource defaultThumbnail) { + getBuildingInstance().setDefaultThumbnail(defaultThumbnail); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java index e311dd106..a75a181c5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java @@ -15,57 +15,56 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import java.util.List; - - -public abstract class BaseOperationResultBuilder> - extends ExtendableBuilder { +public abstract class BaseOperationResultBuilder< + T extends BaseOperationResult, B extends BaseOperationResultBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for executionState - * - * @param executionState desired value to be set - * @return Builder object with new value for executionState - */ - public B executionState(ExecutionState executionState) { - getBuildingInstance().setExecutionState(executionState); - return getSelf(); - } + /** + * This function allows setting a value for executionState + * + * @param executionState desired value to be set + * @return Builder object with new value for executionState + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().setExecutionState(executionState); + return getSelf(); + } - /** - * This function allows setting a value for success - * - * @param success desired value to be set - * @return Builder object with new value for success - */ - public B success(boolean success) { - getBuildingInstance().setSuccess(success); - return getSelf(); - } + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); + return getSelf(); + } - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } + /** + * This function allows setting a value for messages + * + * @param messages desired value to be set + * @return Builder object with new value for messages + */ + public B messages(List messages) { + getBuildingInstance().setMessages(messages); + return getSelf(); + } - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } + /** + * This function allows adding a value to the List messages + * + * @param messages desired value to be added + * @return Builder object with new value for messages + */ + public B messages(Message messages) { + getBuildingInstance().getMessages().add(messages); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index 41f9ea8ef..8cd3de967 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -25,262 +26,260 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.StateOfEvent; -import java.util.List; - - -public abstract class BasicEventElementBuilder> - extends ExtendableBuilder { +public abstract class BasicEventElementBuilder< + T extends BasicEventElement, B extends BasicEventElementBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for observed - * - * @param observed desired value to be set - * @return Builder object with new value for observed - */ - public B observed(Reference observed) { - getBuildingInstance().setObserved(observed); - return getSelf(); - } + /** + * This function allows setting a value for observed + * + * @param observed desired value to be set + * @return Builder object with new value for observed + */ + public B observed(Reference observed) { + getBuildingInstance().setObserved(observed); + return getSelf(); + } - /** - * This function allows setting a value for direction - * - * @param direction desired value to be set - * @return Builder object with new value for direction - */ - public B direction(Direction direction) { - getBuildingInstance().setDirection(direction); - return getSelf(); - } + /** + * This function allows setting a value for direction + * + * @param direction desired value to be set + * @return Builder object with new value for direction + */ + public B direction(Direction direction) { + getBuildingInstance().setDirection(direction); + return getSelf(); + } - /** - * This function allows setting a value for state - * - * @param state desired value to be set - * @return Builder object with new value for state - */ - public B state(StateOfEvent state) { - getBuildingInstance().setState(state); - return getSelf(); - } + /** + * This function allows setting a value for state + * + * @param state desired value to be set + * @return Builder object with new value for state + */ + public B state(StateOfEvent state) { + getBuildingInstance().setState(state); + return getSelf(); + } - /** - * This function allows setting a value for messageTopic - * - * @param messageTopic desired value to be set - * @return Builder object with new value for messageTopic - */ - public B messageTopic(String messageTopic) { - getBuildingInstance().setMessageTopic(messageTopic); - return getSelf(); - } + /** + * This function allows setting a value for messageTopic + * + * @param messageTopic desired value to be set + * @return Builder object with new value for messageTopic + */ + public B messageTopic(String messageTopic) { + getBuildingInstance().setMessageTopic(messageTopic); + return getSelf(); + } - /** - * This function allows setting a value for messageBroker - * - * @param messageBroker desired value to be set - * @return Builder object with new value for messageBroker - */ - public B messageBroker(Reference messageBroker) { - getBuildingInstance().setMessageBroker(messageBroker); - return getSelf(); - } + /** + * This function allows setting a value for messageBroker + * + * @param messageBroker desired value to be set + * @return Builder object with new value for messageBroker + */ + public B messageBroker(Reference messageBroker) { + getBuildingInstance().setMessageBroker(messageBroker); + return getSelf(); + } - /** - * This function allows setting a value for lastUpdate - * - * @param lastUpdate desired value to be set - * @return Builder object with new value for lastUpdate - */ - public B lastUpdate(String lastUpdate) { - getBuildingInstance().setLastUpdate(lastUpdate); - return getSelf(); - } + /** + * This function allows setting a value for lastUpdate + * + * @param lastUpdate desired value to be set + * @return Builder object with new value for lastUpdate + */ + public B lastUpdate(String lastUpdate) { + getBuildingInstance().setLastUpdate(lastUpdate); + return getSelf(); + } - /** - * This function allows setting a value for minInterval - * - * @param minInterval desired value to be set - * @return Builder object with new value for minInterval - */ - public B minInterval(String minInterval) { - getBuildingInstance().setMinInterval(minInterval); - return getSelf(); - } + /** + * This function allows setting a value for minInterval + * + * @param minInterval desired value to be set + * @return Builder object with new value for minInterval + */ + public B minInterval(String minInterval) { + getBuildingInstance().setMinInterval(minInterval); + return getSelf(); + } - /** - * This function allows setting a value for maxInterval - * - * @param maxInterval desired value to be set - * @return Builder object with new value for maxInterval - */ - public B maxInterval(String maxInterval) { - getBuildingInstance().setMaxInterval(maxInterval); - return getSelf(); - } + /** + * This function allows setting a value for maxInterval + * + * @param maxInterval desired value to be set + * @return Builder object with new value for maxInterval + */ + public B maxInterval(String maxInterval) { + getBuildingInstance().setMaxInterval(maxInterval); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index 2fc3fc13c..b31950814 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -23,195 +24,193 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class BlobBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(byte[] value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class BlobBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(byte[] value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index 89bd379fc..7af63344d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -17,6 +17,5 @@ public interface Builder { - public T build(); - + public T build(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index d55c011d1..fdf65c1ea 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -23,173 +24,171 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class CapabilityBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class CapabilityBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index f65bdffad..557063b22 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -23,163 +24,161 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class ConceptDescriptionBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for isCaseOf - * - * @param isCaseOfs desired value to be set - * @return Builder object with new value for isCaseOf - */ - public B isCaseOf(List isCaseOfs) { - getBuildingInstance().setIsCaseOf(isCaseOfs); - return getSelf(); - } - - /** - * This function allows adding a value to the List isCaseOf - * - * @param isCaseOf desired value to be added - * @return Builder object with new value for isCaseOf - */ - public B isCaseOf(Reference isCaseOf) { - getBuildingInstance().getIsCaseOf().add(isCaseOf); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class ConceptDescriptionBuilder< + T extends ConceptDescription, B extends ConceptDescriptionBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for isCaseOf + * + * @param isCaseOfs desired value to be set + * @return Builder object with new value for isCaseOf + */ + public B isCaseOf(List isCaseOfs) { + getBuildingInstance().setIsCaseOf(isCaseOfs); + return getSelf(); + } + + /** + * This function allows adding a value to the List isCaseOf + * + * @param isCaseOf desired value to be added + * @return Builder object with new value for isCaseOf + */ + public B isCaseOf(Reference isCaseOf) { + getBuildingInstance().getIsCaseOf().add(isCaseOf); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java index d960cf2db..dc8ade1a1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CustomDataSpecificationBuilder.java @@ -19,5 +19,4 @@ public abstract class CustomDataSpecificationBuilder< T extends CustomDataSpecification, B extends CustomDataSpecificationBuilder> - extends ExtendableBuilder { -} + extends ExtendableBuilder {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index bbe954f8a..d3c29a746 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -24,175 +25,172 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; -import java.util.List; - - -public abstract class DataSpecificationIec61360Builder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for preferredName - * - * @param preferredNames desired value to be set - * @return Builder object with new value for preferredName - */ - public B preferredName(List preferredNames) { - getBuildingInstance().setPreferredName(preferredNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List preferredName - * - * @param preferredName desired value to be added - * @return Builder object with new value for preferredName - */ - public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { - getBuildingInstance().getPreferredName().add(preferredName); - return getSelf(); - } - - /** - * This function allows setting a value for shortName - * - * @param shortNames desired value to be set - * @return Builder object with new value for shortName - */ - public B shortName(List shortNames) { - getBuildingInstance().setShortName(shortNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List shortName - * - * @param shortName desired value to be added - * @return Builder object with new value for shortName - */ - public B shortName(LangStringShortNameTypeIec61360 shortName) { - getBuildingInstance().getShortName().add(shortName); - return getSelf(); - } - - /** - * This function allows setting a value for unit - * - * @param unit desired value to be set - * @return Builder object with new value for unit - */ - public B unit(String unit) { - getBuildingInstance().setUnit(unit); - return getSelf(); - } - - /** - * This function allows setting a value for unitId - * - * @param unitId desired value to be set - * @return Builder object with new value for unitId - */ - public B unitId(Reference unitId) { - getBuildingInstance().setUnitId(unitId); - return getSelf(); - } - - /** - * This function allows setting a value for sourceOfDefinition - * - * @param sourceOfDefinition desired value to be set - * @return Builder object with new value for sourceOfDefinition - */ - public B sourceOfDefinition(String sourceOfDefinition) { - getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); - return getSelf(); - } - - /** - * This function allows setting a value for symbol - * - * @param symbol desired value to be set - * @return Builder object with new value for symbol - */ - public B symbol(String symbol) { - getBuildingInstance().setSymbol(symbol); - return getSelf(); - } - - /** - * This function allows setting a value for dataType - * - * @param dataType desired value to be set - * @return Builder object with new value for dataType - */ - public B dataType(DataTypeIec61360 dataType) { - getBuildingInstance().setDataType(dataType); - return getSelf(); - } - - /** - * This function allows setting a value for definition - * - * @param definitions desired value to be set - * @return Builder object with new value for definition - */ - public B definition(List definitions) { - getBuildingInstance().setDefinition(definitions); - return getSelf(); - } - - /** - * This function allows adding a value to the List definition - * - * @param definition desired value to be added - * @return Builder object with new value for definition - */ - public B definition(LangStringDefinitionTypeIec61360 definition) { - getBuildingInstance().getDefinition().add(definition); - return getSelf(); - } - - /** - * This function allows setting a value for valueFormat - * - * @param valueFormat desired value to be set - * @return Builder object with new value for valueFormat - */ - public B valueFormat(String valueFormat) { - getBuildingInstance().setValueFormat(valueFormat); - return getSelf(); - } - - /** - * This function allows setting a value for valueList - * - * @param valueList desired value to be set - * @return Builder object with new value for valueList - */ - public B valueList(ValueList valueList) { - getBuildingInstance().setValueList(valueList); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for levelType - * - * @param levelType desired value to be set - * @return Builder object with new value for levelType - */ - public B levelType(LevelType levelType) { - getBuildingInstance().setLevelType(levelType); - return getSelf(); - } - +public abstract class DataSpecificationIec61360Builder< + T extends DataSpecificationIec61360, B extends DataSpecificationIec61360Builder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for preferredName + * + * @param preferredNames desired value to be set + * @return Builder object with new value for preferredName + */ + public B preferredName(List preferredNames) { + getBuildingInstance().setPreferredName(preferredNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List preferredName + * + * @param preferredName desired value to be added + * @return Builder object with new value for preferredName + */ + public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { + getBuildingInstance().getPreferredName().add(preferredName); + return getSelf(); + } + + /** + * This function allows setting a value for shortName + * + * @param shortNames desired value to be set + * @return Builder object with new value for shortName + */ + public B shortName(List shortNames) { + getBuildingInstance().setShortName(shortNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List shortName + * + * @param shortName desired value to be added + * @return Builder object with new value for shortName + */ + public B shortName(LangStringShortNameTypeIec61360 shortName) { + getBuildingInstance().getShortName().add(shortName); + return getSelf(); + } + + /** + * This function allows setting a value for unit + * + * @param unit desired value to be set + * @return Builder object with new value for unit + */ + public B unit(String unit) { + getBuildingInstance().setUnit(unit); + return getSelf(); + } + + /** + * This function allows setting a value for unitId + * + * @param unitId desired value to be set + * @return Builder object with new value for unitId + */ + public B unitId(Reference unitId) { + getBuildingInstance().setUnitId(unitId); + return getSelf(); + } + + /** + * This function allows setting a value for sourceOfDefinition + * + * @param sourceOfDefinition desired value to be set + * @return Builder object with new value for sourceOfDefinition + */ + public B sourceOfDefinition(String sourceOfDefinition) { + getBuildingInstance().setSourceOfDefinition(sourceOfDefinition); + return getSelf(); + } + + /** + * This function allows setting a value for symbol + * + * @param symbol desired value to be set + * @return Builder object with new value for symbol + */ + public B symbol(String symbol) { + getBuildingInstance().setSymbol(symbol); + return getSelf(); + } + + /** + * This function allows setting a value for dataType + * + * @param dataType desired value to be set + * @return Builder object with new value for dataType + */ + public B dataType(DataTypeIec61360 dataType) { + getBuildingInstance().setDataType(dataType); + return getSelf(); + } + + /** + * This function allows setting a value for definition + * + * @param definitions desired value to be set + * @return Builder object with new value for definition + */ + public B definition(List definitions) { + getBuildingInstance().setDefinition(definitions); + return getSelf(); + } + + /** + * This function allows adding a value to the List definition + * + * @param definition desired value to be added + * @return Builder object with new value for definition + */ + public B definition(LangStringDefinitionTypeIec61360 definition) { + getBuildingInstance().getDefinition().add(definition); + return getSelf(); + } + + /** + * This function allows setting a value for valueFormat + * + * @param valueFormat desired value to be set + * @return Builder object with new value for valueFormat + */ + public B valueFormat(String valueFormat) { + getBuildingInstance().setValueFormat(valueFormat); + return getSelf(); + } + + /** + * This function allows setting a value for valueList + * + * @param valueList desired value to be set + * @return Builder object with new value for valueList + */ + public B valueList(ValueList valueList) { + getBuildingInstance().setValueList(valueList); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for levelType + * + * @param levelType desired value to be set + * @return Builder object with new value for levelType + */ + public B levelType(LevelType levelType) { + getBuildingInstance().setLevelType(levelType); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java index 5353d76a7..2c3a6bd13 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -15,79 +15,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; -import java.util.List; - - -public abstract class DescriptorBuilder> extends ExtendableBuilder { +public abstract class DescriptorBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index 0c17c2dcd..0b11a9304 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -15,34 +15,33 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +public abstract class EmbeddedDataSpecificationBuilder< + T extends EmbeddedDataSpecification, B extends EmbeddedDataSpecificationBuilder> + extends ExtendableBuilder { -public abstract class EmbeddedDataSpecificationBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for dataSpecification - * - * @param dataSpecification desired value to be set - * @return Builder object with new value for dataSpecification - */ - public B dataSpecification(Reference dataSpecification) { - getBuildingInstance().setDataSpecification(dataSpecification); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecification + * + * @param dataSpecification desired value to be set + * @return Builder object with new value for dataSpecification + */ + public B dataSpecification(Reference dataSpecification) { + getBuildingInstance().setDataSpecification(dataSpecification); + return getSelf(); + } - /** - * This function allows setting a value for dataSpecificationContent - * - * @param dataSpecificationContent desired value to be set - * @return Builder object with new value for dataSpecificationContent - */ - public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); - return getSelf(); - } + /** + * This function allows setting a value for dataSpecificationContent + * + * @param dataSpecificationContent desired value to be set + * @return Builder object with new value for dataSpecificationContent + */ + public B dataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + getBuildingInstance().setDataSpecificationContent(dataSpecificationContent); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java index f25c7d5e9..1fe871e64 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; +public abstract class EndpointBuilder> + extends ExtendableBuilder { -public abstract class EndpointBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for _interface - * - * @param _interface desired value to be set - * @return Builder object with new value for _interface - */ - public B _interface(String _interface) { - getBuildingInstance().set_interface(_interface); - return getSelf(); - } + /** + * This function allows setting a value for _interface + * + * @param _interface desired value to be set + * @return Builder object with new value for _interface + */ + public B _interface(String _interface) { + getBuildingInstance().set_interface(_interface); + return getSelf(); + } - /** - * This function allows setting a value for protocolInformation - * - * @param protocolInformation desired value to be set - * @return Builder object with new value for protocolInformation - */ - public B protocolInformation(ProtocolInformation protocolInformation) { - getBuildingInstance().setProtocolInformation(protocolInformation); - return getSelf(); - } + /** + * This function allows setting a value for protocolInformation + * + * @param protocolInformation desired value to be set + * @return Builder object with new value for protocolInformation + */ + public B protocolInformation(ProtocolInformation protocolInformation) { + getBuildingInstance().setProtocolInformation(protocolInformation); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index e8d556a0c..52e989f8a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -26,239 +27,237 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -import java.util.List; - - -public abstract class EntityBuilder> extends ExtendableBuilder { +public abstract class EntityBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for statements - * - * @param statements desired value to be set - * @return Builder object with new value for statements - */ - public B statements(List statements) { - getBuildingInstance().setStatements(statements); - return getSelf(); - } + /** + * This function allows setting a value for statements + * + * @param statements desired value to be set + * @return Builder object with new value for statements + */ + public B statements(List statements) { + getBuildingInstance().setStatements(statements); + return getSelf(); + } - /** - * This function allows adding a value to the List statements - * - * @param statements desired value to be added - * @return Builder object with new value for statements - */ - public B statements(SubmodelElement statements) { - getBuildingInstance().getStatements().add(statements); - return getSelf(); - } + /** + * This function allows adding a value to the List statements + * + * @param statements desired value to be added + * @return Builder object with new value for statements + */ + public B statements(SubmodelElement statements) { + getBuildingInstance().getStatements().add(statements); + return getSelf(); + } - /** - * This function allows setting a value for entityType - * - * @param entityType desired value to be set - * @return Builder object with new value for entityType - */ - public B entityType(EntityType entityType) { - getBuildingInstance().setEntityType(entityType); - return getSelf(); - } + /** + * This function allows setting a value for entityType + * + * @param entityType desired value to be set + * @return Builder object with new value for entityType + */ + public B entityType(EntityType entityType) { + getBuildingInstance().setEntityType(entityType); + return getSelf(); + } - /** - * This function allows setting a value for globalAssetId - * - * @param globalAssetId desired value to be set - * @return Builder object with new value for globalAssetId - */ - public B globalAssetId(String globalAssetId) { - getBuildingInstance().setGlobalAssetId(globalAssetId); - return getSelf(); - } + /** + * This function allows setting a value for globalAssetId + * + * @param globalAssetId desired value to be set + * @return Builder object with new value for globalAssetId + */ + public B globalAssetId(String globalAssetId) { + getBuildingInstance().setGlobalAssetId(globalAssetId); + return getSelf(); + } - /** - * This function allows setting a value for specificAssetIds - * - * @param specificAssetIds desired value to be set - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(List specificAssetIds) { - getBuildingInstance().setSpecificAssetIds(specificAssetIds); - return getSelf(); - } + /** + * This function allows setting a value for specificAssetIds + * + * @param specificAssetIds desired value to be set + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(List specificAssetIds) { + getBuildingInstance().setSpecificAssetIds(specificAssetIds); + return getSelf(); + } - /** - * This function allows adding a value to the List specificAssetIds - * - * @param specificAssetIds desired value to be added - * @return Builder object with new value for specificAssetIds - */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); - return getSelf(); - } + /** + * This function allows adding a value to the List specificAssetIds + * + * @param specificAssetIds desired value to be added + * @return Builder object with new value for specificAssetIds + */ + public B specificAssetIds(SpecificAssetId specificAssetIds) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 09c650bf5..387bf1c36 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -15,79 +15,78 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; -import java.util.List; - - -public abstract class EnvironmentBuilder> extends ExtendableBuilder { +public abstract class EnvironmentBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for assetAdministrationShells - * - * @param assetAdministrationShells desired value to be set - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(List assetAdministrationShells) { - getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows setting a value for assetAdministrationShells + * + * @param assetAdministrationShells desired value to be set + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(List assetAdministrationShells) { + getBuildingInstance().setAssetAdministrationShells(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows adding a value to the List assetAdministrationShells - * - * @param assetAdministrationShells desired value to be added - * @return Builder object with new value for assetAdministrationShells - */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); - return getSelf(); - } + /** + * This function allows adding a value to the List assetAdministrationShells + * + * @param assetAdministrationShells desired value to be added + * @return Builder object with new value for assetAdministrationShells + */ + public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + return getSelf(); + } - /** - * This function allows setting a value for submodels - * - * @param submodels desired value to be set - * @return Builder object with new value for submodels - */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); - return getSelf(); - } + /** + * This function allows setting a value for submodels + * + * @param submodels desired value to be set + * @return Builder object with new value for submodels + */ + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); + return getSelf(); + } - /** - * This function allows adding a value to the List submodels - * - * @param submodels desired value to be added - * @return Builder object with new value for submodels - */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); - return getSelf(); - } + /** + * This function allows adding a value to the List submodels + * + * @param submodels desired value to be added + * @return Builder object with new value for submodels + */ + public B submodels(Submodel submodels) { + getBuildingInstance().getSubmodels().add(submodels); + return getSelf(); + } - /** - * This function allows setting a value for conceptDescriptions - * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); - return getSelf(); - } + /** + * This function allows setting a value for conceptDescriptions + * + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List conceptDescriptions - * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions - */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); - return getSelf(); - } + /** + * This function allows adding a value to the List conceptDescriptions + * + * @param conceptDescriptions desired value to be added + * @return Builder object with new value for conceptDescriptions + */ + public B conceptDescriptions(ConceptDescription conceptDescriptions) { + getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index 3a9a42a1a..9946e0bed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -15,98 +15,98 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +public abstract class EventPayloadBuilder< + T extends EventPayload, B extends EventPayloadBuilder> + extends ExtendableBuilder { -public abstract class EventPayloadBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for source - * - * @param source desired value to be set - * @return Builder object with new value for source - */ - public B source(Reference source) { - getBuildingInstance().setSource(source); - return getSelf(); - } + /** + * This function allows setting a value for source + * + * @param source desired value to be set + * @return Builder object with new value for source + */ + public B source(Reference source) { + getBuildingInstance().setSource(source); + return getSelf(); + } - /** - * This function allows setting a value for sourceSemanticId - * - * @param sourceSemanticId desired value to be set - * @return Builder object with new value for sourceSemanticId - */ - public B sourceSemanticId(Reference sourceSemanticId) { - getBuildingInstance().setSourceSemanticId(sourceSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for sourceSemanticId + * + * @param sourceSemanticId desired value to be set + * @return Builder object with new value for sourceSemanticId + */ + public B sourceSemanticId(Reference sourceSemanticId) { + getBuildingInstance().setSourceSemanticId(sourceSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for observableReference - * - * @param observableReference desired value to be set - * @return Builder object with new value for observableReference - */ - public B observableReference(Reference observableReference) { - getBuildingInstance().setObservableReference(observableReference); - return getSelf(); - } + /** + * This function allows setting a value for observableReference + * + * @param observableReference desired value to be set + * @return Builder object with new value for observableReference + */ + public B observableReference(Reference observableReference) { + getBuildingInstance().setObservableReference(observableReference); + return getSelf(); + } - /** - * This function allows setting a value for observableSemanticId - * - * @param observableSemanticId desired value to be set - * @return Builder object with new value for observableSemanticId - */ - public B observableSemanticId(Reference observableSemanticId) { - getBuildingInstance().setObservableSemanticId(observableSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for observableSemanticId + * + * @param observableSemanticId desired value to be set + * @return Builder object with new value for observableSemanticId + */ + public B observableSemanticId(Reference observableSemanticId) { + getBuildingInstance().setObservableSemanticId(observableSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for topic - * - * @param topic desired value to be set - * @return Builder object with new value for topic - */ - public B topic(String topic) { - getBuildingInstance().setTopic(topic); - return getSelf(); - } + /** + * This function allows setting a value for topic + * + * @param topic desired value to be set + * @return Builder object with new value for topic + */ + public B topic(String topic) { + getBuildingInstance().setTopic(topic); + return getSelf(); + } - /** - * This function allows setting a value for subjectId - * - * @param subjectId desired value to be set - * @return Builder object with new value for subjectId - */ - public B subjectId(Reference subjectId) { - getBuildingInstance().setSubjectId(subjectId); - return getSelf(); - } + /** + * This function allows setting a value for subjectId + * + * @param subjectId desired value to be set + * @return Builder object with new value for subjectId + */ + public B subjectId(Reference subjectId) { + getBuildingInstance().setSubjectId(subjectId); + return getSelf(); + } - /** - * This function allows setting a value for timeStamp - * - * @param timeStamp desired value to be set - * @return Builder object with new value for timeStamp - */ - public B timeStamp(String timeStamp) { - getBuildingInstance().setTimeStamp(timeStamp); - return getSelf(); - } + /** + * This function allows setting a value for timeStamp + * + * @param timeStamp desired value to be set + * @return Builder object with new value for timeStamp + */ + public B timeStamp(String timeStamp) { + getBuildingInstance().setTimeStamp(timeStamp); + return getSelf(); + } - /** - * This function allows setting a value for payload - * - * @param payload desired value to be set - * @return Builder object with new value for payload - */ - public B payload(byte[] payload) { - getBuildingInstance().setPayload(payload); - return getSelf(); - } + /** + * This function allows setting a value for payload + * + * @param payload desired value to be set + * @return Builder object with new value for payload + */ + public B payload(byte[] payload) { + getBuildingInstance().setPayload(payload); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java index 7ae2e39ea..d31226815 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java @@ -15,8 +15,8 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -public abstract class ExtendableBuilder> extends AbstractBuilder { - - protected abstract B getSelf(); +public abstract class ExtendableBuilder> + extends AbstractBuilder { + protected abstract B getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java index b5fa45149..2d0130fb1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java @@ -15,100 +15,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class ExtensionBuilder> extends ExtendableBuilder { +public abstract class ExtensionBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for refersTo - * - * @param refersTos desired value to be set - * @return Builder object with new value for refersTo - */ - public B refersTo(List refersTos) { - getBuildingInstance().setRefersTo(refersTos); - return getSelf(); - } + /** + * This function allows setting a value for refersTo + * + * @param refersTos desired value to be set + * @return Builder object with new value for refersTo + */ + public B refersTo(List refersTos) { + getBuildingInstance().setRefersTo(refersTos); + return getSelf(); + } - /** - * This function allows adding a value to the List refersTo - * - * @param refersTo desired value to be added - * @return Builder object with new value for refersTo - */ - public B refersTo(Reference refersTo) { - getBuildingInstance().getRefersTo().add(refersTo); - return getSelf(); - } + /** + * This function allows adding a value to the List refersTo + * + * @param refersTo desired value to be added + * @return Builder object with new value for refersTo + */ + public B refersTo(Reference refersTo) { + getBuildingInstance().getRefersTo().add(refersTo); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index b6436f475..4f6a8a223 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -23,195 +24,193 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class FileBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class FileBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index 8865ccebe..e365d0649 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; +public abstract class KeyBuilder> + extends ExtendableBuilder { -public abstract class KeyBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(KeyTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(KeyTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index 00bb7ffc5..b71910d97 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -15,32 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; +public abstract class LangStringDefinitionTypeIec61360Builder< + T extends LangStringDefinitionTypeIec61360, + B extends LangStringDefinitionTypeIec61360Builder> + extends ExtendableBuilder { -public abstract class LangStringDefinitionTypeIec61360Builder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index 2f0c186a0..d3a3f13ac 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; +public abstract class LangStringNameTypeBuilder< + T extends LangStringNameType, B extends LangStringNameTypeBuilder> + extends ExtendableBuilder { -public abstract class LangStringNameTypeBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index fd8f04176..413f6d25d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -15,32 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; +public abstract class LangStringPreferredNameTypeIec61360Builder< + T extends LangStringPreferredNameTypeIec61360, + B extends LangStringPreferredNameTypeIec61360Builder> + extends ExtendableBuilder { -public abstract class LangStringPreferredNameTypeIec61360Builder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index daab87861..25f6840a5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -15,32 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; +public abstract class LangStringShortNameTypeIec61360Builder< + T extends LangStringShortNameTypeIec61360, + B extends LangStringShortNameTypeIec61360Builder> + extends ExtendableBuilder { -public abstract class LangStringShortNameTypeIec61360Builder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index ef1fe6aa0..d13247a66 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -15,32 +15,31 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +public abstract class LangStringTextTypeBuilder< + T extends LangStringTextType, B extends LangStringTextTypeBuilder> + extends ExtendableBuilder { -public abstract class LangStringTextTypeBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for language - * - * @param language desired value to be set - * @return Builder object with new value for language - */ - public B language(String language) { - getBuildingInstance().setLanguage(language); - return getSelf(); - } + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index ffd70d5c2..4128334b7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -15,53 +15,52 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; +public abstract class LevelTypeBuilder> + extends ExtendableBuilder { -public abstract class LevelTypeBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(boolean min) { - getBuildingInstance().setMin(min); - return getSelf(); - } + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(boolean min) { + getBuildingInstance().setMin(min); + return getSelf(); + } - /** - * This function allows setting a value for nom - * - * @param nom desired value to be set - * @return Builder object with new value for nom - */ - public B nom(boolean nom) { - getBuildingInstance().setNom(nom); - return getSelf(); - } + /** + * This function allows setting a value for nom + * + * @param nom desired value to be set + * @return Builder object with new value for nom + */ + public B nom(boolean nom) { + getBuildingInstance().setNom(nom); + return getSelf(); + } - /** - * This function allows setting a value for typ - * - * @param typ desired value to be set - * @return Builder object with new value for typ - */ - public B typ(boolean typ) { - getBuildingInstance().setTyp(typ); - return getSelf(); - } + /** + * This function allows setting a value for typ + * + * @param typ desired value to be set + * @return Builder object with new value for typ + */ + public B typ(boolean typ) { + getBuildingInstance().setTyp(typ); + return getSelf(); + } - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(boolean max) { - getBuildingInstance().setMax(max); - return getSelf(); - } + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(boolean max) { + getBuildingInstance().setMax(max); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java index 04e6ff510..a74bb9f77 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java @@ -15,65 +15,64 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.MessageTypeEnum; +public abstract class MessageBuilder> + extends ExtendableBuilder { -public abstract class MessageBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for code - * - * @param code desired value to be set - * @return Builder object with new value for code - */ - public B code(String code) { - getBuildingInstance().setCode(code); - return getSelf(); - } + /** + * This function allows setting a value for code + * + * @param code desired value to be set + * @return Builder object with new value for code + */ + public B code(String code) { + getBuildingInstance().setCode(code); + return getSelf(); + } - /** - * This function allows setting a value for correlationId - * - * @param correlationId desired value to be set - * @return Builder object with new value for correlationId - */ - public B correlationId(String correlationId) { - getBuildingInstance().setCorrelationId(correlationId); - return getSelf(); - } + /** + * This function allows setting a value for correlationId + * + * @param correlationId desired value to be set + * @return Builder object with new value for correlationId + */ + public B correlationId(String correlationId) { + getBuildingInstance().setCorrelationId(correlationId); + return getSelf(); + } - /** - * This function allows setting a value for messageType - * - * @param messageType desired value to be set - * @return Builder object with new value for messageType - */ - public B messageType(MessageTypeEnum messageType) { - getBuildingInstance().setMessageType(messageType); - return getSelf(); - } + /** + * This function allows setting a value for messageType + * + * @param messageType desired value to be set + * @return Builder object with new value for messageType + */ + public B messageType(MessageTypeEnum messageType) { + getBuildingInstance().setMessageType(messageType); + return getSelf(); + } - /** - * This function allows setting a value for text - * - * @param text desired value to be set - * @return Builder object with new value for text - */ - public B text(String text) { - getBuildingInstance().setText(text); - return getSelf(); - } + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } - /** - * This function allows setting a value for timestamp - * - * @param timestamp desired value to be set - * @return Builder object with new value for timestamp - */ - public B timestamp(String timestamp) { - getBuildingInstance().setTimestamp(timestamp); - return getSelf(); - } + /** + * This function allows setting a value for timestamp + * + * @param timestamp desired value to be set + * @return Builder object with new value for timestamp + */ + public B timestamp(String timestamp) { + getBuildingInstance().setTimestamp(timestamp); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index 363ace82e..a7780a09c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,207 +24,205 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class MultiLanguagePropertyBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param values desired value to be set - * @return Builder object with new value for value - */ - public B value(List values) { - getBuildingInstance().setValue(values); - return getSelf(); - } - - /** - * This function allows adding a value to the List value - * - * @param value desired value to be added - * @return Builder object with new value for value - */ - public B value(LangStringTextType value) { - getBuildingInstance().getValue().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class MultiLanguagePropertyBuilder< + T extends MultiLanguageProperty, B extends MultiLanguagePropertyBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param values desired value to be set + * @return Builder object with new value for value + */ + public B value(List values) { + getBuildingInstance().setValue(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List value + * + * @param value desired value to be added + * @return Builder object with new value for value + */ + public B value(LangStringTextType value) { + getBuildingInstance().getValue().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index 32756b661..96dc1230b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,239 +25,237 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class OperationBuilder> extends ExtendableBuilder { +public abstract class OperationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for inputVariables - * - * @param inputVariables desired value to be set - * @return Builder object with new value for inputVariables - */ - public B inputVariables(List inputVariables) { - getBuildingInstance().setInputVariables(inputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inputVariables + * + * @param inputVariables desired value to be set + * @return Builder object with new value for inputVariables + */ + public B inputVariables(List inputVariables) { + getBuildingInstance().setInputVariables(inputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inputVariables - * - * @param inputVariables desired value to be added - * @return Builder object with new value for inputVariables - */ - public B inputVariables(OperationVariable inputVariables) { - getBuildingInstance().getInputVariables().add(inputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inputVariables + * + * @param inputVariables desired value to be added + * @return Builder object with new value for inputVariables + */ + public B inputVariables(OperationVariable inputVariables) { + getBuildingInstance().getInputVariables().add(inputVariables); + return getSelf(); + } - /** - * This function allows setting a value for outputVariables - * - * @param outputVariables desired value to be set - * @return Builder object with new value for outputVariables - */ - public B outputVariables(List outputVariables) { - getBuildingInstance().setOutputVariables(outputVariables); - return getSelf(); - } + /** + * This function allows setting a value for outputVariables + * + * @param outputVariables desired value to be set + * @return Builder object with new value for outputVariables + */ + public B outputVariables(List outputVariables) { + getBuildingInstance().setOutputVariables(outputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List outputVariables - * - * @param outputVariables desired value to be added - * @return Builder object with new value for outputVariables - */ - public B outputVariables(OperationVariable outputVariables) { - getBuildingInstance().getOutputVariables().add(outputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List outputVariables + * + * @param outputVariables desired value to be added + * @return Builder object with new value for outputVariables + */ + public B outputVariables(OperationVariable outputVariables) { + getBuildingInstance().getOutputVariables().add(outputVariables); + return getSelf(); + } - /** - * This function allows setting a value for inoutputVariables - * - * @param inoutputVariables desired value to be set - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(List inoutputVariables) { - getBuildingInstance().setInoutputVariables(inoutputVariables); - return getSelf(); - } + /** + * This function allows setting a value for inoutputVariables + * + * @param inoutputVariables desired value to be set + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(List inoutputVariables) { + getBuildingInstance().setInoutputVariables(inoutputVariables); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputVariables - * - * @param inoutputVariables desired value to be added - * @return Builder object with new value for inoutputVariables - */ - public B inoutputVariables(OperationVariable inoutputVariables) { - getBuildingInstance().getInoutputVariables().add(inoutputVariables); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputVariables + * + * @param inoutputVariables desired value to be added + * @return Builder object with new value for inoutputVariables + */ + public B inoutputVariables(OperationVariable inoutputVariables) { + getBuildingInstance().getInoutputVariables().add(inoutputVariables); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java index 8f49b779a..9a4e3394f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java @@ -15,21 +15,20 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; +public abstract class OperationHandleBuilder< + T extends OperationHandle, B extends OperationHandleBuilder> + extends ExtendableBuilder { -public abstract class OperationHandleBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for handleId - * - * @param handleId desired value to be set - * @return Builder object with new value for handleId - */ - public B handleId(String handleId) { - getBuildingInstance().setHandleId(handleId); - return getSelf(); - } + /** + * This function allows setting a value for handleId + * + * @param handleId desired value to be set + * @return Builder object with new value for handleId + */ + public B handleId(String handleId) { + getBuildingInstance().setHandleId(handleId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java index cb041e0d3..a7f994893 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -15,67 +15,66 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import java.util.List; - - -public abstract class OperationRequestBuilder> - extends ExtendableBuilder { +public abstract class OperationRequestBuilder< + T extends OperationRequest, B extends OperationRequestBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(List inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputArguments + * + * @param inoutputArguments desired value to be added + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().getInoutputArguments().add(inoutputArguments); + return getSelf(); + } - /** - * This function allows setting a value for inputArguments - * - * @param inputArguments desired value to be set - * @return Builder object with new value for inputArguments - */ - public B inputArguments(List inputArguments) { - getBuildingInstance().setInputArguments(inputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inputArguments + * + * @param inputArguments desired value to be set + * @return Builder object with new value for inputArguments + */ + public B inputArguments(List inputArguments) { + getBuildingInstance().setInputArguments(inputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List inputArguments - * - * @param inputArguments desired value to be added - * @return Builder object with new value for inputArguments - */ - public B inputArguments(OperationVariable inputArguments) { - getBuildingInstance().getInputArguments().add(inputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List inputArguments + * + * @param inputArguments desired value to be added + * @return Builder object with new value for inputArguments + */ + public B inputArguments(OperationVariable inputArguments) { + getBuildingInstance().getInputArguments().add(inputArguments); + return getSelf(); + } - /** - * This function allows setting a value for clientTimeoutDuration - * - * @param clientTimeoutDuration desired value to be set - * @return Builder object with new value for clientTimeoutDuration - */ - public B clientTimeoutDuration(String clientTimeoutDuration) { - getBuildingInstance().setClientTimeoutDuration(clientTimeoutDuration); - return getSelf(); - } + /** + * This function allows setting a value for clientTimeoutDuration + * + * @param clientTimeoutDuration desired value to be set + * @return Builder object with new value for clientTimeoutDuration + */ + public B clientTimeoutDuration(String clientTimeoutDuration) { + getBuildingInstance().setClientTimeoutDuration(clientTimeoutDuration); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java index 1ccba4497..ca317f5bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -15,56 +15,55 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; -import java.util.List; - - -public abstract class OperationResultBuilder> - extends ExtendableBuilder { +public abstract class OperationResultBuilder< + T extends OperationResult, B extends OperationResultBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for inoutputArguments - * - * @param inoutputArguments desired value to be set - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } + /** + * This function allows setting a value for inoutputArguments + * + * @param inoutputArguments desired value to be set + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(List inoutputArguments) { + getBuildingInstance().setInoutputArguments(inoutputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List inoutputArguments + * + * @param inoutputArguments desired value to be added + * @return Builder object with new value for inoutputArguments + */ + public B inoutputArguments(OperationVariable inoutputArguments) { + getBuildingInstance().getInoutputArguments().add(inoutputArguments); + return getSelf(); + } - /** - * This function allows setting a value for outputArguments - * - * @param outputArguments desired value to be set - * @return Builder object with new value for outputArguments - */ - public B outputArguments(List outputArguments) { - getBuildingInstance().setOutputArguments(outputArguments); - return getSelf(); - } + /** + * This function allows setting a value for outputArguments + * + * @param outputArguments desired value to be set + * @return Builder object with new value for outputArguments + */ + public B outputArguments(List outputArguments) { + getBuildingInstance().setOutputArguments(outputArguments); + return getSelf(); + } - /** - * This function allows adding a value to the List outputArguments - * - * @param outputArguments desired value to be added - * @return Builder object with new value for outputArguments - */ - public B outputArguments(OperationVariable outputArguments) { - getBuildingInstance().getOutputArguments().add(outputArguments); - return getSelf(); - } + /** + * This function allows adding a value to the List outputArguments + * + * @param outputArguments desired value to be added + * @return Builder object with new value for outputArguments + */ + public B outputArguments(OperationVariable outputArguments) { + getBuildingInstance().getOutputArguments().add(outputArguments); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index 572e6f073..11cb9bd58 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -15,22 +15,21 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +public abstract class OperationVariableBuilder< + T extends OperationVariable, B extends OperationVariableBuilder> + extends ExtendableBuilder { -public abstract class OperationVariableBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(SubmodelElement value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java index d5f06244d..52271dc7b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -15,44 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; - import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; - -public abstract class PackageDescriptionBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for items - * - * @param items desired value to be set - * @return Builder object with new value for items - */ - public B items(List items) { - getBuildingInstance().setItems(items); - return getSelf(); - } - - /** - * This function allows adding a value to the List items - * - * @param items desired value to be added - * @return Builder object with new value for items - */ - public B items(String items) { - getBuildingInstance().getItems().add(items); - return getSelf(); - } - - /** - * This function allows setting a value for packageId - * - * @param packageId desired value to be set - * @return Builder object with new value for packageId - */ - public B packageId(String packageId) { - getBuildingInstance().setPackageId(packageId); - return getSelf(); - } +public abstract class PackageDescriptionBuilder< + T extends PackageDescription, B extends PackageDescriptionBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for items + * + * @param items desired value to be set + * @return Builder object with new value for items + */ + public B items(List items) { + getBuildingInstance().setItems(items); + return getSelf(); + } + + /** + * This function allows adding a value to the List items + * + * @param items desired value to be added + * @return Builder object with new value for items + */ + public B items(String items) { + getBuildingInstance().getItems().add(items); + return getSelf(); + } + + /** + * This function allows setting a value for packageId + * + * @param packageId desired value to be set + * @return Builder object with new value for packageId + */ + public B packageId(String packageId) { + getBuildingInstance().setPackageId(packageId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index ee8f60ffb..89739b108 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,206 +25,204 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class PropertyBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class PropertyBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index 73e724b43..109a8a8e1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -15,111 +15,110 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; -import java.util.List; - - -public abstract class ProtocolInformationBuilder> - extends ExtendableBuilder { +public abstract class ProtocolInformationBuilder< + T extends ProtocolInformation, B extends ProtocolInformationBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for href - * - * @param href desired value to be set - * @return Builder object with new value for href - */ - public B href(String href) { - getBuildingInstance().setHref(href); - return getSelf(); - } + /** + * This function allows setting a value for href + * + * @param href desired value to be set + * @return Builder object with new value for href + */ + public B href(String href) { + getBuildingInstance().setHref(href); + return getSelf(); + } - /** - * This function allows setting a value for endpointProtocol - * - * @param endpointProtocol desired value to be set - * @return Builder object with new value for endpointProtocol - */ - public B endpointProtocol(String endpointProtocol) { - getBuildingInstance().setEndpointProtocol(endpointProtocol); - return getSelf(); - } + /** + * This function allows setting a value for endpointProtocol + * + * @param endpointProtocol desired value to be set + * @return Builder object with new value for endpointProtocol + */ + public B endpointProtocol(String endpointProtocol) { + getBuildingInstance().setEndpointProtocol(endpointProtocol); + return getSelf(); + } - /** - * This function allows setting a value for endpointProtocolVersion - * - * @param endpointProtocolVersions desired value to be set - * @return Builder object with new value for endpointProtocolVersion - */ - public B endpointProtocolVersion(List endpointProtocolVersions) { - getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersions); - return getSelf(); - } + /** + * This function allows setting a value for endpointProtocolVersion + * + * @param endpointProtocolVersions desired value to be set + * @return Builder object with new value for endpointProtocolVersion + */ + public B endpointProtocolVersion(List endpointProtocolVersions) { + getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersions); + return getSelf(); + } - /** - * This function allows adding a value to the List endpointProtocolVersion - * - * @param endpointProtocolVersion desired value to be added - * @return Builder object with new value for endpointProtocolVersion - */ - public B endpointProtocolVersion(String endpointProtocolVersion) { - getBuildingInstance().getEndpointProtocolVersion().add(endpointProtocolVersion); - return getSelf(); - } + /** + * This function allows adding a value to the List endpointProtocolVersion + * + * @param endpointProtocolVersion desired value to be added + * @return Builder object with new value for endpointProtocolVersion + */ + public B endpointProtocolVersion(String endpointProtocolVersion) { + getBuildingInstance().getEndpointProtocolVersion().add(endpointProtocolVersion); + return getSelf(); + } - /** - * This function allows setting a value for subprotocol - * - * @param subprotocol desired value to be set - * @return Builder object with new value for subprotocol - */ - public B subprotocol(String subprotocol) { - getBuildingInstance().setSubprotocol(subprotocol); - return getSelf(); - } + /** + * This function allows setting a value for subprotocol + * + * @param subprotocol desired value to be set + * @return Builder object with new value for subprotocol + */ + public B subprotocol(String subprotocol) { + getBuildingInstance().setSubprotocol(subprotocol); + return getSelf(); + } - /** - * This function allows setting a value for subprotocolBody - * - * @param subprotocolBody desired value to be set - * @return Builder object with new value for subprotocolBody - */ - public B subprotocolBody(String subprotocolBody) { - getBuildingInstance().setSubprotocolBody(subprotocolBody); - return getSelf(); - } + /** + * This function allows setting a value for subprotocolBody + * + * @param subprotocolBody desired value to be set + * @return Builder object with new value for subprotocolBody + */ + public B subprotocolBody(String subprotocolBody) { + getBuildingInstance().setSubprotocolBody(subprotocolBody); + return getSelf(); + } - /** - * This function allows setting a value for subprotocolBodyEncoding - * - * @param subprotocolBodyEncoding desired value to be set - * @return Builder object with new value for subprotocolBodyEncoding - */ - public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { - getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); - return getSelf(); - } + /** + * This function allows setting a value for subprotocolBodyEncoding + * + * @param subprotocolBodyEncoding desired value to be set + * @return Builder object with new value for subprotocolBodyEncoding + */ + public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { + getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); + return getSelf(); + } - /** - * This function allows setting a value for securityAttributes - * - * @param securityAttributes desired value to be set - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(List securityAttributes) { - getBuildingInstance().setSecurityAttributes(securityAttributes); - return getSelf(); - } + /** + * This function allows setting a value for securityAttributes + * + * @param securityAttributes desired value to be set + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(List securityAttributes) { + getBuildingInstance().setSecurityAttributes(securityAttributes); + return getSelf(); + } - /** - * This function allows adding a value to the List securityAttributes - * - * @param securityAttributes desired value to be added - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(SecurityAttributeObject securityAttributes) { - getBuildingInstance().getSecurityAttributes().add(securityAttributes); - return getSelf(); - } + /** + * This function allows adding a value to the List securityAttributes + * + * @param securityAttributes desired value to be added + * @return Builder object with new value for securityAttributes + */ + public B securityAttributes(SecurityAttributeObject securityAttributes) { + getBuildingInstance().getSecurityAttributes().add(securityAttributes); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index 672e29b5f..a48e80623 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -15,101 +15,100 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class QualifierBuilder> extends ExtendableBuilder { +public abstract class QualifierBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(QualifierKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(QualifierKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(String type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(String type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index b5d52a57a..adabaedea 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,206 +25,204 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Range; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; -import java.util.List; - - -public abstract class RangeBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for valueType - * - * @param valueType desired value to be set - * @return Builder object with new value for valueType - */ - public B valueType(DataTypeDefXsd valueType) { - getBuildingInstance().setValueType(valueType); - return getSelf(); - } - - /** - * This function allows setting a value for min - * - * @param min desired value to be set - * @return Builder object with new value for min - */ - public B min(String min) { - getBuildingInstance().setMin(min); - return getSelf(); - } - - /** - * This function allows setting a value for max - * - * @param max desired value to be set - * @return Builder object with new value for max - */ - public B max(String max) { - getBuildingInstance().setMax(max); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class RangeBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for valueType + * + * @param valueType desired value to be set + * @return Builder object with new value for valueType + */ + public B valueType(DataTypeDefXsd valueType) { + getBuildingInstance().setValueType(valueType); + return getSelf(); + } + + /** + * This function allows setting a value for min + * + * @param min desired value to be set + * @return Builder object with new value for min + */ + public B min(String min) { + getBuildingInstance().setMin(min); + return getSelf(); + } + + /** + * This function allows setting a value for max + * + * @param max desired value to be set + * @return Builder object with new value for max + */ + public B max(String max) { + getBuildingInstance().setMax(max); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index d82a5f802..311df5fd5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -15,56 +15,55 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; -import java.util.List; - - -public abstract class ReferenceBuilder> extends ExtendableBuilder { +public abstract class ReferenceBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(ReferenceTypes type) { - getBuildingInstance().setType(type); - return getSelf(); - } + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(ReferenceTypes type) { + getBuildingInstance().setType(type); + return getSelf(); + } - /** - * This function allows setting a value for referredSemanticId - * - * @param referredSemanticId desired value to be set - * @return Builder object with new value for referredSemanticId - */ - public B referredSemanticId(Reference referredSemanticId) { - getBuildingInstance().setReferredSemanticId(referredSemanticId); - return getSelf(); - } + /** + * This function allows setting a value for referredSemanticId + * + * @param referredSemanticId desired value to be set + * @return Builder object with new value for referredSemanticId + */ + public B referredSemanticId(Reference referredSemanticId) { + getBuildingInstance().setReferredSemanticId(referredSemanticId); + return getSelf(); + } - /** - * This function allows setting a value for keys - * - * @param keys desired value to be set - * @return Builder object with new value for keys - */ - public B keys(List keys) { - getBuildingInstance().setKeys(keys); - return getSelf(); - } + /** + * This function allows setting a value for keys + * + * @param keys desired value to be set + * @return Builder object with new value for keys + */ + public B keys(List keys) { + getBuildingInstance().setKeys(keys); + return getSelf(); + } - /** - * This function allows adding a value to the List keys - * - * @param keys desired value to be added - * @return Builder object with new value for keys - */ - public B keys(Key keys) { - getBuildingInstance().getKeys().add(keys); - return getSelf(); - } + /** + * This function allows adding a value to the List keys + * + * @param keys desired value to be added + * @return Builder object with new value for keys + */ + public B keys(Key keys) { + getBuildingInstance().getKeys().add(keys); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index ca054ebbe..6d0fec4e0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,185 +24,183 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement; -import java.util.List; - - -public abstract class ReferenceElementBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(Reference value) { - getBuildingInstance().setValue(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class ReferenceElementBuilder< + T extends ReferenceElement, B extends ReferenceElementBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(Reference value) { + getBuildingInstance().setValue(value); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index 0a1b06d0b..ead574f37 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -23,196 +24,194 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement; -import java.util.List; - - -public abstract class RelationshipElementBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for first - * - * @param first desired value to be set - * @return Builder object with new value for first - */ - public B first(Reference first) { - getBuildingInstance().setFirst(first); - return getSelf(); - } - - /** - * This function allows setting a value for second - * - * @param second desired value to be set - * @return Builder object with new value for second - */ - public B second(Reference second) { - getBuildingInstance().setSecond(second); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class RelationshipElementBuilder< + T extends RelationshipElement, B extends RelationshipElementBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for first + * + * @param first desired value to be set + * @return Builder object with new value for first + */ + public B first(Reference first) { + getBuildingInstance().setFirst(first); + return getSelf(); + } + + /** + * This function allows setting a value for second + * + * @param second desired value to be set + * @return Builder object with new value for second + */ + public B second(Reference second) { + getBuildingInstance().setSecond(second); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index feaf63888..6bcabd5a3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -15,31 +15,30 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Resource; +public abstract class ResourceBuilder> + extends ExtendableBuilder { -public abstract class ResourceBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for path - * - * @param path desired value to be set - * @return Builder object with new value for path - */ - public B path(String path) { - getBuildingInstance().setPath(path); - return getSelf(); - } + /** + * This function allows setting a value for path + * + * @param path desired value to be set + * @return Builder object with new value for path + */ + public B path(String path) { + getBuildingInstance().setPath(path); + return getSelf(); + } - /** - * This function allows setting a value for contentType - * - * @param contentType desired value to be set - * @return Builder object with new value for contentType - */ - public B contentType(String contentType) { - getBuildingInstance().setContentType(contentType); - return getSelf(); - } + /** + * This function allows setting a value for contentType + * + * @param contentType desired value to be set + * @return Builder object with new value for contentType + */ + public B contentType(String contentType) { + getBuildingInstance().setContentType(contentType); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java index 96ea634e2..1f01ba015 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; -import java.util.List; - - -public abstract class ResultBuilder> extends ExtendableBuilder { +public abstract class ResultBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } + /** + * This function allows setting a value for messages + * + * @param messages desired value to be set + * @return Builder object with new value for messages + */ + public B messages(List messages) { + getBuildingInstance().setMessages(messages); + return getSelf(); + } - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } + /** + * This function allows adding a value to the List messages + * + * @param messages desired value to be added + * @return Builder object with new value for messages + */ + public B messages(Message messages) { + getBuildingInstance().getMessages().add(messages); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java index f4f5f9463..2f8ddff00 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -15,44 +15,43 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; - -public abstract class SecurityAttributeObjectBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(SecurityTypeEnum type) { - getBuildingInstance().setType(type); - return getSelf(); - } - - /** - * This function allows setting a value for key - * - * @param key desired value to be set - * @return Builder object with new value for key - */ - public B key(String key) { - getBuildingInstance().setKey(key); - return getSelf(); - } - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } +public abstract class SecurityAttributeObjectBuilder< + T extends SecurityAttributeObject, B extends SecurityAttributeObjectBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(SecurityTypeEnum type) { + getBuildingInstance().setType(type); + return getSelf(); + } + + /** + * This function allows setting a value for key + * + * @param key desired value to be set + * @return Builder object with new value for key + */ + public B key(String key) { + getBuildingInstance().setKey(key); + return getSelf(); + } + + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java index e1db1a99e..4779ec05c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java @@ -19,5 +19,4 @@ public abstract class SecurityTypeEnumBuilder< T extends SecurityTypeEnum, B extends SecurityTypeEnumBuilder> - extends ExtendableBuilder { -} + extends ExtendableBuilder {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index 5ce0d317d..e11ab9eaf 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -15,78 +15,77 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; -import java.util.List; - - -public abstract class SpecificAssetIdBuilder> - extends ExtendableBuilder { +public abstract class SpecificAssetIdBuilder< + T extends SpecificAssetId, B extends SpecificAssetIdBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for name - * - * @param name desired value to be set - * @return Builder object with new value for name - */ - public B name(String name) { - getBuildingInstance().setName(name); - return getSelf(); - } + /** + * This function allows setting a value for name + * + * @param name desired value to be set + * @return Builder object with new value for name + */ + public B name(String name) { + getBuildingInstance().setName(name); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for externalSubjectId - * - * @param externalSubjectId desired value to be set - * @return Builder object with new value for externalSubjectId - */ - public B externalSubjectId(Reference externalSubjectId) { - getBuildingInstance().setExternalSubjectId(externalSubjectId); - return getSelf(); - } + /** + * This function allows setting a value for externalSubjectId + * + * @param externalSubjectId desired value to be set + * @return Builder object with new value for externalSubjectId + */ + public B externalSubjectId(Reference externalSubjectId) { + getBuildingInstance().setExternalSubjectId(externalSubjectId); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index 198038dd2..60c5739e0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -26,228 +27,226 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; -import java.util.List; - - -public abstract class SubmodelBuilder> extends ExtendableBuilder { - - /** - * This function allows setting a value for submodelElements - * - * @param submodelElements desired value to be set - * @return Builder object with new value for submodelElements - */ - public B submodelElements(List submodelElements) { - getBuildingInstance().setSubmodelElements(submodelElements); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelElements - * - * @param submodelElements desired value to be added - * @return Builder object with new value for submodelElements - */ - public B submodelElements(SubmodelElement submodelElements) { - getBuildingInstance().getSubmodelElements().add(submodelElements); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } - - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class SubmodelBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for submodelElements + * + * @param submodelElements desired value to be set + * @return Builder object with new value for submodelElements + */ + public B submodelElements(List submodelElements) { + getBuildingInstance().setSubmodelElements(submodelElements); + return getSelf(); + } + + /** + * This function allows adding a value to the List submodelElements + * + * @param submodelElements desired value to be added + * @return Builder object with new value for submodelElements + */ + public B submodelElements(SubmodelElement submodelElements) { + getBuildingInstance().getSubmodelElements().add(submodelElements); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java index 24116b5b6..21e4c8c20 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -23,163 +24,161 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; -import java.util.List; - - -public abstract class SubmodelDescriptorBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for administration - * - * @param administration desired value to be set - * @return Builder object with new value for administration - */ - public B administration(AdministrativeInformation administration) { - getBuildingInstance().setAdministration(administration); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints - * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints - */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); - return getSelf(); - } - - /** - * This function allows adding a value to the List endpoints - * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints - */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for id - * - * @param id desired value to be set - * @return Builder object with new value for id - */ - public B id(String id) { - getBuildingInstance().setId(id); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticId - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticId - */ - public B supplementalSemanticId(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticId(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticId - * - * @param supplementalSemanticId desired value to be added - * @return Builder object with new value for supplementalSemanticId - */ - public B supplementalSemanticId(Reference supplementalSemanticId) { - getBuildingInstance().getSupplementalSemanticId().add(supplementalSemanticId); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } +public abstract class SubmodelDescriptorBuilder< + T extends SubmodelDescriptor, B extends SubmodelDescriptorBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for administration + * + * @param administration desired value to be set + * @return Builder object with new value for administration + */ + public B administration(AdministrativeInformation administration) { + getBuildingInstance().setAdministration(administration); + return getSelf(); + } + + /** + * This function allows setting a value for endpoints + * + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints + */ + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); + return getSelf(); + } + + /** + * This function allows adding a value to the List endpoints + * + * @param endpoints desired value to be added + * @return Builder object with new value for endpoints + */ + public B endpoints(Endpoint endpoints) { + getBuildingInstance().getEndpoints().add(endpoints); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for id + * + * @param id desired value to be set + * @return Builder object with new value for id + */ + public B id(String id) { + getBuildingInstance().setId(id); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticId + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticId + */ + public B supplementalSemanticId(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticId(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticId + * + * @param supplementalSemanticId desired value to be added + * @return Builder object with new value for supplementalSemanticId + */ + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticId().add(supplementalSemanticId); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index 8e862bf93..c3b9824fd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,185 +25,183 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes; -import java.util.List; - - -public abstract class SubmodelElementAttributesBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for kind - * - * @param kind desired value to be set - * @return Builder object with new value for kind - */ - public B kind(ModellingKind kind) { - getBuildingInstance().setKind(kind); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class SubmodelElementAttributesBuilder< + T extends SubmodelElementAttributes, B extends SubmodelElementAttributesBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for kind + * + * @param kind desired value to be set + * @return Builder object with new value for kind + */ + public B kind(ModellingKind kind) { + getBuildingInstance().setKind(kind); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index 75cc658df..ec6d1ce71 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,196 +25,194 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection; -import java.util.List; - - -public abstract class SubmodelElementCollectionBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param values desired value to be set - * @return Builder object with new value for value - */ - public B value(List values) { - getBuildingInstance().setValue(values); - return getSelf(); - } - - /** - * This function allows adding a value to the List value - * - * @param value desired value to be added - * @return Builder object with new value for value - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValue().add(value); - return getSelf(); - } - - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } - - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } - - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } - - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } - - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } - - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } - - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } +public abstract class SubmodelElementCollectionBuilder< + T extends SubmodelElementCollection, B extends SubmodelElementCollectionBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for value + * + * @param values desired value to be set + * @return Builder object with new value for value + */ + public B value(List values) { + getBuildingInstance().setValue(values); + return getSelf(); + } + + /** + * This function allows adding a value to the List value + * + * @param value desired value to be added + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValue().add(value); + return getSelf(); + } + + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } + + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } + + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } + + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } + + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } + + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } + + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } + + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } + + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } + + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } + + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } + + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index 17096590d..bba8410ec 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -15,6 +15,7 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,240 +27,238 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList; -import java.util.List; - - -public abstract class SubmodelElementListBuilder> - extends ExtendableBuilder { +public abstract class SubmodelElementListBuilder< + T extends SubmodelElementList, B extends SubmodelElementListBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for orderRelevant - * - * @param orderRelevant desired value to be set - * @return Builder object with new value for orderRelevant - */ - public B orderRelevant(boolean orderRelevant) { - getBuildingInstance().setOrderRelevant(orderRelevant); - return getSelf(); - } + /** + * This function allows setting a value for orderRelevant + * + * @param orderRelevant desired value to be set + * @return Builder object with new value for orderRelevant + */ + public B orderRelevant(boolean orderRelevant) { + getBuildingInstance().setOrderRelevant(orderRelevant); + return getSelf(); + } - /** - * This function allows setting a value for semanticIdListElement - * - * @param semanticIdListElement desired value to be set - * @return Builder object with new value for semanticIdListElement - */ - public B semanticIdListElement(Reference semanticIdListElement) { - getBuildingInstance().setSemanticIdListElement(semanticIdListElement); - return getSelf(); - } + /** + * This function allows setting a value for semanticIdListElement + * + * @param semanticIdListElement desired value to be set + * @return Builder object with new value for semanticIdListElement + */ + public B semanticIdListElement(Reference semanticIdListElement) { + getBuildingInstance().setSemanticIdListElement(semanticIdListElement); + return getSelf(); + } - /** - * This function allows setting a value for typeValueListElement - * - * @param typeValueListElement desired value to be set - * @return Builder object with new value for typeValueListElement - */ - public B typeValueListElement(AasSubmodelElements typeValueListElement) { - getBuildingInstance().setTypeValueListElement(typeValueListElement); - return getSelf(); - } + /** + * This function allows setting a value for typeValueListElement + * + * @param typeValueListElement desired value to be set + * @return Builder object with new value for typeValueListElement + */ + public B typeValueListElement(AasSubmodelElements typeValueListElement) { + getBuildingInstance().setTypeValueListElement(typeValueListElement); + return getSelf(); + } - /** - * This function allows setting a value for valueTypeListElement - * - * @param valueTypeListElement desired value to be set - * @return Builder object with new value for valueTypeListElement - */ - public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { - getBuildingInstance().setValueTypeListElement(valueTypeListElement); - return getSelf(); - } + /** + * This function allows setting a value for valueTypeListElement + * + * @param valueTypeListElement desired value to be set + * @return Builder object with new value for valueTypeListElement + */ + public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { + getBuildingInstance().setValueTypeListElement(valueTypeListElement); + return getSelf(); + } - /** - * This function allows setting a value for value - * - * @param values desired value to be set - * @return Builder object with new value for value - */ - public B value(List values) { - getBuildingInstance().setValue(values); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param values desired value to be set + * @return Builder object with new value for value + */ + public B value(List values) { + getBuildingInstance().setValue(values); + return getSelf(); + } - /** - * This function allows adding a value to the List value - * - * @param value desired value to be added - * @return Builder object with new value for value - */ - public B value(SubmodelElement value) { - getBuildingInstance().getValue().add(value); - return getSelf(); - } + /** + * This function allows adding a value to the List value + * + * @param value desired value to be added + * @return Builder object with new value for value + */ + public B value(SubmodelElement value) { + getBuildingInstance().getValue().add(value); + return getSelf(); + } - /** - * This function allows setting a value for category - * - * @param category desired value to be set - * @return Builder object with new value for category - */ - public B category(String category) { - getBuildingInstance().setCategory(category); - return getSelf(); - } + /** + * This function allows setting a value for category + * + * @param category desired value to be set + * @return Builder object with new value for category + */ + public B category(String category) { + getBuildingInstance().setCategory(category); + return getSelf(); + } - /** - * This function allows setting a value for idShort - * - * @param idShort desired value to be set - * @return Builder object with new value for idShort - */ - public B idShort(String idShort) { - getBuildingInstance().setIdShort(idShort); - return getSelf(); - } + /** + * This function allows setting a value for idShort + * + * @param idShort desired value to be set + * @return Builder object with new value for idShort + */ + public B idShort(String idShort) { + getBuildingInstance().setIdShort(idShort); + return getSelf(); + } - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } + /** + * This function allows setting a value for displayName + * + * @param displayNames desired value to be set + * @return Builder object with new value for displayName + */ + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); + return getSelf(); + } - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } + /** + * This function allows adding a value to the List displayName + * + * @param displayName desired value to be added + * @return Builder object with new value for displayName + */ + public B displayName(LangStringNameType displayName) { + getBuildingInstance().getDisplayName().add(displayName); + return getSelf(); + } - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } + /** + * This function allows setting a value for description + * + * @param descriptions desired value to be set + * @return Builder object with new value for description + */ + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); + return getSelf(); + } - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } + /** + * This function allows adding a value to the List description + * + * @param description desired value to be added + * @return Builder object with new value for description + */ + public B description(LangStringTextType description) { + getBuildingInstance().getDescription().add(description); + return getSelf(); + } - /** - * This function allows setting a value for extensions - * - * @param extensions desired value to be set - * @return Builder object with new value for extensions - */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); - return getSelf(); - } + /** + * This function allows setting a value for extensions + * + * @param extensions desired value to be set + * @return Builder object with new value for extensions + */ + public B extensions(List extensions) { + getBuildingInstance().setExtensions(extensions); + return getSelf(); + } - /** - * This function allows adding a value to the List extensions - * - * @param extensions desired value to be added - * @return Builder object with new value for extensions - */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); - return getSelf(); - } + /** + * This function allows adding a value to the List extensions + * + * @param extensions desired value to be added + * @return Builder object with new value for extensions + */ + public B extensions(Extension extensions) { + getBuildingInstance().getExtensions().add(extensions); + return getSelf(); + } - /** - * This function allows setting a value for embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be set - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(List embeddedDataSpecifications) { - getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows setting a value for embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be set + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(List embeddedDataSpecifications) { + getBuildingInstance().setEmbeddedDataSpecifications(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows adding a value to the List embeddedDataSpecifications - * - * @param embeddedDataSpecifications desired value to be added - * @return Builder object with new value for embeddedDataSpecifications - */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); - return getSelf(); - } + /** + * This function allows adding a value to the List embeddedDataSpecifications + * + * @param embeddedDataSpecifications desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + return getSelf(); + } - /** - * This function allows setting a value for semanticId - * - * @param semanticId desired value to be set - * @return Builder object with new value for semanticId - */ - public B semanticId(Reference semanticId) { - getBuildingInstance().setSemanticId(semanticId); - return getSelf(); - } + /** + * This function allows setting a value for semanticId + * + * @param semanticId desired value to be set + * @return Builder object with new value for semanticId + */ + public B semanticId(Reference semanticId) { + getBuildingInstance().setSemanticId(semanticId); + return getSelf(); + } - /** - * This function allows setting a value for supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows setting a value for supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be set + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(List supplementalSemanticIds) { + getBuildingInstance().setSupplementalSemanticIds(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows adding a value to the List supplementalSemanticIds - * - * @param supplementalSemanticIds desired value to be added - * @return Builder object with new value for supplementalSemanticIds - */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); - return getSelf(); - } + /** + * This function allows adding a value to the List supplementalSemanticIds + * + * @param supplementalSemanticIds desired value to be added + * @return Builder object with new value for supplementalSemanticIds + */ + public B supplementalSemanticIds(Reference supplementalSemanticIds) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + return getSelf(); + } - /** - * This function allows setting a value for qualifiers - * - * @param qualifiers desired value to be set - * @return Builder object with new value for qualifiers - */ - public B qualifiers(List qualifiers) { - getBuildingInstance().setQualifiers(qualifiers); - return getSelf(); - } + /** + * This function allows setting a value for qualifiers + * + * @param qualifiers desired value to be set + * @return Builder object with new value for qualifiers + */ + public B qualifiers(List qualifiers) { + getBuildingInstance().setQualifiers(qualifiers); + return getSelf(); + } - /** - * This function allows adding a value to the List qualifiers - * - * @param qualifiers desired value to be added - * @return Builder object with new value for qualifiers - */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); - return getSelf(); - } + /** + * This function allows adding a value to the List qualifiers + * + * @param qualifiers desired value to be added + * @return Builder object with new value for qualifiers + */ + public B qualifiers(Qualifier qualifiers) { + getBuildingInstance().getQualifiers().add(qualifiers); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index e1174b190..dd0ce9b9c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; +import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; -import java.util.List; - - -public abstract class ValueListBuilder> extends ExtendableBuilder { +public abstract class ValueListBuilder> + extends ExtendableBuilder { - /** - * This function allows setting a value for valueReferencePairs - * - * @param valueReferencePairs desired value to be set - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(List valueReferencePairs) { - getBuildingInstance().setValueReferencePairs(valueReferencePairs); - return getSelf(); - } + /** + * This function allows setting a value for valueReferencePairs + * + * @param valueReferencePairs desired value to be set + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(List valueReferencePairs) { + getBuildingInstance().setValueReferencePairs(valueReferencePairs); + return getSelf(); + } - /** - * This function allows adding a value to the List valueReferencePairs - * - * @param valueReferencePairs desired value to be added - * @return Builder object with new value for valueReferencePairs - */ - public B valueReferencePairs(ValueReferencePair valueReferencePairs) { - getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); - return getSelf(); - } + /** + * This function allows adding a value to the List valueReferencePairs + * + * @param valueReferencePairs desired value to be added + * @return Builder object with new value for valueReferencePairs + */ + public B valueReferencePairs(ValueReferencePair valueReferencePairs) { + getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index 02c0985e4..ddd4e9a7f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -15,33 +15,32 @@ package org.eclipse.digitaltwin.aas4j.v3.model.builder; - import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; +public abstract class ValueReferencePairBuilder< + T extends ValueReferencePair, B extends ValueReferencePairBuilder> + extends ExtendableBuilder { -public abstract class ValueReferencePairBuilder> - extends ExtendableBuilder { - - /** - * This function allows setting a value for value - * - * @param value desired value to be set - * @return Builder object with new value for value - */ - public B value(String value) { - getBuildingInstance().setValue(value); - return getSelf(); - } + /** + * This function allows setting a value for value + * + * @param value desired value to be set + * @return Builder object with new value for value + */ + public B value(String value) { + getBuildingInstance().setValue(value); + return getSelf(); + } - /** - * This function allows setting a value for valueId - * - * @param valueId desired value to be set - * @return Builder object with new value for valueId - */ - public B valueId(Reference valueId) { - getBuildingInstance().setValueId(valueId); - return getSelf(); - } + /** + * This function allows setting a value for valueId + * + * @param valueId desired value to be set + * @return Builder object with new value for valueId + */ + public B valueId(Reference valueId) { + getBuildingInstance().setValueId(valueId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index 6f073c779..3b61db249 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -15,145 +15,143 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AdministrativeInformationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation - *

- * Administrative meta-information for an element like version information. + * + *

Administrative meta-information for an element like version information. */ - @IRI("aas:AdministrativeInformation") public class DefaultAdministrativeInformation implements AdministrativeInformation { - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") - protected Reference creator; - - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") - protected String revision; - - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") - protected String templateId; - - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") - protected String version; - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - public DefaultAdministrativeInformation() { + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") + protected Reference creator; + + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") + protected String revision; + + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") + protected String templateId; + + @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") + protected String version; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + public DefaultAdministrativeInformation() {} + + @Override + public int hashCode() { + return Objects.hash( + this.version, + this.revision, + this.creator, + this.templateId, + this.embeddedDataSpecifications); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; + return Objects.equals(this.version, other.version) + && Objects.equals(this.revision, other.revision) + && Objects.equals(this.creator, other.creator) + && Objects.equals(this.templateId, other.templateId) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); } + } + + @Override + public String getVersion() { + return version; + } + + @Override + public void setVersion(String version) { + this.version = version; + } + + @Override + public String getRevision() { + return revision; + } + + @Override + public void setRevision(String revision) { + this.revision = revision; + } + + @Override + public Reference getCreator() { + return creator; + } + + @Override + public void setCreator(Reference creator) { + this.creator = creator; + } + + @Override + public String getTemplateId() { + return templateId; + } + + @Override + public void setTemplateId(String templateId) { + this.templateId = templateId; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + public String toString() { + return String.format( + "DefaultAdministrativeInformation (" + + "version=%s," + + "revision=%s," + + "creator=%s," + + "templateId=%s," + + ")", + this.version, this.revision, this.creator, this.templateId); + } + + /** This builder class can be used to construct a DefaultAdministrativeInformation bean. */ + public static class Builder + extends AdministrativeInformationBuilder { @Override - public int hashCode() { - return Objects.hash(this.version, - this.revision, - this.creator, - this.templateId, - this.embeddedDataSpecifications); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAdministrativeInformation other = (DefaultAdministrativeInformation) obj; - return Objects.equals(this.version, other.version) && - Objects.equals(this.revision, other.revision) && - Objects.equals(this.creator, other.creator) && - Objects.equals(this.templateId, other.templateId) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); - } - } - - @Override - public String getVersion() { - return version; - } - - @Override - public void setVersion(String version) { - this.version = version; - } - - @Override - public String getRevision() { - return revision; - } - - @Override - public void setRevision(String revision) { - this.revision = revision; - } - - @Override - public Reference getCreator() { - return creator; - } - - @Override - public void setCreator(Reference creator) { - this.creator = creator; - } - - @Override - public String getTemplateId() { - return templateId; - } - - @Override - public void setTemplateId(String templateId) { - this.templateId = templateId; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - public String toString() { - return String.format( - "DefaultAdministrativeInformation (" + "version=%s," - + "revision=%s," - + "creator=%s," - + "templateId=%s," - + ")", - this.version, this.revision, this.creator, this.templateId); - } - - /** - * This builder class can be used to construct a DefaultAdministrativeInformation bean. - */ - public static class Builder extends AdministrativeInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAdministrativeInformation newBuildingInstance() { - return new DefaultAdministrativeInformation(); - } + protected DefaultAdministrativeInformation newBuildingInstance() { + return new DefaultAdministrativeInformation(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index e3180441f..ed9ab78ac 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,242 +29,234 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AnnotatedRelationshipElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement - *

- * An annotated relationship element is a relationship element that can be annotated with additional - * data elements. + * + *

An annotated relationship element is a relationship element that can be annotated with + * additional data elements. */ - @IRI("aas:AnnotatedRelationshipElement") public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshipElement { - @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") - protected List annotations = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") - protected Reference second; - - public DefaultAnnotatedRelationshipElement() { - } - - @Override - public int hashCode() { - return Objects.hash(this.annotations, - this.first, - this.second, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; - return Objects.equals(this.annotations, other.annotations) && - Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getAnnotations() { - return annotations; - } - - @Override - public void setAnnotations(List annotations) { - this.annotations = annotations; - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") + protected List annotations = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + protected Reference second; + + public DefaultAnnotatedRelationshipElement() {} + + @Override + public int hashCode() { + return Objects.hash( + this.annotations, + this.first, + this.second, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAnnotatedRelationshipElement other = (DefaultAnnotatedRelationshipElement) obj; + return Objects.equals(this.annotations, other.annotations) + && Objects.equals(this.first, other.first) + && Objects.equals(this.second, other.second) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getAnnotations() { + return annotations; + } + + @Override + public void setAnnotations(List annotations) { + this.annotations = annotations; + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultAnnotatedRelationshipElement (" + "annotations=%s," + ")", this.annotations); + } + + /** This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. */ + public static class Builder + extends AnnotatedRelationshipElementBuilder { @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + protected Builder getSelf() { + return this; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultAnnotatedRelationshipElement (" + "annotations=%s," - + ")", - this.annotations); - } - - /** - * This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. - */ - public static class Builder extends AnnotatedRelationshipElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAnnotatedRelationshipElement newBuildingInstance() { - return new DefaultAnnotatedRelationshipElement(); - } + protected DefaultAnnotatedRelationshipElement newBuildingInstance() { + return new DefaultAnnotatedRelationshipElement(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index 95aaa74f3..83d966ac8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -26,227 +29,222 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell - *

- * An asset administration shell. + * + *

An asset administration shell. */ - @IRI("aas:AssetAdministrationShell") public class DefaultAssetAdministrationShell implements AssetAdministrationShell { - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") - protected AssetInformation assetInformation; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") - protected Reference derivedFrom; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") - protected List submodels = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultAssetAdministrationShell() { - } - - @Override - public int hashCode() { - return Objects.hash(this.derivedFrom, - this.assetInformation, - this.submodels, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; - return Objects.equals(this.derivedFrom, other.derivedFrom) && - Objects.equals(this.assetInformation, other.assetInformation) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public Reference getDerivedFrom() { - return derivedFrom; - } - - @Override - public void setDerivedFrom(Reference derivedFrom) { - this.derivedFrom = derivedFrom; - } - - @Override - public AssetInformation getAssetInformation() { - return assetInformation; - } - - @Override - public void setAssetInformation(AssetInformation assetInformation) { - this.assetInformation = assetInformation; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultAssetAdministrationShell (" + "derivedFrom=%s," - + "assetInformation=%s," - + "submodels=%s," - + ")", - this.derivedFrom, this.assetInformation, this.submodels); - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShell bean. - */ - public static class Builder extends AssetAdministrationShellBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShell newBuildingInstance() { - return new DefaultAssetAdministrationShell(); - } - } + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") + protected AssetInformation assetInformation; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") + protected Reference derivedFrom; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") + protected List submodels = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultAssetAdministrationShell() {} + + @Override + public int hashCode() { + return Objects.hash( + this.derivedFrom, + this.assetInformation, + this.submodels, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShell other = (DefaultAssetAdministrationShell) obj; + return Objects.equals(this.derivedFrom, other.derivedFrom) + && Objects.equals(this.assetInformation, other.assetInformation) + && Objects.equals(this.submodels, other.submodels) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.administration, other.administration) + && Objects.equals(this.id, other.id) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public Reference getDerivedFrom() { + return derivedFrom; + } + + @Override + public void setDerivedFrom(Reference derivedFrom) { + this.derivedFrom = derivedFrom; + } + + @Override + public AssetInformation getAssetInformation() { + return assetInformation; + } + + @Override + public void setAssetInformation(AssetInformation assetInformation) { + this.assetInformation = assetInformation; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultAssetAdministrationShell (" + + "derivedFrom=%s," + + "assetInformation=%s," + + "submodels=%s," + + ")", + this.derivedFrom, this.assetInformation, this.submodels); + } + + /** This builder class can be used to construct a DefaultAssetAdministrationShell bean. */ + public static class Builder + extends AssetAdministrationShellBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultAssetAdministrationShell newBuildingInstance() { + return new DefaultAssetAdministrationShell(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java index 65382b039..f8ba2f18a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; @@ -27,249 +30,254 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellDescriptorBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor - * */ - @IRI("aas:AssetAdministrationShellDescriptor") -public class DefaultAssetAdministrationShellDescriptor implements AssetAdministrationShellDescriptor { - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") - protected AssetKind assetKind; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") - protected String assetType; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") - protected List submodelDescriptors = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - protected List extensions = new ArrayList<>(); - - public DefaultAssetAdministrationShellDescriptor() { - } - - @Override - public int hashCode() { - return Objects.hash(this.administration, - this.assetKind, - this.assetType, - this.endpoints, - this.globalAssetId, - this.idShort, - this.id, - this.specificAssetIds, - this.submodelDescriptors, - this.description, - this.displayName, - this.extensions); +public class DefaultAssetAdministrationShellDescriptor + implements AssetAdministrationShellDescriptor { + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") + protected AssetKind assetKind; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") + protected String assetType; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") + protected List submodelDescriptors = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + protected List extensions = new ArrayList<>(); + + public DefaultAssetAdministrationShellDescriptor() {} + + @Override + public int hashCode() { + return Objects.hash( + this.administration, + this.assetKind, + this.assetType, + this.endpoints, + this.globalAssetId, + this.idShort, + this.id, + this.specificAssetIds, + this.submodelDescriptors, + this.description, + this.displayName, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetAdministrationShellDescriptor other = + (DefaultAssetAdministrationShellDescriptor) obj; + return Objects.equals(this.administration, other.administration) + && Objects.equals(this.assetKind, other.assetKind) + && Objects.equals(this.assetType, other.assetType) + && Objects.equals(this.endpoints, other.endpoints) + && Objects.equals(this.globalAssetId, other.globalAssetId) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.id, other.id) + && Objects.equals(this.specificAssetIds, other.specificAssetIds) + && Objects.equals(this.submodelDescriptors, other.submodelDescriptors) + && Objects.equals(this.description, other.description) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.extensions, other.extensions); } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public AssetKind getAssetKind() { + return assetKind; + } + + @Override + public void setAssetKind(AssetKind assetKind) { + this.assetKind = assetKind; + } + + @Override + public String getAssetType() { + return assetType; + } + + @Override + public void setAssetType(String assetType) { + this.assetType = assetType; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public List getSubmodelDescriptors() { + return submodelDescriptors; + } + + @Override + public void setSubmodelDescriptors(List submodelDescriptors) { + this.submodelDescriptors = submodelDescriptors; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultAssetAdministrationShellDescriptor (" + + "administration=%s," + + "assetKind=%s," + + "assetType=%s," + + "endpoints=%s," + + "globalAssetId=%s," + + "idShort=%s," + + "id=%s," + + "specificAssetIds=%s," + + "submodelDescriptors=%s," + + ")", + this.administration, + this.assetKind, + this.assetType, + this.endpoints, + this.globalAssetId, + this.idShort, + this.id, + this.specificAssetIds, + this.submodelDescriptors); + } + + /** + * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. + */ + public static class Builder + extends AssetAdministrationShellDescriptorBuilder< + DefaultAssetAdministrationShellDescriptor, Builder> { @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetAdministrationShellDescriptor other = (DefaultAssetAdministrationShellDescriptor) obj; - return Objects.equals(this.administration, other.administration) && - Objects.equals(this.assetKind, other.assetKind) && - Objects.equals(this.assetType, other.assetType) && - Objects.equals(this.endpoints, other.endpoints) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.id, other.id) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.submodelDescriptors, other.submodelDescriptors) && - Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.extensions, other.extensions); - } + protected Builder getSelf() { + return this; } @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getAssetType() { - return assetType; - } - - @Override - public void setAssetType(String assetType) { - this.assetType = assetType; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public List getSubmodelDescriptors() { - return submodelDescriptors; - } - - @Override - public void setSubmodelDescriptors(List submodelDescriptors) { - this.submodelDescriptors = submodelDescriptors; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultAssetAdministrationShellDescriptor (" + "administration=%s," - + "assetKind=%s," - + "assetType=%s," - + "endpoints=%s," - + "globalAssetId=%s," - + "idShort=%s," - + "id=%s," - + "specificAssetIds=%s," - + "submodelDescriptors=%s," - + ")", - this.administration, this.assetKind, this.assetType, this.endpoints, this.globalAssetId, this.idShort, this.id, - this.specificAssetIds, this.submodelDescriptors); - } - - /** - * This builder class can be used to construct a DefaultAssetAdministrationShellDescriptor bean. - */ - public static class Builder extends AssetAdministrationShellDescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { - return new DefaultAssetAdministrationShellDescriptor(); - } + protected DefaultAssetAdministrationShellDescriptor newBuildingInstance() { + return new DefaultAssetAdministrationShellDescriptor(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index f1f72b94c..2d017788c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; @@ -22,140 +25,137 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetInformationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation - *

- * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is + * + *

In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. */ - @IRI("aas:AssetInformation") public class DefaultAssetInformation implements AssetInformation { - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") - protected AssetKind assetKind; - - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") - protected String assetType; - - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") - protected Resource defaultThumbnail; - - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - public DefaultAssetInformation() { + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") + protected AssetKind assetKind; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") + protected String assetType; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") + protected Resource defaultThumbnail; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + public DefaultAssetInformation() {} + + @Override + public int hashCode() { + return Objects.hash( + this.assetKind, + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultAssetInformation other = (DefaultAssetInformation) obj; + return Objects.equals(this.assetKind, other.assetKind) + && Objects.equals(this.globalAssetId, other.globalAssetId) + && Objects.equals(this.specificAssetIds, other.specificAssetIds) + && Objects.equals(this.assetType, other.assetType) + && Objects.equals(this.defaultThumbnail, other.defaultThumbnail); } + } + + @Override + public AssetKind getAssetKind() { + return assetKind; + } + + @Override + public void setAssetKind(AssetKind assetKind) { + this.assetKind = assetKind; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public String getAssetType() { + return assetType; + } + + @Override + public void setAssetType(String assetType) { + this.assetType = assetType; + } + + @Override + public Resource getDefaultThumbnail() { + return defaultThumbnail; + } + + @Override + public void setDefaultThumbnail(Resource defaultThumbnail) { + this.defaultThumbnail = defaultThumbnail; + } + + public String toString() { + return String.format( + "DefaultAssetInformation (" + + "assetKind=%s," + + "globalAssetId=%s," + + "specificAssetIds=%s," + + "assetType=%s," + + "defaultThumbnail=%s," + + ")", + this.assetKind, + this.globalAssetId, + this.specificAssetIds, + this.assetType, + this.defaultThumbnail); + } + + /** This builder class can be used to construct a DefaultAssetInformation bean. */ + public static class Builder extends AssetInformationBuilder { @Override - public int hashCode() { - return Objects.hash(this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultAssetInformation other = (DefaultAssetInformation) obj; - return Objects.equals(this.assetKind, other.assetKind) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.assetType, other.assetType) && - Objects.equals(this.defaultThumbnail, other.defaultThumbnail); - } - } - - @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getGlobalAssetId() { - return globalAssetId; - } - - @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getAssetType() { - return assetType; - } - - @Override - public void setAssetType(String assetType) { - this.assetType = assetType; - } - - @Override - public Resource getDefaultThumbnail() { - return defaultThumbnail; - } - - @Override - public void setDefaultThumbnail(Resource defaultThumbnail) { - this.defaultThumbnail = defaultThumbnail; - } - - public String toString() { - return String.format( - "DefaultAssetInformation (" + "assetKind=%s," - + "globalAssetId=%s," - + "specificAssetIds=%s," - + "assetType=%s," - + "defaultThumbnail=%s," - + ")", - this.assetKind, this.globalAssetId, this.specificAssetIds, this.assetType, this.defaultThumbnail); - } - - /** - * This builder class can be used to construct a DefaultAssetInformation bean. - */ - public static class Builder extends AssetInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultAssetInformation newBuildingInstance() { - return new DefaultAssetInformation(); - } + protected DefaultAssetInformation newBuildingInstance() { + return new DefaultAssetInformation(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java index c3395df16..f8e1b4be1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -15,111 +15,99 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult */ @IRI("aas:BaseOperationResult") public class DefaultBaseOperationResult implements BaseOperationResult { - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") - protected ExecutionState executionState; - - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") - protected boolean success; - - @IRI("https://admin-shell.io/aas/3/0/Result/messages") - protected List messages = new ArrayList<>(); - - public DefaultBaseOperationResult() { - } - - @Override - public int hashCode() { - return Objects.hash(this.executionState, - this.success, - this.messages); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; - return Objects.equals(this.executionState, other.executionState) && - Objects.equals(this.success, other.success) && - Objects.equals(this.messages, other.messages); - } - } - - @Override - public ExecutionState getExecutionState() { - return executionState; - } - - @Override - public void setExecutionState(ExecutionState executionState) { - this.executionState = executionState; - } - - @Override - public boolean getSuccess() { - return success; + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") + protected ExecutionState executionState; + + @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") + protected boolean success; + + @IRI("https://admin-shell.io/aas/3/0/Result/messages") + protected List messages = new ArrayList<>(); + + public DefaultBaseOperationResult() {} + + @Override + public int hashCode() { + return Objects.hash(this.executionState, this.success, this.messages); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; + return Objects.equals(this.executionState, other.executionState) + && Objects.equals(this.success, other.success) + && Objects.equals(this.messages, other.messages); } + } + + @Override + public ExecutionState getExecutionState() { + return executionState; + } + + @Override + public void setExecutionState(ExecutionState executionState) { + this.executionState = executionState; + } + + @Override + public boolean getSuccess() { + return success; + } + + @Override + public void setSuccess(boolean success) { + this.success = success; + } + + @Override + public List getMessages() { + return messages; + } + + @Override + public void setMessages(List messages) { + this.messages = messages; + } + + public String toString() { + return String.format( + "DefaultBaseOperationResult (" + "executionState=%s," + "success=%s," + ")", + this.executionState, this.success); + } + + /** This builder class can be used to construct a DefaultBaseOperationResult bean. */ + public static class Builder + extends BaseOperationResultBuilder { @Override - public void setSuccess(boolean success) { - this.success = success; + protected Builder getSelf() { + return this; } @Override - public List getMessages() { - return messages; - } - - @Override - public void setMessages(List messages) { - this.messages = messages; - } - - public String toString() { - return String.format( - "DefaultBaseOperationResult (" + "executionState=%s," - + "success=%s," - + ")", - this.executionState, this.success); - } - - /** - * This builder class can be used to construct a DefaultBaseOperationResult bean. - */ - public static class Builder extends BaseOperationResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBaseOperationResult newBuildingInstance() { - return new DefaultBaseOperationResult(); - } + protected DefaultBaseOperationResult newBuildingInstance() { + return new DefaultBaseOperationResult(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index 5937921a6..edf994bea 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -27,323 +30,323 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BasicEventElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement - *

- * A basic event element. + * + *

A basic event element. */ - @IRI("aas:BasicEventElement") public class DefaultBasicEventElement implements BasicEventElement { - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") - protected Direction direction; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") - protected String lastUpdate; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") - protected String maxInterval; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") - protected Reference messageBroker; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") - protected String messageTopic; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") - protected String minInterval; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") - protected Reference observed; - - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") - protected StateOfEvent state; - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultBasicEventElement() { - } - - @Override - public int hashCode() { - return Objects.hash(this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBasicEventElement other = (DefaultBasicEventElement) obj; - return Objects.equals(this.observed, other.observed) && - Objects.equals(this.direction, other.direction) && - Objects.equals(this.state, other.state) && - Objects.equals(this.messageTopic, other.messageTopic) && - Objects.equals(this.messageBroker, other.messageBroker) && - Objects.equals(this.lastUpdate, other.lastUpdate) && - Objects.equals(this.minInterval, other.minInterval) && - Objects.equals(this.maxInterval, other.maxInterval) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getObserved() { - return observed; - } - - @Override - public void setObserved(Reference observed) { - this.observed = observed; - } - - @Override - public Direction getDirection() { - return direction; - } - - @Override - public void setDirection(Direction direction) { - this.direction = direction; - } - - @Override - public StateOfEvent getState() { - return state; - } - - @Override - public void setState(StateOfEvent state) { - this.state = state; - } - - @Override - public String getMessageTopic() { - return messageTopic; - } - - @Override - public void setMessageTopic(String messageTopic) { - this.messageTopic = messageTopic; - } - - @Override - public Reference getMessageBroker() { - return messageBroker; - } - - @Override - public void setMessageBroker(Reference messageBroker) { - this.messageBroker = messageBroker; - } - - @Override - public String getLastUpdate() { - return lastUpdate; - } - - @Override - public void setLastUpdate(String lastUpdate) { - this.lastUpdate = lastUpdate; - } - - @Override - public String getMinInterval() { - return minInterval; - } - - @Override - public void setMinInterval(String minInterval) { - this.minInterval = minInterval; - } - - @Override - public String getMaxInterval() { - return maxInterval; - } - - @Override - public void setMaxInterval(String maxInterval) { - this.maxInterval = maxInterval; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultBasicEventElement (" + "observed=%s," - + "direction=%s," - + "state=%s," - + "messageTopic=%s," - + "messageBroker=%s," - + "lastUpdate=%s," - + "minInterval=%s," - + "maxInterval=%s," - + ")", - this.observed, this.direction, this.state, this.messageTopic, this.messageBroker, this.lastUpdate, this.minInterval, - this.maxInterval); - } - - /** - * This builder class can be used to construct a DefaultBasicEventElement bean. - */ - public static class Builder extends BasicEventElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBasicEventElement newBuildingInstance() { - return new DefaultBasicEventElement(); - } - } + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") + protected Direction direction; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") + protected String lastUpdate; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") + protected String maxInterval; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") + protected Reference messageBroker; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") + protected String messageTopic; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") + protected String minInterval; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") + protected Reference observed; + + @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") + protected StateOfEvent state; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultBasicEventElement() {} + + @Override + public int hashCode() { + return Objects.hash( + this.observed, + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBasicEventElement other = (DefaultBasicEventElement) obj; + return Objects.equals(this.observed, other.observed) + && Objects.equals(this.direction, other.direction) + && Objects.equals(this.state, other.state) + && Objects.equals(this.messageTopic, other.messageTopic) + && Objects.equals(this.messageBroker, other.messageBroker) + && Objects.equals(this.lastUpdate, other.lastUpdate) + && Objects.equals(this.minInterval, other.minInterval) + && Objects.equals(this.maxInterval, other.maxInterval) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getObserved() { + return observed; + } + + @Override + public void setObserved(Reference observed) { + this.observed = observed; + } + + @Override + public Direction getDirection() { + return direction; + } + + @Override + public void setDirection(Direction direction) { + this.direction = direction; + } + + @Override + public StateOfEvent getState() { + return state; + } + + @Override + public void setState(StateOfEvent state) { + this.state = state; + } + + @Override + public String getMessageTopic() { + return messageTopic; + } + + @Override + public void setMessageTopic(String messageTopic) { + this.messageTopic = messageTopic; + } + + @Override + public Reference getMessageBroker() { + return messageBroker; + } + + @Override + public void setMessageBroker(Reference messageBroker) { + this.messageBroker = messageBroker; + } + + @Override + public String getLastUpdate() { + return lastUpdate; + } + + @Override + public void setLastUpdate(String lastUpdate) { + this.lastUpdate = lastUpdate; + } + + @Override + public String getMinInterval() { + return minInterval; + } + + @Override + public void setMinInterval(String minInterval) { + this.minInterval = minInterval; + } + + @Override + public String getMaxInterval() { + return maxInterval; + } + + @Override + public void setMaxInterval(String maxInterval) { + this.maxInterval = maxInterval; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultBasicEventElement (" + + "observed=%s," + + "direction=%s," + + "state=%s," + + "messageTopic=%s," + + "messageBroker=%s," + + "lastUpdate=%s," + + "minInterval=%s," + + "maxInterval=%s," + + ")", + this.observed, + this.direction, + this.state, + this.messageTopic, + this.messageBroker, + this.lastUpdate, + this.minInterval, + this.maxInterval); + } + + /** This builder class can be used to construct a DefaultBasicEventElement bean. */ + public static class Builder extends BasicEventElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBasicEventElement newBuildingInstance() { + return new DefaultBasicEventElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index e67c9911f..92d1765ff 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -15,6 +15,10 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,228 +29,217 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BlobBuilder; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob - *

- * A 'Blob' is a data element that represents a file that is contained with its source code in the - * value attribute. + * + *

A 'Blob' is a data element that represents a file that is contained with its source code in + * the value attribute. */ - @IRI("aas:Blob") public class DefaultBlob implements Blob { - @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/0/Blob/value") - protected byte[] value; - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultBlob() { - } - - @Override - public int hashCode() { - return Objects.hash(Arrays.hashCode(this.value), - this.contentType, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultBlob other = (DefaultBlob) obj; - return Arrays.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public byte[] getValue() { - return value; - } - - @Override - public void setValue(byte[] value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultBlob (" + "value=%s," - + "contentType=%s," - + ")", - this.value, this.contentType); - } - - /** - * This builder class can be used to construct a DefaultBlob bean. - */ - public static class Builder extends BlobBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultBlob newBuildingInstance() { - return new DefaultBlob(); - } - } + @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/0/Blob/value") + protected byte[] value; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultBlob() {} + + @Override + public int hashCode() { + return Objects.hash( + Arrays.hashCode(this.value), + this.contentType, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultBlob other = (DefaultBlob) obj; + return Arrays.equals(this.value, other.value) + && Objects.equals(this.contentType, other.contentType) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public byte[] getValue() { + return value; + } + + @Override + public void setValue(byte[] value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultBlob (" + "value=%s," + "contentType=%s," + ")", this.value, this.contentType); + } + + /** This builder class can be used to construct a DefaultBlob bean. */ + public static class Builder extends BlobBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultBlob newBuildingInstance() { + return new DefaultBlob(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index 17c286379..01f747361 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,197 +28,186 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.CapabilityBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability - *

- * A capability is the implementation-independent description of the potential of an asset to + * + *

A capability is the implementation-independent description of the potential of an asset to * achieve a certain effect in the physical or virtual world. */ - @IRI("aas:Capability") public class DefaultCapability implements Capability { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultCapability() { - } - - @Override - public int hashCode() { - return Objects.hash(this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultCapability other = (DefaultCapability) obj; - return Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultCapability() {} + + @Override + public int hashCode() { + return Objects.hash( + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultCapability other = (DefaultCapability) obj; + return Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format("DefaultCapability (" + ")"); + } + + /** This builder class can be used to construct a DefaultCapability bean. */ + public static class Builder extends CapabilityBuilder { - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultCapability (" - + ")" - - ); - } - - /** - * This builder class can be used to construct a DefaultCapability bean. - */ - public static class Builder extends CapabilityBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultCapability newBuildingInstance() { - return new DefaultCapability(); - } - } + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultCapability newBuildingInstance() { + return new DefaultCapability(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index 46d053103..dc83bcd49 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -25,196 +28,187 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ConceptDescriptionBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription - *

- * The semantics of a property or other elements that may have a semantic description is defined by - * a concept description. + * + *

The semantics of a property or other elements that may have a semantic description is defined + * by a concept description. */ - @IRI("aas:ConceptDescription") public class DefaultConceptDescription implements ConceptDescription { - @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") - protected List isCaseOf = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultConceptDescription() { - } - - @Override - public int hashCode() { - return Objects.hash(this.isCaseOf, - this.embeddedDataSpecifications, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultConceptDescription other = (DefaultConceptDescription) obj; - return Objects.equals(this.isCaseOf, other.isCaseOf) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public List getIsCaseOf() { - return isCaseOf; - } - - @Override - public void setIsCaseOf(List isCaseOfs) { - this.isCaseOf = isCaseOfs; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultConceptDescription (" + "isCaseOf=%s," - + ")", - this.isCaseOf); - } - - /** - * This builder class can be used to construct a DefaultConceptDescription bean. - */ - public static class Builder extends ConceptDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultConceptDescription newBuildingInstance() { - return new DefaultConceptDescription(); - } - } + @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") + protected List isCaseOf = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultConceptDescription() {} + + @Override + public int hashCode() { + return Objects.hash( + this.isCaseOf, + this.embeddedDataSpecifications, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultConceptDescription other = (DefaultConceptDescription) obj; + return Objects.equals(this.isCaseOf, other.isCaseOf) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.administration, other.administration) + && Objects.equals(this.id, other.id) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public List getIsCaseOf() { + return isCaseOf; + } + + @Override + public void setIsCaseOf(List isCaseOfs) { + this.isCaseOf = isCaseOfs; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format("DefaultConceptDescription (" + "isCaseOf=%s," + ")", this.isCaseOf); + } + + /** This builder class can be used to construct a DefaultConceptDescription bean. */ + public static class Builder + extends ConceptDescriptionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultConceptDescription newBuildingInstance() { + return new DefaultConceptDescription(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java index a061fa0be..770a96d80 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.java @@ -15,12 +15,11 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.CustomDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.CustomDataSpecificationBuilder; -import java.util.Objects; - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.CustomDataSpecification * @@ -30,45 +29,42 @@ @IRI("aas:CustomDataSpecification") public class DefaultCustomDataSpecification implements CustomDataSpecification { - public DefaultCustomDataSpecification() { - } + public DefaultCustomDataSpecification() {} - @Override - public String toString() { - return "DefaultCustomDataSpecification{" + "}"; - } + @Override + public String toString() { + return "DefaultCustomDataSpecification{" + "}"; + } - @Override - public int hashCode() { - return Objects.hash(super.hashCode()); - } + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } - return true; + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; } + return true; + } - /** - * This builder class can be used to construct a DefaultCustomDataSpecification bean. - */ - public static class Builder - extends CustomDataSpecificationBuilder { + /** This builder class can be used to construct a DefaultCustomDataSpecification bean. */ + public static class Builder + extends CustomDataSpecificationBuilder { - @Override - protected Builder getSelf() { - return this; - } + @Override + protected Builder getSelf() { + return this; + } - @Override - protected DefaultCustomDataSpecification newBuildingInstance() { - return new DefaultCustomDataSpecification(); - } + @Override + protected DefaultCustomDataSpecification newBuildingInstance() { + return new DefaultCustomDataSpecification(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index 485555d5d..c01f1a7d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -26,254 +29,258 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DataSpecificationIec61360Builder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 - *

- * Content of data specification template for concept descriptions for properties, values and value - * lists conformant to IEC 61360. + * + *

Content of data specification template for concept descriptions for properties, values and + * value lists conformant to IEC 61360. */ - @IRI("aas:DataSpecificationIec61360") public class DefaultDataSpecificationIec61360 implements DataSpecificationIec61360 { - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") - protected DataTypeIec61360 dataType; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") - protected List definition = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") - protected LevelType levelType; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") - protected List preferredName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") - protected List shortName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") - protected String sourceOfDefinition; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") - protected String symbol; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") - protected String unit; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") - protected Reference unitId; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") - protected String valueFormat; - - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") - protected ValueList valueList; - - public DefaultDataSpecificationIec61360() { - } - - @Override - public int hashCode() { - return Objects.hash(this.preferredName, - this.shortName, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definition, - this.valueFormat, - this.valueList, - this.value, - this.levelType); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; - return Objects.equals(this.preferredName, other.preferredName) && - Objects.equals(this.shortName, other.shortName) && - Objects.equals(this.unit, other.unit) && - Objects.equals(this.unitId, other.unitId) && - Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) && - Objects.equals(this.symbol, other.symbol) && - Objects.equals(this.dataType, other.dataType) && - Objects.equals(this.definition, other.definition) && - Objects.equals(this.valueFormat, other.valueFormat) && - Objects.equals(this.valueList, other.valueList) && - Objects.equals(this.value, other.value) && - Objects.equals(this.levelType, other.levelType); - } - } - - @Override - public List getPreferredName() { - return preferredName; - } - - @Override - public void setPreferredName(List preferredNames) { - this.preferredName = preferredNames; - } - - @Override - public List getShortName() { - return shortName; - } - - @Override - public void setShortName(List shortNames) { - this.shortName = shortNames; - } - - @Override - public String getUnit() { - return unit; - } - - @Override - public void setUnit(String unit) { - this.unit = unit; - } - - @Override - public Reference getUnitId() { - return unitId; - } - - @Override - public void setUnitId(Reference unitId) { - this.unitId = unitId; - } - - @Override - public String getSourceOfDefinition() { - return sourceOfDefinition; - } - - @Override - public void setSourceOfDefinition(String sourceOfDefinition) { - this.sourceOfDefinition = sourceOfDefinition; - } - - @Override - public String getSymbol() { - return symbol; - } - - @Override - public void setSymbol(String symbol) { - this.symbol = symbol; - } - - @Override - public DataTypeIec61360 getDataType() { - return dataType; - } - - @Override - public void setDataType(DataTypeIec61360 dataType) { - this.dataType = dataType; - } - - @Override - public List getDefinition() { - return definition; - } - - @Override - public void setDefinition(List definitions) { - this.definition = definitions; - } - - @Override - public String getValueFormat() { - return valueFormat; - } - - @Override - public void setValueFormat(String valueFormat) { - this.valueFormat = valueFormat; - } - - @Override - public ValueList getValueList() { - return valueList; - } - - @Override - public void setValueList(ValueList valueList) { - this.valueList = valueList; + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") + protected DataTypeIec61360 dataType; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") + protected List definition = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") + protected LevelType levelType; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") + protected List preferredName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") + protected List shortName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") + protected String sourceOfDefinition; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") + protected String symbol; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") + protected String unit; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") + protected Reference unitId; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") + protected String valueFormat; + + @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") + protected ValueList valueList; + + public DefaultDataSpecificationIec61360() {} + + @Override + public int hashCode() { + return Objects.hash( + this.preferredName, + this.shortName, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definition, + this.valueFormat, + this.valueList, + this.value, + this.levelType); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDataSpecificationIec61360 other = (DefaultDataSpecificationIec61360) obj; + return Objects.equals(this.preferredName, other.preferredName) + && Objects.equals(this.shortName, other.shortName) + && Objects.equals(this.unit, other.unit) + && Objects.equals(this.unitId, other.unitId) + && Objects.equals(this.sourceOfDefinition, other.sourceOfDefinition) + && Objects.equals(this.symbol, other.symbol) + && Objects.equals(this.dataType, other.dataType) + && Objects.equals(this.definition, other.definition) + && Objects.equals(this.valueFormat, other.valueFormat) + && Objects.equals(this.valueList, other.valueList) + && Objects.equals(this.value, other.value) + && Objects.equals(this.levelType, other.levelType); } + } + + @Override + public List getPreferredName() { + return preferredName; + } + + @Override + public void setPreferredName(List preferredNames) { + this.preferredName = preferredNames; + } + + @Override + public List getShortName() { + return shortName; + } + + @Override + public void setShortName(List shortNames) { + this.shortName = shortNames; + } + + @Override + public String getUnit() { + return unit; + } + + @Override + public void setUnit(String unit) { + this.unit = unit; + } + + @Override + public Reference getUnitId() { + return unitId; + } + + @Override + public void setUnitId(Reference unitId) { + this.unitId = unitId; + } + + @Override + public String getSourceOfDefinition() { + return sourceOfDefinition; + } + + @Override + public void setSourceOfDefinition(String sourceOfDefinition) { + this.sourceOfDefinition = sourceOfDefinition; + } + + @Override + public String getSymbol() { + return symbol; + } + + @Override + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + @Override + public DataTypeIec61360 getDataType() { + return dataType; + } + + @Override + public void setDataType(DataTypeIec61360 dataType) { + this.dataType = dataType; + } + + @Override + public List getDefinition() { + return definition; + } + + @Override + public void setDefinition(List definitions) { + this.definition = definitions; + } + + @Override + public String getValueFormat() { + return valueFormat; + } + + @Override + public void setValueFormat(String valueFormat) { + this.valueFormat = valueFormat; + } + + @Override + public ValueList getValueList() { + return valueList; + } + + @Override + public void setValueList(ValueList valueList) { + this.valueList = valueList; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public LevelType getLevelType() { + return levelType; + } + + @Override + public void setLevelType(LevelType levelType) { + this.levelType = levelType; + } + + public String toString() { + return String.format( + "DefaultDataSpecificationIec61360 (" + + "preferredName=%s," + + "shortName=%s," + + "unit=%s," + + "unitId=%s," + + "sourceOfDefinition=%s," + + "symbol=%s," + + "dataType=%s," + + "definition=%s," + + "valueFormat=%s," + + "valueList=%s," + + "value=%s," + + "levelType=%s," + + ")", + this.preferredName, + this.shortName, + this.unit, + this.unitId, + this.sourceOfDefinition, + this.symbol, + this.dataType, + this.definition, + this.valueFormat, + this.valueList, + this.value, + this.levelType); + } + + /** This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. */ + public static class Builder + extends DataSpecificationIec61360Builder { @Override - public String getValue() { - return value; + protected Builder getSelf() { + return this; } @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public LevelType getLevelType() { - return levelType; - } - - @Override - public void setLevelType(LevelType levelType) { - this.levelType = levelType; - } - - public String toString() { - return String.format( - "DefaultDataSpecificationIec61360 (" + "preferredName=%s," - + "shortName=%s," - + "unit=%s," - + "unitId=%s," - + "sourceOfDefinition=%s," - + "symbol=%s," - + "dataType=%s," - + "definition=%s," - + "valueFormat=%s," - + "valueList=%s," - + "value=%s," - + "levelType=%s," - + ")", - this.preferredName, this.shortName, this.unit, this.unitId, this.sourceOfDefinition, this.symbol, this.dataType, - this.definition, this.valueFormat, this.valueList, this.value, this.levelType); - } - - /** - * This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. - */ - public static class Builder extends DataSpecificationIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultDataSpecificationIec61360 newBuildingInstance() { - return new DefaultDataSpecificationIec61360(); - } + protected DefaultDataSpecificationIec61360 newBuildingInstance() { + return new DefaultDataSpecificationIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java index 6f0a244ad..98b9b9198 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -22,106 +25,89 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor */ @IRI("aas:Descriptor") public class DefaultDescriptor implements Descriptor { - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - protected List extensions = new ArrayList<>(); - - public DefaultDescriptor() { - } - - @Override - public int hashCode() { - return Objects.hash(this.description, - this.displayName, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultDescriptor other = (DefaultDescriptor) obj; - return Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getDisplayName() { - return displayName; + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + protected List extensions = new ArrayList<>(); + + public DefaultDescriptor() {} + + @Override + public int hashCode() { + return Objects.hash(this.description, this.displayName, this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDescriptor other = (DefaultDescriptor) obj; + return Objects.equals(this.description, other.description) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.extensions, other.extensions); } + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultDescriptor (" + "description=%s," + "displayName=%s," + "extensions=%s," + ")", + this.description, this.displayName, this.extensions); + } + + /** This builder class can be used to construct a DefaultDescriptor bean. */ + public static class Builder extends DescriptorBuilder { @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; + protected Builder getSelf() { + return this; } @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultDescriptor (" + "description=%s," - + "displayName=%s," - + "extensions=%s," - + ")", - this.description, this.displayName, this.extensions); - } - - /** - * This builder class can be used to construct a DefaultDescriptor bean. - */ - public static class Builder extends DescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultDescriptor newBuildingInstance() { - return new DefaultDescriptor(); - } + protected DefaultDescriptor newBuildingInstance() { + return new DefaultDescriptor(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index 377bc5baf..985c3a1e7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -15,96 +15,91 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EmbeddedDataSpecificationBuilder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification - *

- * Embed the content of a data specification. + * + *

Embed the content of a data specification. */ - @IRI("aas:EmbeddedDataSpecification") public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecification { - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") - protected Reference dataSpecification; - - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") - protected DataSpecificationContent dataSpecificationContent; - - public DefaultEmbeddedDataSpecification() { - } - - @Override - public int hashCode() { - return Objects.hash(this.dataSpecification, - this.dataSpecificationContent); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; - return Objects.equals(this.dataSpecification, other.dataSpecification) && - Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); - } - } - - @Override - public Reference getDataSpecification() { - return dataSpecification; - } - - @Override - public void setDataSpecification(Reference dataSpecification) { - this.dataSpecification = dataSpecification; + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") + protected Reference dataSpecification; + + @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") + protected DataSpecificationContent dataSpecificationContent; + + public DefaultEmbeddedDataSpecification() {} + + @Override + public int hashCode() { + return Objects.hash(this.dataSpecification, this.dataSpecificationContent); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEmbeddedDataSpecification other = (DefaultEmbeddedDataSpecification) obj; + return Objects.equals(this.dataSpecification, other.dataSpecification) + && Objects.equals(this.dataSpecificationContent, other.dataSpecificationContent); } + } + + @Override + public Reference getDataSpecification() { + return dataSpecification; + } + + @Override + public void setDataSpecification(Reference dataSpecification) { + this.dataSpecification = dataSpecification; + } + + @Override + public DataSpecificationContent getDataSpecificationContent() { + return dataSpecificationContent; + } + + @Override + public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { + this.dataSpecificationContent = dataSpecificationContent; + } + + public String toString() { + return String.format( + "DefaultEmbeddedDataSpecification (" + + "dataSpecification=%s," + + "dataSpecificationContent=%s," + + ")", + this.dataSpecification, this.dataSpecificationContent); + } + + /** This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. */ + public static class Builder + extends EmbeddedDataSpecificationBuilder { @Override - public DataSpecificationContent getDataSpecificationContent() { - return dataSpecificationContent; + protected Builder getSelf() { + return this; } @Override - public void setDataSpecificationContent(DataSpecificationContent dataSpecificationContent) { - this.dataSpecificationContent = dataSpecificationContent; - } - - public String toString() { - return String.format( - "DefaultEmbeddedDataSpecification (" + "dataSpecification=%s," - + "dataSpecificationContent=%s," - + ")", - this.dataSpecification, this.dataSpecificationContent); - } - - /** - * This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. - */ - public static class Builder extends EmbeddedDataSpecificationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEmbeddedDataSpecification newBuildingInstance() { - return new DefaultEmbeddedDataSpecification(); - } + protected DefaultEmbeddedDataSpecification newBuildingInstance() { + return new DefaultEmbeddedDataSpecification(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java index ad02d37e2..58f30f88e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -15,93 +15,81 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EndpointBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint */ @IRI("aas:Endpoint") public class DefaultEndpoint implements Endpoint { - @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") - protected String _interface; + @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") + protected String _interface; + + @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") + protected ProtocolInformation protocolInformation; + + public DefaultEndpoint() {} + + @Override + public int hashCode() { + return Objects.hash(this._interface, this.protocolInformation); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEndpoint other = (DefaultEndpoint) obj; + return Objects.equals(this._interface, other._interface) + && Objects.equals(this.protocolInformation, other.protocolInformation); + } + } - @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") - protected ProtocolInformation protocolInformation; + @Override + public String get_interface() { + return _interface; + } - public DefaultEndpoint() { - } + @Override + public void set_interface(String _interface) { + this._interface = _interface; + } - @Override - public int hashCode() { - return Objects.hash(this._interface, - this.protocolInformation); - } + @Override + public ProtocolInformation getProtocolInformation() { + return protocolInformation; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEndpoint other = (DefaultEndpoint) obj; - return Objects.equals(this._interface, other._interface) && - Objects.equals(this.protocolInformation, other.protocolInformation); - } - } + @Override + public void setProtocolInformation(ProtocolInformation protocolInformation) { + this.protocolInformation = protocolInformation; + } - @Override - public String get_interface() { - return _interface; - } + public String toString() { + return String.format( + "DefaultEndpoint (" + "_interface=%s," + "protocolInformation=%s," + ")", + this._interface, this.protocolInformation); + } - @Override - public void set_interface(String _interface) { - this._interface = _interface; - } + /** This builder class can be used to construct a DefaultEndpoint bean. */ + public static class Builder extends EndpointBuilder { @Override - public ProtocolInformation getProtocolInformation() { - return protocolInformation; + protected Builder getSelf() { + return this; } @Override - public void setProtocolInformation(ProtocolInformation protocolInformation) { - this.protocolInformation = protocolInformation; - } - - public String toString() { - return String.format( - "DefaultEndpoint (" + "_interface=%s," - + "protocolInformation=%s," - + ")", - this._interface, this.protocolInformation); - } - - /** - * This builder class can be used to construct a DefaultEndpoint bean. - */ - public static class Builder extends EndpointBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEndpoint newBuildingInstance() { - return new DefaultEndpoint(); - } + protected DefaultEndpoint newBuildingInstance() { + return new DefaultEndpoint(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index 6d7ae13dd..d2000a980 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -28,258 +31,252 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EntityBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity - *

- * An entity is a submodel element that is used to model entities. + * + *

An entity is a submodel element that is used to model entities. */ - @IRI("aas:Entity") public class DefaultEntity implements Entity { - @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") - protected EntityType entityType; - - @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") - protected String globalAssetId; - - @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Entity/statements") - protected List statements = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultEntity() { - } - - @Override - public int hashCode() { - return Objects.hash(this.statements, - this.entityType, - this.globalAssetId, - this.specificAssetIds, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEntity other = (DefaultEntity) obj; - return Objects.equals(this.statements, other.statements) && - Objects.equals(this.entityType, other.entityType) && - Objects.equals(this.globalAssetId, other.globalAssetId) && - Objects.equals(this.specificAssetIds, other.specificAssetIds) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getStatements() { - return statements; - } - - @Override - public void setStatements(List statements) { - this.statements = statements; - } - - @Override - public EntityType getEntityType() { - return entityType; - } - - @Override - public void setEntityType(EntityType entityType) { - this.entityType = entityType; + @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") + protected EntityType entityType; + + @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") + protected String globalAssetId; + + @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Entity/statements") + protected List statements = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultEntity() {} + + @Override + public int hashCode() { + return Objects.hash( + this.statements, + this.entityType, + this.globalAssetId, + this.specificAssetIds, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEntity other = (DefaultEntity) obj; + return Objects.equals(this.statements, other.statements) + && Objects.equals(this.entityType, other.entityType) + && Objects.equals(this.globalAssetId, other.globalAssetId) + && Objects.equals(this.specificAssetIds, other.specificAssetIds) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getStatements() { + return statements; + } + + @Override + public void setStatements(List statements) { + this.statements = statements; + } + + @Override + public EntityType getEntityType() { + return entityType; + } + + @Override + public void setEntityType(EntityType entityType) { + this.entityType = entityType; + } + + @Override + public String getGlobalAssetId() { + return globalAssetId; + } + + @Override + public void setGlobalAssetId(String globalAssetId) { + this.globalAssetId = globalAssetId; + } + + @Override + public List getSpecificAssetIds() { + return specificAssetIds; + } + + @Override + public void setSpecificAssetIds(List specificAssetIds) { + this.specificAssetIds = specificAssetIds; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultEntity (" + + "statements=%s," + + "entityType=%s," + + "globalAssetId=%s," + + "specificAssetIds=%s," + + ")", + this.statements, this.entityType, this.globalAssetId, this.specificAssetIds); + } + + /** This builder class can be used to construct a DefaultEntity bean. */ + public static class Builder extends EntityBuilder { @Override - public String getGlobalAssetId() { - return globalAssetId; + protected Builder getSelf() { + return this; } @Override - public void setGlobalAssetId(String globalAssetId) { - this.globalAssetId = globalAssetId; - } - - @Override - public List getSpecificAssetIds() { - return specificAssetIds; - } - - @Override - public void setSpecificAssetIds(List specificAssetIds) { - this.specificAssetIds = specificAssetIds; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultEntity (" + "statements=%s," - + "entityType=%s," - + "globalAssetId=%s," - + "specificAssetIds=%s," - + ")", - this.statements, this.entityType, this.globalAssetId, this.specificAssetIds); - } - - /** - * This builder class can be used to construct a DefaultEntity bean. - */ - public static class Builder extends EntityBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEntity newBuildingInstance() { - return new DefaultEntity(); - } + protected DefaultEntity newBuildingInstance() { + return new DefaultEntity(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index 7baa0ebae..0e24ad82d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; @@ -22,107 +25,98 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EnvironmentBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment - *

- * Container for the sets of different identifiables. + * + *

Container for the sets of different identifiables. */ - @IRI("aas:Environment") public class DefaultEnvironment implements Environment { - @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") - protected List assetAdministrationShells = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") - protected List conceptDescriptions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") - protected List submodels = new ArrayList<>(); - - public DefaultEnvironment() { - } - - @Override - public int hashCode() { - return Objects.hash(this.assetAdministrationShells, - this.submodels, - this.conceptDescriptions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEnvironment other = (DefaultEnvironment) obj; - return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) && - Objects.equals(this.submodels, other.submodels) && - Objects.equals(this.conceptDescriptions, other.conceptDescriptions); - } + @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") + protected List assetAdministrationShells = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") + protected List conceptDescriptions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") + protected List submodels = new ArrayList<>(); + + public DefaultEnvironment() {} + + @Override + public int hashCode() { + return Objects.hash(this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEnvironment other = (DefaultEnvironment) obj; + return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) + && Objects.equals(this.submodels, other.submodels) + && Objects.equals(this.conceptDescriptions, other.conceptDescriptions); } + } + + @Override + public List getAssetAdministrationShells() { + return assetAdministrationShells; + } + + @Override + public void setAssetAdministrationShells( + List assetAdministrationShells) { + this.assetAdministrationShells = assetAdministrationShells; + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public List getConceptDescriptions() { + return conceptDescriptions; + } + + @Override + public void setConceptDescriptions(List conceptDescriptions) { + this.conceptDescriptions = conceptDescriptions; + } + + public String toString() { + return String.format( + "DefaultEnvironment (" + + "assetAdministrationShells=%s," + + "submodels=%s," + + "conceptDescriptions=%s," + + ")", + this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + } + + /** This builder class can be used to construct a DefaultEnvironment bean. */ + public static class Builder extends EnvironmentBuilder { @Override - public List getAssetAdministrationShells() { - return assetAdministrationShells; + protected Builder getSelf() { + return this; } @Override - public void setAssetAdministrationShells(List assetAdministrationShells) { - this.assetAdministrationShells = assetAdministrationShells; - } - - @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; - } - - @Override - public List getConceptDescriptions() { - return conceptDescriptions; - } - - @Override - public void setConceptDescriptions(List conceptDescriptions) { - this.conceptDescriptions = conceptDescriptions; - } - - public String toString() { - return String.format( - "DefaultEnvironment (" + "assetAdministrationShells=%s," - + "submodels=%s," - + "conceptDescriptions=%s," - + ")", - this.assetAdministrationShells, this.submodels, this.conceptDescriptions); - } - - /** - * This builder class can be used to construct a DefaultEnvironment bean. - */ - public static class Builder extends EnvironmentBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEnvironment newBuildingInstance() { - return new DefaultEnvironment(); - } + protected DefaultEnvironment newBuildingInstance() { + return new DefaultEnvironment(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index 73210aa7f..847932d22 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -15,192 +15,194 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Arrays; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EventPayloadBuilder; -import java.util.Arrays; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload - *

- * Defines the necessary information of an event instance sent out or received. + * + *

Defines the necessary information of an event instance sent out or received. */ - @IRI("aas:EventPayload") public class DefaultEventPayload implements EventPayload { - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") - protected Reference observableReference; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") - protected Reference observableSemanticId; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") - protected byte[] payload; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") - protected Reference source; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") - protected Reference sourceSemanticId; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") - protected Reference subjectId; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") - protected String timeStamp; - - @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") - protected String topic; - - public DefaultEventPayload() { - } - - @Override - public int hashCode() { - return Objects.hash(this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - Arrays.hashCode(this.payload)); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultEventPayload other = (DefaultEventPayload) obj; - return Objects.equals(this.source, other.source) && - Objects.equals(this.sourceSemanticId, other.sourceSemanticId) && - Objects.equals(this.observableReference, other.observableReference) && - Objects.equals(this.observableSemanticId, other.observableSemanticId) && - Objects.equals(this.topic, other.topic) && - Objects.equals(this.subjectId, other.subjectId) && - Objects.equals(this.timeStamp, other.timeStamp) && - Arrays.equals(this.payload, other.payload); - } - } - - @Override - public Reference getSource() { - return source; - } - - @Override - public void setSource(Reference source) { - this.source = source; - } - - @Override - public Reference getSourceSemanticId() { - return sourceSemanticId; - } - - @Override - public void setSourceSemanticId(Reference sourceSemanticId) { - this.sourceSemanticId = sourceSemanticId; - } - - @Override - public Reference getObservableReference() { - return observableReference; - } - - @Override - public void setObservableReference(Reference observableReference) { - this.observableReference = observableReference; - } - - @Override - public Reference getObservableSemanticId() { - return observableSemanticId; - } - - @Override - public void setObservableSemanticId(Reference observableSemanticId) { - this.observableSemanticId = observableSemanticId; - } - - @Override - public String getTopic() { - return topic; - } - - @Override - public void setTopic(String topic) { - this.topic = topic; - } - - @Override - public Reference getSubjectId() { - return subjectId; - } - - @Override - public void setSubjectId(Reference subjectId) { - this.subjectId = subjectId; - } - - @Override - public String getTimeStamp() { - return timeStamp; - } - - @Override - public void setTimeStamp(String timeStamp) { - this.timeStamp = timeStamp; - } - - @Override - public byte[] getPayload() { - return payload; - } - - @Override - public void setPayload(byte[] payload) { - this.payload = payload; - } - - public String toString() { - return String.format( - "DefaultEventPayload (" + "source=%s," - + "sourceSemanticId=%s," - + "observableReference=%s," - + "observableSemanticId=%s," - + "topic=%s," - + "subjectId=%s," - + "timeStamp=%s," - + "payload=%s," - + ")", - this.source, this.sourceSemanticId, this.observableReference, this.observableSemanticId, this.topic, this.subjectId, - this.timeStamp, this.payload); - } - - /** - * This builder class can be used to construct a DefaultEventPayload bean. - */ - public static class Builder extends EventPayloadBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultEventPayload newBuildingInstance() { - return new DefaultEventPayload(); - } - } + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") + protected Reference observableReference; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") + protected Reference observableSemanticId; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") + protected byte[] payload; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") + protected Reference source; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") + protected Reference sourceSemanticId; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") + protected Reference subjectId; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") + protected String timeStamp; + + @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") + protected String topic; + + public DefaultEventPayload() {} + + @Override + public int hashCode() { + return Objects.hash( + this.source, + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + Arrays.hashCode(this.payload)); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultEventPayload other = (DefaultEventPayload) obj; + return Objects.equals(this.source, other.source) + && Objects.equals(this.sourceSemanticId, other.sourceSemanticId) + && Objects.equals(this.observableReference, other.observableReference) + && Objects.equals(this.observableSemanticId, other.observableSemanticId) + && Objects.equals(this.topic, other.topic) + && Objects.equals(this.subjectId, other.subjectId) + && Objects.equals(this.timeStamp, other.timeStamp) + && Arrays.equals(this.payload, other.payload); + } + } + + @Override + public Reference getSource() { + return source; + } + + @Override + public void setSource(Reference source) { + this.source = source; + } + + @Override + public Reference getSourceSemanticId() { + return sourceSemanticId; + } + + @Override + public void setSourceSemanticId(Reference sourceSemanticId) { + this.sourceSemanticId = sourceSemanticId; + } + + @Override + public Reference getObservableReference() { + return observableReference; + } + + @Override + public void setObservableReference(Reference observableReference) { + this.observableReference = observableReference; + } + + @Override + public Reference getObservableSemanticId() { + return observableSemanticId; + } + + @Override + public void setObservableSemanticId(Reference observableSemanticId) { + this.observableSemanticId = observableSemanticId; + } + + @Override + public String getTopic() { + return topic; + } + + @Override + public void setTopic(String topic) { + this.topic = topic; + } + + @Override + public Reference getSubjectId() { + return subjectId; + } + + @Override + public void setSubjectId(Reference subjectId) { + this.subjectId = subjectId; + } + + @Override + public String getTimeStamp() { + return timeStamp; + } + + @Override + public void setTimeStamp(String timeStamp) { + this.timeStamp = timeStamp; + } + + @Override + public byte[] getPayload() { + return payload; + } + + @Override + public void setPayload(byte[] payload) { + this.payload = payload; + } + + public String toString() { + return String.format( + "DefaultEventPayload (" + + "source=%s," + + "sourceSemanticId=%s," + + "observableReference=%s," + + "observableSemanticId=%s," + + "topic=%s," + + "subjectId=%s," + + "timeStamp=%s," + + "payload=%s," + + ")", + this.source, + this.sourceSemanticId, + this.observableReference, + this.observableSemanticId, + this.topic, + this.subjectId, + this.timeStamp, + this.payload); + } + + /** This builder class can be used to construct a DefaultEventPayload bean. */ + public static class Builder extends EventPayloadBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultEventPayload newBuildingInstance() { + return new DefaultEventPayload(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index 109d754bb..d1a827c2d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -15,159 +15,150 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ExtensionBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension - *

- * Single extension of an element. + * + *

Single extension of an element. */ - @IRI("aas:Extension") public class DefaultExtension implements Extension { - @IRI("https://admin-shell.io/aas/3/0/Extension/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") - protected List refersTo = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Extension/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - public DefaultExtension() { - } - - @Override - public int hashCode() { - return Objects.hash(this.name, - this.valueType, - this.value, - this.refersTo, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultExtension other = (DefaultExtension) obj; - return Objects.equals(this.name, other.name) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.refersTo, other.refersTo) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } + @IRI("https://admin-shell.io/aas/3/0/Extension/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") + protected List refersTo = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Extension/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + public DefaultExtension() {} + + @Override + public int hashCode() { + return Objects.hash( + this.name, + this.valueType, + this.value, + this.refersTo, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultExtension other = (DefaultExtension) obj; + return Objects.equals(this.name, other.name) + && Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.value, other.value) + && Objects.equals(this.refersTo, other.refersTo) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public List getRefersTo() { + return refersTo; + } + + @Override + public void setRefersTo(List refersTos) { + this.refersTo = refersTos; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + public String toString() { + return String.format( + "DefaultExtension (" + "name=%s," + "valueType=%s," + "value=%s," + "refersTo=%s," + ")", + this.name, this.valueType, this.value, this.refersTo); + } + + /** This builder class can be used to construct a DefaultExtension bean. */ + public static class Builder extends ExtensionBuilder { @Override - public String getName() { - return name; + protected Builder getSelf() { + return this; } @Override - public void setName(String name) { - this.name = name; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public List getRefersTo() { - return refersTo; - } - - @Override - public void setRefersTo(List refersTos) { - this.refersTo = refersTos; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - public String toString() { - return String.format( - "DefaultExtension (" + "name=%s," - + "valueType=%s," - + "value=%s," - + "refersTo=%s," - + ")", - this.name, this.valueType, this.value, this.refersTo); - } - - /** - * This builder class can be used to construct a DefaultExtension bean. - */ - public static class Builder extends ExtensionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultExtension newBuildingInstance() { - return new DefaultExtension(); - } + protected DefaultExtension newBuildingInstance() { + return new DefaultExtension(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index 95cb3f67b..2e2ba7317 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -25,226 +28,216 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.FileBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File - *

- * A File is a data element that represents an address to a file (a locator). + * + *

A File is a data element that represents an address to a file (a locator). */ - @IRI("aas:File") public class DefaultFile implements File { - @IRI("https://admin-shell.io/aas/3/0/File/contentType") - protected String contentType; - - @IRI("https://admin-shell.io/aas/3/0/File/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultFile() { - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.contentType, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultFile other = (DefaultFile) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.contentType, other.contentType) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public String getContentType() { - return contentType; - } - - @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultFile (" + "value=%s," - + "contentType=%s," - + ")", - this.value, this.contentType); - } - - /** - * This builder class can be used to construct a DefaultFile bean. - */ - public static class Builder extends FileBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultFile newBuildingInstance() { - return new DefaultFile(); - } - } + @IRI("https://admin-shell.io/aas/3/0/File/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/0/File/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultFile() {} + + @Override + public int hashCode() { + return Objects.hash( + this.value, + this.contentType, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultFile other = (DefaultFile) obj; + return Objects.equals(this.value, other.value) + && Objects.equals(this.contentType, other.contentType) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public String getContentType() { + return contentType; + } + + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultFile (" + "value=%s," + "contentType=%s," + ")", this.value, this.contentType); + } + + /** This builder class can be used to construct a DefaultFile bean. */ + public static class Builder extends FileBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultFile newBuildingInstance() { + return new DefaultFile(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index 0bc731f27..c404360df 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -15,94 +15,82 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.KeyBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key - *

- * A key is a reference to an element by its ID. + * + *

A key is a reference to an element by its ID. */ - @IRI("aas:Key") public class DefaultKey implements Key { - @IRI("https://admin-shell.io/aas/3/0/Key/type") - protected KeyTypes type; + @IRI("https://admin-shell.io/aas/3/0/Key/type") + protected KeyTypes type; + + @IRI("https://admin-shell.io/aas/3/0/Key/value") + protected String value; + + public DefaultKey() {} + + @Override + public int hashCode() { + return Objects.hash(this.type, this.value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultKey other = (DefaultKey) obj; + return Objects.equals(this.type, other.type) && Objects.equals(this.value, other.value); + } + } - @IRI("https://admin-shell.io/aas/3/0/Key/value") - protected String value; + @Override + public KeyTypes getType() { + return type; + } - public DefaultKey() { - } + @Override + public void setType(KeyTypes type) { + this.type = type; + } - @Override - public int hashCode() { - return Objects.hash(this.type, - this.value); - } + @Override + public String getValue() { + return value; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultKey other = (DefaultKey) obj; - return Objects.equals(this.type, other.type) && - Objects.equals(this.value, other.value); - } - } + @Override + public void setValue(String value) { + this.value = value; + } - @Override - public KeyTypes getType() { - return type; - } + public String toString() { + return String.format("DefaultKey (" + "type=%s," + "value=%s," + ")", this.type, this.value); + } - @Override - public void setType(KeyTypes type) { - this.type = type; - } + /** This builder class can be used to construct a DefaultKey bean. */ + public static class Builder extends KeyBuilder { @Override - public String getValue() { - return value; + protected Builder getSelf() { + return this; } @Override - public void setValue(String value) { - this.value = value; - } - - public String toString() { - return String.format( - "DefaultKey (" + "type=%s," - + "value=%s," - + ")", - this.type, this.value); - } - - /** - * This builder class can be used to construct a DefaultKey bean. - */ - public static class Builder extends KeyBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultKey newBuildingInstance() { - return new DefaultKey(); - } + protected DefaultKey newBuildingInstance() { + return new DefaultKey(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index b1960a205..6db852014 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -15,94 +15,84 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringDefinitionTypeIec61360Builder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 - *

- * String with length 1023 maximum and minimum 1 characters and with language tags + * + *

String with length 1023 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringDefinitionTypeIec61360") public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefinitionTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") - protected String language; + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; + + public DefaultLangStringDefinitionTypeIec61360() {} + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + } + } - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") - protected String text; + @Override + public String getLanguage() { + return language; + } - public DefaultLangStringDefinitionTypeIec61360() { - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public String getText() { + return text; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringDefinitionTypeIec61360 other = (DefaultLangStringDefinitionTypeIec61360) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public String getLanguage() { - return language; - } + public String toString() { + return String.format("DefaultLangStringDefinitionTypeIec61360 (" + ")"); + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. */ + public static class Builder + extends LangStringDefinitionTypeIec61360Builder< + DefaultLangStringDefinitionTypeIec61360, Builder> { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - public String toString() { - return String.format( - "DefaultLangStringDefinitionTypeIec61360 (" - + ")" - - ); - } - - /** - * This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. - */ - public static class Builder extends LangStringDefinitionTypeIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { - return new DefaultLangStringDefinitionTypeIec61360(); - } + protected DefaultLangStringDefinitionTypeIec61360 newBuildingInstance() { + return new DefaultLangStringDefinitionTypeIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index 52aedfe0b..047bff345 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -15,93 +15,82 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringNameTypeBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType - *

- * String with length 128 maximum and minimum 1 characters and with language tags + * + *

String with length 128 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringNameType") public class DefaultLangStringNameType implements LangStringNameType { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") - protected String language; + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; + + public DefaultLangStringNameType() {} + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringNameType other = (DefaultLangStringNameType) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + } + } - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") - protected String text; + @Override + public String getLanguage() { + return language; + } - public DefaultLangStringNameType() { - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public String getText() { + return text; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringNameType other = (DefaultLangStringNameType) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public String getLanguage() { - return language; - } + public String toString() { + return String.format("DefaultLangStringNameType (" + ")"); + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringNameType bean. */ + public static class Builder + extends LangStringNameTypeBuilder { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - public String toString() { - return String.format( - "DefaultLangStringNameType (" - + ")" - - ); - } - - /** - * This builder class can be used to construct a DefaultLangStringNameType bean. - */ - public static class Builder extends LangStringNameTypeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringNameType newBuildingInstance() { - return new DefaultLangStringNameType(); - } + protected DefaultLangStringNameType newBuildingInstance() { + return new DefaultLangStringNameType(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index da037e463..cf7b9d7ba 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -15,94 +15,88 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringPreferredNameTypeIec61360Builder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 - *

- * String with length 255 maximum and minimum 1 characters and with language tags + * + *

String with length 255 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringPreferredNameTypeIec61360") -public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPreferredNameTypeIec61360 { - - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") - protected String language; - - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") - protected String text; - - public DefaultLangStringPreferredNameTypeIec61360() { - } - - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringPreferredNameTypeIec61360 other = (DefaultLangStringPreferredNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } - - @Override - public String getLanguage() { - return language; - } - - @Override - public void setLanguage(String language) { - this.language = language; +public class DefaultLangStringPreferredNameTypeIec61360 + implements LangStringPreferredNameTypeIec61360 { + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; + + public DefaultLangStringPreferredNameTypeIec61360() {} + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringPreferredNameTypeIec61360 other = + (DefaultLangStringPreferredNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); } + } + + @Override + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + public String toString() { + return String.format("DefaultLangStringPreferredNameTypeIec61360 (" + ")"); + } + + /** + * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. + */ + public static class Builder + extends LangStringPreferredNameTypeIec61360Builder< + DefaultLangStringPreferredNameTypeIec61360, Builder> { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - public String toString() { - return String.format( - "DefaultLangStringPreferredNameTypeIec61360 (" - + ")" - - ); - } - - /** - * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. - */ - public static class Builder extends LangStringPreferredNameTypeIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringPreferredNameTypeIec61360(); - } + protected DefaultLangStringPreferredNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringPreferredNameTypeIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index 0e4794aa6..cb25aa7c9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -15,94 +15,84 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringShortNameTypeIec61360Builder; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 - *

- * String with length 18 maximum and minimum 1 characters and with language tags + * + *

String with length 18 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringShortNameTypeIec61360") public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNameTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") - protected String language; + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; + + public DefaultLangStringShortNameTypeIec61360() {} + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + } + } - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") - protected String text; + @Override + public String getLanguage() { + return language; + } - public DefaultLangStringShortNameTypeIec61360() { - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public String getText() { + return text; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringShortNameTypeIec61360 other = (DefaultLangStringShortNameTypeIec61360) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public String getLanguage() { - return language; - } + public String toString() { + return String.format("DefaultLangStringShortNameTypeIec61360 (" + ")"); + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. */ + public static class Builder + extends LangStringShortNameTypeIec61360Builder< + DefaultLangStringShortNameTypeIec61360, Builder> { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - public String toString() { - return String.format( - "DefaultLangStringShortNameTypeIec61360 (" - + ")" - - ); - } - - /** - * This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. - */ - public static class Builder extends LangStringShortNameTypeIec61360Builder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { - return new DefaultLangStringShortNameTypeIec61360(); - } + protected DefaultLangStringShortNameTypeIec61360 newBuildingInstance() { + return new DefaultLangStringShortNameTypeIec61360(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index cc11b059e..30b925d80 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -15,93 +15,82 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringTextTypeBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType - *

- * String with length 1023 maximum and minimum 1 characters and with language tags + * + *

String with length 1023 maximum and minimum 1 characters and with language tags */ - @IRI("aas:LangStringTextType") public class DefaultLangStringTextType implements LangStringTextType { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") - protected String language; + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + protected String text; + + public DefaultLangStringTextType() {} + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringTextType other = (DefaultLangStringTextType) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + } + } - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") - protected String text; + @Override + public String getLanguage() { + return language; + } - public DefaultLangStringTextType() { - } + @Override + public void setLanguage(String language) { + this.language = language; + } - @Override - public int hashCode() { - return Objects.hash(this.language, - this.text); - } + @Override + public String getText() { + return text; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLangStringTextType other = (DefaultLangStringTextType) obj; - return Objects.equals(this.language, other.language) && - Objects.equals(this.text, other.text); - } - } + @Override + public void setText(String text) { + this.text = text; + } - @Override - public String getLanguage() { - return language; - } + public String toString() { + return String.format("DefaultLangStringTextType (" + ")"); + } - @Override - public void setLanguage(String language) { - this.language = language; - } + /** This builder class can be used to construct a DefaultLangStringTextType bean. */ + public static class Builder + extends LangStringTextTypeBuilder { @Override - public String getText() { - return text; + protected Builder getSelf() { + return this; } @Override - public void setText(String text) { - this.text = text; - } - - public String toString() { - return String.format( - "DefaultLangStringTextType (" - + ")" - - ); - } - - /** - * This builder class can be used to construct a DefaultLangStringTextType bean. - */ - public static class Builder extends LangStringTextTypeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLangStringTextType newBuildingInstance() { - return new DefaultLangStringTextType(); - } + protected DefaultLangStringTextType newBuildingInstance() { + return new DefaultLangStringTextType(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index 207a037f8..1ebbce64a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -15,126 +15,113 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LevelTypeBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType - *

- * Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP and - * MAX. True means that the value is available, false means the value is not available. + * + *

Value represented by up to four variants of a numeric value in a specific role: MIN, NOM, TYP + * and MAX. True means that the value is available, false means the value is not available. */ - @IRI("aas:LevelType") public class DefaultLevelType implements LevelType { - @IRI("https://admin-shell.io/aas/3/0/LevelType/max") - protected boolean max; - - @IRI("https://admin-shell.io/aas/3/0/LevelType/min") - protected boolean min; - - @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") - protected boolean nom; - - @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") - protected boolean typ; - - public DefaultLevelType() { - } - - @Override - public int hashCode() { - return Objects.hash(this.min, - this.nom, - this.typ, - this.max); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultLevelType other = (DefaultLevelType) obj; - return Objects.equals(this.min, other.min) && - Objects.equals(this.nom, other.nom) && - Objects.equals(this.typ, other.typ) && - Objects.equals(this.max, other.max); - } - } - - @Override - public boolean getMin() { - return min; - } - - @Override - public void setMin(boolean min) { - this.min = min; - } - - @Override - public boolean getNom() { - return nom; - } - - @Override - public void setNom(boolean nom) { - this.nom = nom; - } - - @Override - public boolean getTyp() { - return typ; + @IRI("https://admin-shell.io/aas/3/0/LevelType/max") + protected boolean max; + + @IRI("https://admin-shell.io/aas/3/0/LevelType/min") + protected boolean min; + + @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") + protected boolean nom; + + @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") + protected boolean typ; + + public DefaultLevelType() {} + + @Override + public int hashCode() { + return Objects.hash(this.min, this.nom, this.typ, this.max); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLevelType other = (DefaultLevelType) obj; + return Objects.equals(this.min, other.min) + && Objects.equals(this.nom, other.nom) + && Objects.equals(this.typ, other.typ) + && Objects.equals(this.max, other.max); } + } + + @Override + public boolean getMin() { + return min; + } + + @Override + public void setMin(boolean min) { + this.min = min; + } + + @Override + public boolean getNom() { + return nom; + } + + @Override + public void setNom(boolean nom) { + this.nom = nom; + } + + @Override + public boolean getTyp() { + return typ; + } + + @Override + public void setTyp(boolean typ) { + this.typ = typ; + } + + @Override + public boolean getMax() { + return max; + } + + @Override + public void setMax(boolean max) { + this.max = max; + } + + public String toString() { + return String.format( + "DefaultLevelType (" + "min=%s," + "nom=%s," + "typ=%s," + "max=%s," + ")", + this.min, this.nom, this.typ, this.max); + } + + /** This builder class can be used to construct a DefaultLevelType bean. */ + public static class Builder extends LevelTypeBuilder { @Override - public void setTyp(boolean typ) { - this.typ = typ; + protected Builder getSelf() { + return this; } @Override - public boolean getMax() { - return max; - } - - @Override - public void setMax(boolean max) { - this.max = max; - } - - public String toString() { - return String.format( - "DefaultLevelType (" + "min=%s," - + "nom=%s," - + "typ=%s," - + "max=%s," - + ")", - this.min, this.nom, this.typ, this.max); - } - - /** - * This builder class can be used to construct a DefaultLevelType bean. - */ - public static class Builder extends LevelTypeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultLevelType newBuildingInstance() { - return new DefaultLevelType(); - } + protected DefaultLevelType newBuildingInstance() { + return new DefaultLevelType(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java index 696b14814..5ac62624b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -15,141 +15,129 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.MessageTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message */ @IRI("aas:Message") public class DefaultMessage implements Message { - @IRI("https://admin-shell.io/aas/3/0/Message/code") - protected String code; - - @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") - protected String correlationId; - - @IRI("https://admin-shell.io/aas/3/0/Message/messageType") - protected MessageTypeEnum messageType; - - @IRI("https://admin-shell.io/aas/3/0/Message/text") - protected String text; - - @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") - protected String timestamp; - - public DefaultMessage() { - } - - @Override - public int hashCode() { - return Objects.hash(this.code, - this.correlationId, - this.messageType, - this.text, - this.timestamp); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMessage other = (DefaultMessage) obj; - return Objects.equals(this.code, other.code) && - Objects.equals(this.correlationId, other.correlationId) && - Objects.equals(this.messageType, other.messageType) && - Objects.equals(this.text, other.text) && - Objects.equals(this.timestamp, other.timestamp); - } - } - - @Override - public String getCode() { - return code; - } - - @Override - public void setCode(String code) { - this.code = code; - } - - @Override - public String getCorrelationId() { - return correlationId; - } - - @Override - public void setCorrelationId(String correlationId) { - this.correlationId = correlationId; - } - - @Override - public MessageTypeEnum getMessageType() { - return messageType; - } - - @Override - public void setMessageType(MessageTypeEnum messageType) { - this.messageType = messageType; - } - - @Override - public String getText() { - return text; - } - - @Override - public void setText(String text) { - this.text = text; + @IRI("https://admin-shell.io/aas/3/0/Message/code") + protected String code; + + @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") + protected String correlationId; + + @IRI("https://admin-shell.io/aas/3/0/Message/messageType") + protected MessageTypeEnum messageType; + + @IRI("https://admin-shell.io/aas/3/0/Message/text") + protected String text; + + @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") + protected String timestamp; + + public DefaultMessage() {} + + @Override + public int hashCode() { + return Objects.hash(this.code, this.correlationId, this.messageType, this.text, this.timestamp); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMessage other = (DefaultMessage) obj; + return Objects.equals(this.code, other.code) + && Objects.equals(this.correlationId, other.correlationId) + && Objects.equals(this.messageType, other.messageType) + && Objects.equals(this.text, other.text) + && Objects.equals(this.timestamp, other.timestamp); } + } + + @Override + public String getCode() { + return code; + } + + @Override + public void setCode(String code) { + this.code = code; + } + + @Override + public String getCorrelationId() { + return correlationId; + } + + @Override + public void setCorrelationId(String correlationId) { + this.correlationId = correlationId; + } + + @Override + public MessageTypeEnum getMessageType() { + return messageType; + } + + @Override + public void setMessageType(MessageTypeEnum messageType) { + this.messageType = messageType; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + @Override + public String getTimestamp() { + return timestamp; + } + + @Override + public void setTimestamp(String timestamp) { + this.timestamp = timestamp; + } + + public String toString() { + return String.format( + "DefaultMessage (" + + "code=%s," + + "correlationId=%s," + + "messageType=%s," + + "text=%s," + + "timestamp=%s," + + ")", + this.code, this.correlationId, this.messageType, this.text, this.timestamp); + } + + /** This builder class can be used to construct a DefaultMessage bean. */ + public static class Builder extends MessageBuilder { @Override - public String getTimestamp() { - return timestamp; + protected Builder getSelf() { + return this; } @Override - public void setTimestamp(String timestamp) { - this.timestamp = timestamp; - } - - public String toString() { - return String.format( - "DefaultMessage (" + "code=%s," - + "correlationId=%s," - + "messageType=%s," - + "text=%s," - + "timestamp=%s," - + ")", - this.code, this.correlationId, this.messageType, this.text, this.timestamp); - } - - /** - * This builder class can be used to construct a DefaultMessage bean. - */ - public static class Builder extends MessageBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultMessage newBuildingInstance() { - return new DefaultMessage(); - } + protected DefaultMessage newBuildingInstance() { + return new DefaultMessage(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 77c76e1e8..0f9c68908 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,226 +28,218 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MultiLanguagePropertyBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty - *

- * A property is a data element that has a multi-language value. + * + *

A property is a data element that has a multi-language value. */ - @IRI("aas:MultiLanguageProperty") public class DefaultMultiLanguageProperty implements MultiLanguageProperty { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") - protected List value = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultMultiLanguageProperty() { - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.valueId, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getValue() { - return value; - } - - @Override - public void setValue(List values) { - this.value = values; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultMultiLanguageProperty (" + "value=%s," - + "valueId=%s," - + ")", - this.value, this.valueId); - } - - /** - * This builder class can be used to construct a DefaultMultiLanguageProperty bean. - */ - public static class Builder extends MultiLanguagePropertyBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultMultiLanguageProperty newBuildingInstance() { - return new DefaultMultiLanguageProperty(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") + protected List value = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultMultiLanguageProperty() {} + + @Override + public int hashCode() { + return Objects.hash( + this.value, + this.valueId, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultMultiLanguageProperty other = (DefaultMultiLanguageProperty) obj; + return Objects.equals(this.value, other.value) + && Objects.equals(this.valueId, other.valueId) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getValue() { + return value; + } + + @Override + public void setValue(List values) { + this.value = values; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultMultiLanguageProperty (" + "value=%s," + "valueId=%s," + ")", + this.value, this.valueId); + } + + /** This builder class can be used to construct a DefaultMultiLanguageProperty bean. */ + public static class Builder + extends MultiLanguagePropertyBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultMultiLanguageProperty newBuildingInstance() { + return new DefaultMultiLanguageProperty(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index b3516587a..52fde4877 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -26,242 +29,236 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation - *

- * An operation is a submodel element with input and output variables. + * + *

An operation is a submodel element with input and output variables. */ - @IRI("aas:Operation") public class DefaultOperation implements Operation { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") - protected List inoutputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") - protected List inputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") - protected List outputVariables = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultOperation() { - } - - @Override - public int hashCode() { - return Objects.hash(this.inputVariables, - this.outputVariables, - this.inoutputVariables, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperation other = (DefaultOperation) obj; - return Objects.equals(this.inputVariables, other.inputVariables) && - Objects.equals(this.outputVariables, other.outputVariables) && - Objects.equals(this.inoutputVariables, other.inoutputVariables) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getInputVariables() { - return inputVariables; - } - - @Override - public void setInputVariables(List inputVariables) { - this.inputVariables = inputVariables; - } - - @Override - public List getOutputVariables() { - return outputVariables; - } - - @Override - public void setOutputVariables(List outputVariables) { - this.outputVariables = outputVariables; - } - - @Override - public List getInoutputVariables() { - return inoutputVariables; - } - - @Override - public void setInoutputVariables(List inoutputVariables) { - this.inoutputVariables = inoutputVariables; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") + protected List inoutputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") + protected List inputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") + protected List outputVariables = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultOperation() {} + + @Override + public int hashCode() { + return Objects.hash( + this.inputVariables, + this.outputVariables, + this.inoutputVariables, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperation other = (DefaultOperation) obj; + return Objects.equals(this.inputVariables, other.inputVariables) + && Objects.equals(this.outputVariables, other.outputVariables) + && Objects.equals(this.inoutputVariables, other.inoutputVariables) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public List getInputVariables() { + return inputVariables; + } + + @Override + public void setInputVariables(List inputVariables) { + this.inputVariables = inputVariables; + } + + @Override + public List getOutputVariables() { + return outputVariables; + } + + @Override + public void setOutputVariables(List outputVariables) { + this.outputVariables = outputVariables; + } + + @Override + public List getInoutputVariables() { + return inoutputVariables; + } + + @Override + public void setInoutputVariables(List inoutputVariables) { + this.inoutputVariables = inoutputVariables; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultOperation (" + + "inputVariables=%s," + + "outputVariables=%s," + + "inoutputVariables=%s," + + ")", + this.inputVariables, this.outputVariables, this.inoutputVariables); + } + + /** This builder class can be used to construct a DefaultOperation bean. */ + public static class Builder extends OperationBuilder { @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + protected Builder getSelf() { + return this; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultOperation (" + "inputVariables=%s," - + "outputVariables=%s," - + "inoutputVariables=%s," - + ")", - this.inputVariables, this.outputVariables, this.inoutputVariables); - } - - /** - * This builder class can be used to construct a DefaultOperation bean. - */ - public static class Builder extends OperationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperation newBuildingInstance() { - return new DefaultOperation(); - } + protected DefaultOperation newBuildingInstance() { + return new DefaultOperation(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java index 828bda3d7..52a649261 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -15,76 +15,64 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationHandleBuilder; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle */ @IRI("aas:OperationHandle") public class DefaultOperationHandle implements OperationHandle { - @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") - protected String handleId; - - public DefaultOperationHandle() { + @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") + protected String handleId; + + public DefaultOperationHandle() {} + + @Override + public int hashCode() { + return Objects.hash(this.handleId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationHandle other = (DefaultOperationHandle) obj; + return Objects.equals(this.handleId, other.handleId); } + } - @Override - public int hashCode() { - return Objects.hash(this.handleId); - } + @Override + public String getHandleId() { + return handleId; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationHandle other = (DefaultOperationHandle) obj; - return Objects.equals(this.handleId, other.handleId); - } - } + @Override + public void setHandleId(String handleId) { + this.handleId = handleId; + } - @Override - public String getHandleId() { - return handleId; - } + public String toString() { + return String.format("DefaultOperationHandle (" + "handleId=%s," + ")", this.handleId); + } - @Override - public void setHandleId(String handleId) { - this.handleId = handleId; - } + /** This builder class can be used to construct a DefaultOperationHandle bean. */ + public static class Builder extends OperationHandleBuilder { - public String toString() { - return String.format( - "DefaultOperationHandle (" + "handleId=%s," - + ")", - this.handleId); + @Override + protected Builder getSelf() { + return this; } - /** - * This builder class can be used to construct a DefaultOperationHandle bean. - */ - public static class Builder extends OperationHandleBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationHandle newBuildingInstance() { - return new DefaultOperationHandle(); - } + @Override + protected DefaultOperationHandle newBuildingInstance() { + return new DefaultOperationHandle(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java index 4df02bd92..03ef1a152 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -15,111 +15,101 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest */ @IRI("aas:OperationRequest") public class DefaultOperationRequest implements OperationRequest { - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") - protected String clientTimeoutDuration; - - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") - protected List inputArguments = new ArrayList<>(); - - public DefaultOperationRequest() { - } - - @Override - public int hashCode() { - return Objects.hash(this.inoutputArguments, - this.inputArguments, - this.clientTimeoutDuration); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationRequest other = (DefaultOperationRequest) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) && - Objects.equals(this.inputArguments, other.inputArguments) && - Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); - } - } - - @Override - public List getInoutputArguments() { - return inoutputArguments; - } - - @Override - public void setInoutputArguments(List inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } - - @Override - public List getInputArguments() { - return inputArguments; + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") + protected String clientTimeoutDuration; + + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") + protected List inoutputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") + protected List inputArguments = new ArrayList<>(); + + public DefaultOperationRequest() {} + + @Override + public int hashCode() { + return Objects.hash(this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationRequest other = (DefaultOperationRequest) obj; + return Objects.equals(this.inoutputArguments, other.inoutputArguments) + && Objects.equals(this.inputArguments, other.inputArguments) + && Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); } + } + + @Override + public List getInoutputArguments() { + return inoutputArguments; + } + + @Override + public void setInoutputArguments(List inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } + + @Override + public List getInputArguments() { + return inputArguments; + } + + @Override + public void setInputArguments(List inputArguments) { + this.inputArguments = inputArguments; + } + + @Override + public String getClientTimeoutDuration() { + return clientTimeoutDuration; + } + + @Override + public void setClientTimeoutDuration(String clientTimeoutDuration) { + this.clientTimeoutDuration = clientTimeoutDuration; + } + + public String toString() { + return String.format( + "DefaultOperationRequest (" + + "inoutputArguments=%s," + + "inputArguments=%s," + + "clientTimeoutDuration=%s," + + ")", + this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); + } + + /** This builder class can be used to construct a DefaultOperationRequest bean. */ + public static class Builder extends OperationRequestBuilder { @Override - public void setInputArguments(List inputArguments) { - this.inputArguments = inputArguments; + protected Builder getSelf() { + return this; } @Override - public String getClientTimeoutDuration() { - return clientTimeoutDuration; - } - - @Override - public void setClientTimeoutDuration(String clientTimeoutDuration) { - this.clientTimeoutDuration = clientTimeoutDuration; - } - - public String toString() { - return String.format( - "DefaultOperationRequest (" + "inoutputArguments=%s," - + "inputArguments=%s," - + "clientTimeoutDuration=%s," - + ")", - this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); - } - - /** - * This builder class can be used to construct a DefaultOperationRequest bean. - */ - public static class Builder extends OperationRequestBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationRequest newBuildingInstance() { - return new DefaultOperationRequest(); - } + protected DefaultOperationRequest newBuildingInstance() { + return new DefaultOperationRequest(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java index 83d8da8d1..4871fb39f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -15,95 +15,83 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult */ @IRI("aas:OperationResult") public class DefaultOperationResult implements OperationResult { - @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") + protected List inoutputArguments = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") + protected List outputArguments = new ArrayList<>(); + + public DefaultOperationResult() {} + + @Override + public int hashCode() { + return Objects.hash(this.inoutputArguments, this.outputArguments); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationResult other = (DefaultOperationResult) obj; + return Objects.equals(this.inoutputArguments, other.inoutputArguments) + && Objects.equals(this.outputArguments, other.outputArguments); + } + } - @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") - protected List outputArguments = new ArrayList<>(); + @Override + public List getInoutputArguments() { + return inoutputArguments; + } - public DefaultOperationResult() { - } + @Override + public void setInoutputArguments(List inoutputArguments) { + this.inoutputArguments = inoutputArguments; + } - @Override - public int hashCode() { - return Objects.hash(this.inoutputArguments, - this.outputArguments); - } + @Override + public List getOutputArguments() { + return outputArguments; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationResult other = (DefaultOperationResult) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) && - Objects.equals(this.outputArguments, other.outputArguments); - } - } + @Override + public void setOutputArguments(List outputArguments) { + this.outputArguments = outputArguments; + } - @Override - public List getInoutputArguments() { - return inoutputArguments; - } + public String toString() { + return String.format( + "DefaultOperationResult (" + "inoutputArguments=%s," + "outputArguments=%s," + ")", + this.inoutputArguments, this.outputArguments); + } - @Override - public void setInoutputArguments(List inoutputArguments) { - this.inoutputArguments = inoutputArguments; - } + /** This builder class can be used to construct a DefaultOperationResult bean. */ + public static class Builder extends OperationResultBuilder { @Override - public List getOutputArguments() { - return outputArguments; + protected Builder getSelf() { + return this; } @Override - public void setOutputArguments(List outputArguments) { - this.outputArguments = outputArguments; - } - - public String toString() { - return String.format( - "DefaultOperationResult (" + "inoutputArguments=%s," - + "outputArguments=%s," - + ")", - this.inoutputArguments, this.outputArguments); - } - - /** - * This builder class can be used to construct a DefaultOperationResult bean. - */ - public static class Builder extends OperationResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationResult newBuildingInstance() { - return new DefaultOperationResult(); - } + protected DefaultOperationResult newBuildingInstance() { + return new DefaultOperationResult(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 2398a286b..5f0bb6e9d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -15,79 +15,70 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationVariableBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable - *

- * The value of an operation variable is a submodel element that is used as input and/or output + * + *

The value of an operation variable is a submodel element that is used as input and/or output * variable of an operation. */ - @IRI("aas:OperationVariable") public class DefaultOperationVariable implements OperationVariable { - @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") - protected SubmodelElement value; - - public DefaultOperationVariable() { + @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") + protected SubmodelElement value; + + public DefaultOperationVariable() {} + + @Override + public int hashCode() { + return Objects.hash(this.value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultOperationVariable other = (DefaultOperationVariable) obj; + return Objects.equals(this.value, other.value); } + } - @Override - public int hashCode() { - return Objects.hash(this.value); - } + @Override + public SubmodelElement getValue() { + return value; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultOperationVariable other = (DefaultOperationVariable) obj; - return Objects.equals(this.value, other.value); - } - } + @Override + public void setValue(SubmodelElement value) { + this.value = value; + } - @Override - public SubmodelElement getValue() { - return value; - } + public String toString() { + return String.format("DefaultOperationVariable (" + "value=%s," + ")", this.value); + } - @Override - public void setValue(SubmodelElement value) { - this.value = value; - } + /** This builder class can be used to construct a DefaultOperationVariable bean. */ + public static class Builder extends OperationVariableBuilder { - public String toString() { - return String.format( - "DefaultOperationVariable (" + "value=%s," - + ")", - this.value); + @Override + protected Builder getSelf() { + return this; } - /** - * This builder class can be used to construct a DefaultOperationVariable bean. - */ - public static class Builder extends OperationVariableBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultOperationVariable newBuildingInstance() { - return new DefaultOperationVariable(); - } + @Override + protected DefaultOperationVariable newBuildingInstance() { + return new DefaultOperationVariable(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java index 644c09a77..cfb0d46d2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -15,94 +15,83 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; - import java.util.ArrayList; import java.util.List; import java.util.Objects; +import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription */ @IRI("aas:PackageDescription") public class DefaultPackageDescription implements PackageDescription { - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") - protected List items = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") - protected String packageId; - - public DefaultPackageDescription() { - } - - @Override - public int hashCode() { - return Objects.hash(this.items, - this.packageId); + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") + protected List items = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") + protected String packageId; + + public DefaultPackageDescription() {} + + @Override + public int hashCode() { + return Objects.hash(this.items, this.packageId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultPackageDescription other = (DefaultPackageDescription) obj; + return Objects.equals(this.items, other.items) + && Objects.equals(this.packageId, other.packageId); } + } + + @Override + public List getItems() { + return items; + } + + @Override + public void setItems(List items) { + this.items = items; + } + + @Override + public String getPackageId() { + return packageId; + } + + @Override + public void setPackageId(String packageId) { + this.packageId = packageId; + } + + public String toString() { + return String.format( + "DefaultPackageDescription (" + "items=%s," + "packageId=%s," + ")", + this.items, this.packageId); + } + + /** This builder class can be used to construct a DefaultPackageDescription bean. */ + public static class Builder + extends PackageDescriptionBuilder { @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultPackageDescription other = (DefaultPackageDescription) obj; - return Objects.equals(this.items, other.items) && - Objects.equals(this.packageId, other.packageId); - } + protected Builder getSelf() { + return this; } @Override - public List getItems() { - return items; - } - - @Override - public void setItems(List items) { - this.items = items; - } - - @Override - public String getPackageId() { - return packageId; - } - - @Override - public void setPackageId(String packageId) { - this.packageId = packageId; - } - - public String toString() { - return String.format( - "DefaultPackageDescription (" + "items=%s," - + "packageId=%s," - + ")", - this.items, this.packageId); - } - - /** - * This builder class can be used to construct a DefaultPackageDescription bean. - */ - public static class Builder extends PackageDescriptionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultPackageDescription newBuildingInstance() { - return new DefaultPackageDescription(); - } + protected DefaultPackageDescription newBuildingInstance() { + return new DefaultPackageDescription(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index 4e667c908..a26904d96 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -26,242 +29,232 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PropertyBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property - *

- * A property is a data element that has a single value. + * + *

A property is a data element that has a single value. */ - @IRI("aas:Property") public class DefaultProperty implements Property { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Property/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/0/Property/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/0/Property/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultProperty() { - } - - @Override - public int hashCode() { - return Objects.hash(this.valueType, - this.value, - this.valueId, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProperty other = (DefaultProperty) obj; - return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Property/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/Property/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/0/Property/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultProperty() {} + + @Override + public int hashCode() { + return Objects.hash( + this.valueType, + this.value, + this.valueId, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProperty other = (DefaultProperty) obj; + return Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.value, other.value) + && Objects.equals(this.valueId, other.valueId) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultProperty (" + "valueType=%s," + "value=%s," + "valueId=%s," + ")", + this.valueType, this.value, this.valueId); + } + + /** This builder class can be used to construct a DefaultProperty bean. */ + public static class Builder extends PropertyBuilder { @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + protected Builder getSelf() { + return this; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultProperty (" + "valueType=%s," - + "value=%s," - + "valueId=%s," - + ")", - this.valueType, this.value, this.valueId); - } - - /** - * This builder class can be used to construct a DefaultProperty bean. - */ - public static class Builder extends PropertyBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultProperty newBuildingInstance() { - return new DefaultProperty(); - } + protected DefaultProperty newBuildingInstance() { + return new DefaultProperty(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index d105b8428..3e9105b0b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -15,176 +15,175 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation */ @IRI("aas:ProtocolInformation") public class DefaultProtocolInformation implements ProtocolInformation { - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") - protected String endpointProtocol; - - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") - protected List endpointProtocolVersion = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") - protected String href; - - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") - protected List securityAttributes = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") - protected String subprotocol; - - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") - protected String subprotocolBody; - - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") - protected String subprotocolBodyEncoding; - - public DefaultProtocolInformation() { - } - - @Override - public int hashCode() { - return Objects.hash(this.href, - this.endpointProtocol, - this.endpointProtocolVersion, - this.subprotocol, - this.subprotocolBody, - this.subprotocolBodyEncoding, - this.securityAttributes); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultProtocolInformation other = (DefaultProtocolInformation) obj; - return Objects.equals(this.href, other.href) && - Objects.equals(this.endpointProtocol, other.endpointProtocol) && - Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) && - Objects.equals(this.subprotocol, other.subprotocol) && - Objects.equals(this.subprotocolBody, other.subprotocolBody) && - Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) && - Objects.equals(this.securityAttributes, other.securityAttributes); - } - } - - @Override - public String getHref() { - return href; - } - - @Override - public void setHref(String href) { - this.href = href; - } - - @Override - public String getEndpointProtocol() { - return endpointProtocol; - } - - @Override - public void setEndpointProtocol(String endpointProtocol) { - this.endpointProtocol = endpointProtocol; - } - - @Override - public List getEndpointProtocolVersion() { - return endpointProtocolVersion; - } - - @Override - public void setEndpointProtocolVersion(List endpointProtocolVersions) { - this.endpointProtocolVersion = endpointProtocolVersions; - } - - @Override - public String getSubprotocol() { - return subprotocol; - } - - @Override - public void setSubprotocol(String subprotocol) { - this.subprotocol = subprotocol; - } - - @Override - public String getSubprotocolBody() { - return subprotocolBody; - } - - @Override - public void setSubprotocolBody(String subprotocolBody) { - this.subprotocolBody = subprotocolBody; - } - - @Override - public String getSubprotocolBodyEncoding() { - return subprotocolBodyEncoding; - } - - @Override - public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { - this.subprotocolBodyEncoding = subprotocolBodyEncoding; - } - - @Override - public List getSecurityAttributes() { - return securityAttributes; - } - - @Override - public void setSecurityAttributes(List securityAttributes) { - this.securityAttributes = securityAttributes; - } - - public String toString() { - return String.format( - "DefaultProtocolInformation (" + "href=%s," - + "endpointProtocol=%s," - + "endpointProtocolVersion=%s," - + "subprotocol=%s," - + "subprotocolBody=%s," - + "subprotocolBodyEncoding=%s," - + "securityAttributes=%s," - + ")", - this.href, this.endpointProtocol, this.endpointProtocolVersion, this.subprotocol, this.subprotocolBody, - this.subprotocolBodyEncoding, this.securityAttributes); - } - - /** - * This builder class can be used to construct a DefaultProtocolInformation bean. - */ - public static class Builder extends ProtocolInformationBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultProtocolInformation newBuildingInstance() { - return new DefaultProtocolInformation(); - } - } + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") + protected String endpointProtocol; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") + protected List endpointProtocolVersion = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") + protected String href; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") + protected List securityAttributes = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") + protected String subprotocol; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") + protected String subprotocolBody; + + @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") + protected String subprotocolBodyEncoding; + + public DefaultProtocolInformation() {} + + @Override + public int hashCode() { + return Objects.hash( + this.href, + this.endpointProtocol, + this.endpointProtocolVersion, + this.subprotocol, + this.subprotocolBody, + this.subprotocolBodyEncoding, + this.securityAttributes); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultProtocolInformation other = (DefaultProtocolInformation) obj; + return Objects.equals(this.href, other.href) + && Objects.equals(this.endpointProtocol, other.endpointProtocol) + && Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) + && Objects.equals(this.subprotocol, other.subprotocol) + && Objects.equals(this.subprotocolBody, other.subprotocolBody) + && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) + && Objects.equals(this.securityAttributes, other.securityAttributes); + } + } + + @Override + public String getHref() { + return href; + } + + @Override + public void setHref(String href) { + this.href = href; + } + + @Override + public String getEndpointProtocol() { + return endpointProtocol; + } + + @Override + public void setEndpointProtocol(String endpointProtocol) { + this.endpointProtocol = endpointProtocol; + } + + @Override + public List getEndpointProtocolVersion() { + return endpointProtocolVersion; + } + + @Override + public void setEndpointProtocolVersion(List endpointProtocolVersions) { + this.endpointProtocolVersion = endpointProtocolVersions; + } + + @Override + public String getSubprotocol() { + return subprotocol; + } + + @Override + public void setSubprotocol(String subprotocol) { + this.subprotocol = subprotocol; + } + + @Override + public String getSubprotocolBody() { + return subprotocolBody; + } + + @Override + public void setSubprotocolBody(String subprotocolBody) { + this.subprotocolBody = subprotocolBody; + } + + @Override + public String getSubprotocolBodyEncoding() { + return subprotocolBodyEncoding; + } + + @Override + public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { + this.subprotocolBodyEncoding = subprotocolBodyEncoding; + } + + @Override + public List getSecurityAttributes() { + return securityAttributes; + } + + @Override + public void setSecurityAttributes(List securityAttributes) { + this.securityAttributes = securityAttributes; + } + + public String toString() { + return String.format( + "DefaultProtocolInformation (" + + "href=%s," + + "endpointProtocol=%s," + + "endpointProtocolVersion=%s," + + "subprotocol=%s," + + "subprotocolBody=%s," + + "subprotocolBodyEncoding=%s," + + "securityAttributes=%s," + + ")", + this.href, + this.endpointProtocol, + this.endpointProtocolVersion, + this.subprotocol, + this.subprotocolBody, + this.subprotocolBodyEncoding, + this.securityAttributes); + } + + /** This builder class can be used to construct a DefaultProtocolInformation bean. */ + public static class Builder + extends ProtocolInformationBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultProtocolInformation newBuildingInstance() { + return new DefaultProtocolInformation(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 2d584b8c9..8b03e6507 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; @@ -22,170 +25,163 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.QualifierBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier - *

- * A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the + * + *

A qualifier is a type-value-pair that makes additional statements w.r.t. the value of the * element. */ - @IRI("aas:Qualifier") public class DefaultQualifier implements Qualifier { - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") - protected QualifierKind kind; - - @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") - protected String type; - - @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") - protected Reference valueId; - - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") - protected DataTypeDefXsd valueType; - - public DefaultQualifier() { - } - - @Override - public int hashCode() { - return Objects.hash(this.kind, - this.type, - this.valueType, - this.value, - this.valueId, - this.semanticId, - this.supplementalSemanticIds); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultQualifier other = (DefaultQualifier) obj; - return Objects.equals(this.kind, other.kind) && - Objects.equals(this.type, other.type) && - Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public QualifierKind getKind() { - return kind; - } - - @Override - public void setKind(QualifierKind kind) { - this.kind = kind; - } - - @Override - public String getType() { - return type; - } - - @Override - public void setType(String type) { - this.type = type; - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getValueId() { - return valueId; - } - - @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - public String toString() { - return String.format( - "DefaultQualifier (" + "kind=%s," - + "type=%s," - + "valueType=%s," - + "value=%s," - + "valueId=%s," - + ")", - this.kind, this.type, this.valueType, this.value, this.valueId); - } - - /** - * This builder class can be used to construct a DefaultQualifier bean. - */ - public static class Builder extends QualifierBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultQualifier newBuildingInstance() { - return new DefaultQualifier(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") + protected QualifierKind kind; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") + protected String type; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") + protected Reference valueId; + + @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") + protected DataTypeDefXsd valueType; + + public DefaultQualifier() {} + + @Override + public int hashCode() { + return Objects.hash( + this.kind, + this.type, + this.valueType, + this.value, + this.valueId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultQualifier other = (DefaultQualifier) obj; + return Objects.equals(this.kind, other.kind) + && Objects.equals(this.type, other.type) + && Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.value, other.value) + && Objects.equals(this.valueId, other.valueId) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); + } + } + + @Override + public QualifierKind getKind() { + return kind; + } + + @Override + public void setKind(QualifierKind kind) { + this.kind = kind; + } + + @Override + public String getType() { + return type; + } + + @Override + public void setType(String type) { + this.type = type; + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + public String toString() { + return String.format( + "DefaultQualifier (" + + "kind=%s," + + "type=%s," + + "valueType=%s," + + "value=%s," + + "valueId=%s," + + ")", + this.kind, this.type, this.valueType, this.value, this.valueId); + } + + /** This builder class can be used to construct a DefaultQualifier bean. */ + public static class Builder extends QualifierBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultQualifier newBuildingInstance() { + return new DefaultQualifier(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index a87210cd4..44d5c86d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -26,242 +29,232 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RangeBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range - *

- * A range data element is a data element that defines a range with min and max. + * + *

A range data element is a data element that defines a range with min and max. */ - @IRI("aas:Range") public class DefaultRange implements Range { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Range/max") - protected String max; - - @IRI("https://admin-shell.io/aas/3/0/Range/min") - protected String min; - - @IRI("https://admin-shell.io/aas/3/0/Range/valueType") - protected DataTypeDefXsd valueType; - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - public DefaultRange() { - } - - @Override - public int hashCode() { - return Objects.hash(this.valueType, - this.min, - this.max, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRange other = (DefaultRange) obj; - return Objects.equals(this.valueType, other.valueType) && - Objects.equals(this.min, other.min) && - Objects.equals(this.max, other.max) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public DataTypeDefXsd getValueType() { - return valueType; - } - - @Override - public void setValueType(DataTypeDefXsd valueType) { - this.valueType = valueType; - } - - @Override - public String getMin() { - return min; - } - - @Override - public void setMin(String min) { - this.min = min; - } - - @Override - public String getMax() { - return max; - } - - @Override - public void setMax(String max) { - this.max = max; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Range/max") + protected String max; + + @IRI("https://admin-shell.io/aas/3/0/Range/min") + protected String min; + + @IRI("https://admin-shell.io/aas/3/0/Range/valueType") + protected DataTypeDefXsd valueType; + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + public DefaultRange() {} + + @Override + public int hashCode() { + return Objects.hash( + this.valueType, + this.min, + this.max, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRange other = (DefaultRange) obj; + return Objects.equals(this.valueType, other.valueType) + && Objects.equals(this.min, other.min) + && Objects.equals(this.max, other.max) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); } + } + + @Override + public DataTypeDefXsd getValueType() { + return valueType; + } + + @Override + public void setValueType(DataTypeDefXsd valueType) { + this.valueType = valueType; + } + + @Override + public String getMin() { + return min; + } + + @Override + public void setMin(String min) { + this.min = min; + } + + @Override + public String getMax() { + return max; + } + + @Override + public void setMax(String max) { + this.max = max; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultRange (" + "valueType=%s," + "min=%s," + "max=%s," + ")", + this.valueType, this.min, this.max); + } + + /** This builder class can be used to construct a DefaultRange bean. */ + public static class Builder extends RangeBuilder { @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; + protected Builder getSelf() { + return this; } @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultRange (" + "valueType=%s," - + "min=%s," - + "max=%s," - + ")", - this.valueType, this.min, this.max); - } - - /** - * This builder class can be used to construct a DefaultRange bean. - */ - public static class Builder extends RangeBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultRange newBuildingInstance() { - return new DefaultRange(); - } + protected DefaultRange newBuildingInstance() { + return new DefaultRange(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index 84660647b..799935c9e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -28,121 +28,109 @@ import java.util.Objects; import java.util.Set; - -private void validateReferredSemanticId(Reference referredSemanticId) { - if (referredSemanticId == null) { - return; - } - Set visited = Collections.newSetFromMap(new IdentityHashMap<>()); - Reference current = referredSemanticId; - while (current != null) { - if (current == this || !visited.add(current)) { - throw new IllegalArgumentException( - "referredSemanticId must not create a circular Reference"); - } - current = current.getReferredSemanticId(); - } -} - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference - *

- * Reference to either a model element of the same or another AAS or to an external entity. + * + *

Reference to either a model element of the same or another AAS or to an external entity. */ - @IRI("aas:Reference") public class DefaultReference implements Reference { - @IRI("https://admin-shell.io/aas/3/0/Reference/keys") - protected List keys = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") - protected Reference referredSemanticId; - - @IRI("https://admin-shell.io/aas/3/0/Reference/type") - protected ReferenceTypes type; - - public DefaultReference() { + @IRI("https://admin-shell.io/aas/3/0/Reference/keys") + protected List keys = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") + protected Reference referredSemanticId; + + @IRI("https://admin-shell.io/aas/3/0/Reference/type") + protected ReferenceTypes type; + + public DefaultReference() {} + + @Override + public int hashCode() { + return Objects.hash(this.type, this.referredSemanticId, this.keys); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReference other = (DefaultReference) obj; + return Objects.equals(this.type, other.type) + && Objects.equals(this.referredSemanticId, other.referredSemanticId) + && Objects.equals(this.keys, other.keys); } - - @Override - public int hashCode() { - return Objects.hash(this.type, - this.referredSemanticId, - this.keys); + } + + @Override + public ReferenceTypes getType() { + return type; + } + + @Override + public void setType(ReferenceTypes type) { + this.type = type; + } + + @Override + public Reference getReferredSemanticId() { + return referredSemanticId; + } + + @Override + public void setReferredSemanticId(Reference referredSemanticId) { + validateReferredSemanticId(referredSemanticId); + this.referredSemanticId = referredSemanticId; + } + + private void validateReferredSemanticId(Reference referredSemanticId) { + if (referredSemanticId == null) { + return; } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReference other = (DefaultReference) obj; - return Objects.equals(this.type, other.type) && - Objects.equals(this.referredSemanticId, other.referredSemanticId) && - Objects.equals(this.keys, other.keys); - } + Set visited = Collections.newSetFromMap(new IdentityHashMap<>()); + Reference current = referredSemanticId; + while (current != null) { + if (current == this || !visited.add(current)) { + throw new IllegalArgumentException( + "referredSemanticId must not create a circular Reference"); + } + current = current.getReferredSemanticId(); } + } - @Override - public ReferenceTypes getType() { - return type; - } + @Override + public List getKeys() { + return keys; + } - @Override - public void setType(ReferenceTypes type) { - this.type = type; - } + @Override + public void setKeys(List keys) { + this.keys = keys; + } - @Override - public Reference getReferredSemanticId() { - return referredSemanticId; - } + public String toString() { + return String.format( + "DefaultReference (" + "type=%s," + "referredSemanticId=%s," + "keys=%s," + ")", + this.type, this.referredSemanticId, this.keys); + } - @Override - public void setReferredSemanticId(Reference referredSemanticId) { - validateReferredSemanticId(referredSemanticId); - this.referredSemanticId = referredSemanticId; - } + /** This builder class can be used to construct a DefaultReference bean. */ + public static class Builder extends ReferenceBuilder { @Override - public List getKeys() { - return keys; + protected Builder getSelf() { + return this; } @Override - public void setKeys(List keys) { - this.keys = keys; - } - - public String toString() { - return String.format( - "DefaultReference (" + "type=%s," - + "referredSemanticId=%s," - + "keys=%s," - + ")", - this.type, this.referredSemanticId, this.keys); + protected DefaultReference newBuildingInstance() { + return new DefaultReference(); } - - /** - * This builder class can be used to construct a DefaultReference bean. - */ - public static class Builder extends ReferenceBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultReference newBuildingInstance() { - return new DefaultReference(); - } - } - -} + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index 1203c7071..7d9e2b244 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,211 +28,201 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement - *

- * A reference element is a data element that defines a logical reference to another element within - * the same or another AAS or a reference to an external object or entity. + * + *

A reference element is a data element that defines a logical reference to another element + * within the same or another AAS or a reference to an external object or entity. */ - @IRI("aas:ReferenceElement") public class DefaultReferenceElement implements ReferenceElement { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") - protected Reference value; - - public DefaultReferenceElement() { - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultReferenceElement other = (DefaultReferenceElement) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getValue() { - return value; - } - - @Override - public void setValue(Reference value) { - this.value = value; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultReferenceElement (" + "value=%s," - + ")", - this.value); - } - - /** - * This builder class can be used to construct a DefaultReferenceElement bean. - */ - public static class Builder extends ReferenceElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultReferenceElement newBuildingInstance() { - return new DefaultReferenceElement(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") + protected Reference value; + + public DefaultReferenceElement() {} + + @Override + public int hashCode() { + return Objects.hash( + this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultReferenceElement other = (DefaultReferenceElement) obj; + return Objects.equals(this.value, other.value) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getValue() { + return value; + } + + @Override + public void setValue(Reference value) { + this.value = value; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format("DefaultReferenceElement (" + "value=%s," + ")", this.value); + } + + /** This builder class can be used to construct a DefaultReferenceElement bean. */ + public static class Builder extends ReferenceElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultReferenceElement newBuildingInstance() { + return new DefaultReferenceElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index 857ff771b..cc4557e36 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,227 +28,218 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RelationshipElementBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement - *

- * A relationship element is used to define a relationship between two elements being either + * + *

A relationship element is used to define a relationship between two elements being either * referable (model reference) or external (global reference). */ - @IRI("aas:RelationshipElement") public class DefaultRelationshipElement implements RelationshipElement { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") - protected Reference first; - - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") - protected Reference second; - - public DefaultRelationshipElement() { - } - - @Override - public int hashCode() { - return Objects.hash(this.first, - this.second, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultRelationshipElement other = (DefaultRelationshipElement) obj; - return Objects.equals(this.first, other.first) && - Objects.equals(this.second, other.second) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public Reference getFirst() { - return first; - } - - @Override - public void setFirst(Reference first) { - this.first = first; - } - - @Override - public Reference getSecond() { - return second; - } - - @Override - public void setSecond(Reference second) { - this.second = second; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultRelationshipElement (" + "first=%s," - + "second=%s," - + ")", - this.first, this.second); - } - - /** - * This builder class can be used to construct a DefaultRelationshipElement bean. - */ - public static class Builder extends RelationshipElementBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultRelationshipElement newBuildingInstance() { - return new DefaultRelationshipElement(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + protected Reference first; + + @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + protected Reference second; + + public DefaultRelationshipElement() {} + + @Override + public int hashCode() { + return Objects.hash( + this.first, + this.second, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultRelationshipElement other = (DefaultRelationshipElement) obj; + return Objects.equals(this.first, other.first) + && Objects.equals(this.second, other.second) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public Reference getFirst() { + return first; + } + + @Override + public void setFirst(Reference first) { + this.first = first; + } + + @Override + public Reference getSecond() { + return second; + } + + @Override + public void setSecond(Reference second) { + this.second = second; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultRelationshipElement (" + "first=%s," + "second=%s," + ")", this.first, this.second); + } + + /** This builder class can be used to construct a DefaultRelationshipElement bean. */ + public static class Builder + extends RelationshipElementBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultRelationshipElement newBuildingInstance() { + return new DefaultRelationshipElement(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index 2a693368d..f6e406593 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -15,94 +15,84 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResourceBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource - *

- * Resource represents an address to a file (a locator). The value is an URI that can represent an - * absolute or relative path + * + *

Resource represents an address to a file (a locator). The value is an URI that can represent + * an absolute or relative path */ - @IRI("aas:Resource") public class DefaultResource implements Resource { - @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") - protected String contentType; + @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") + protected String contentType; + + @IRI("https://admin-shell.io/aas/3/0/Resource/path") + protected String path; + + public DefaultResource() {} + + @Override + public int hashCode() { + return Objects.hash(this.path, this.contentType); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResource other = (DefaultResource) obj; + return Objects.equals(this.path, other.path) + && Objects.equals(this.contentType, other.contentType); + } + } - @IRI("https://admin-shell.io/aas/3/0/Resource/path") - protected String path; + @Override + public String getPath() { + return path; + } - public DefaultResource() { - } + @Override + public void setPath(String path) { + this.path = path; + } - @Override - public int hashCode() { - return Objects.hash(this.path, - this.contentType); - } + @Override + public String getContentType() { + return contentType; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResource other = (DefaultResource) obj; - return Objects.equals(this.path, other.path) && - Objects.equals(this.contentType, other.contentType); - } - } + @Override + public void setContentType(String contentType) { + this.contentType = contentType; + } - @Override - public String getPath() { - return path; - } + public String toString() { + return String.format( + "DefaultResource (" + "path=%s," + "contentType=%s," + ")", this.path, this.contentType); + } - @Override - public void setPath(String path) { - this.path = path; - } + /** This builder class can be used to construct a DefaultResource bean. */ + public static class Builder extends ResourceBuilder { @Override - public String getContentType() { - return contentType; + protected Builder getSelf() { + return this; } @Override - public void setContentType(String contentType) { - this.contentType = contentType; - } - - public String toString() { - return String.format( - "DefaultResource (" + "path=%s," - + "contentType=%s," - + ")", - this.path, this.contentType); - } - - /** - * This builder class can be used to construct a DefaultResource bean. - */ - public static class Builder extends ResourceBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultResource newBuildingInstance() { - return new DefaultResource(); - } + protected DefaultResource newBuildingInstance() { + return new DefaultResource(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java index f5c51fdd3..687155ddb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -15,79 +15,67 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResultBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result */ @IRI("aas:Result") public class DefaultResult implements Result { - @IRI("https://admin-shell.io/aas/3/0/Result/messages") - protected List messages = new ArrayList<>(); - - public DefaultResult() { + @IRI("https://admin-shell.io/aas/3/0/Result/messages") + protected List messages = new ArrayList<>(); + + public DefaultResult() {} + + @Override + public int hashCode() { + return Objects.hash(this.messages); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultResult other = (DefaultResult) obj; + return Objects.equals(this.messages, other.messages); } + } - @Override - public int hashCode() { - return Objects.hash(this.messages); - } + @Override + public List getMessages() { + return messages; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultResult other = (DefaultResult) obj; - return Objects.equals(this.messages, other.messages); - } - } + @Override + public void setMessages(List messages) { + this.messages = messages; + } - @Override - public List getMessages() { - return messages; - } + public String toString() { + return String.format("DefaultResult (" + "messages=%s," + ")", this.messages); + } - @Override - public void setMessages(List messages) { - this.messages = messages; - } + /** This builder class can be used to construct a DefaultResult bean. */ + public static class Builder extends ResultBuilder { - public String toString() { - return String.format( - "DefaultResult (" + "messages=%s," - + ")", - this.messages); + @Override + protected Builder getSelf() { + return this; } - /** - * This builder class can be used to construct a DefaultResult bean. - */ - public static class Builder extends ResultBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultResult newBuildingInstance() { - return new DefaultResult(); - } + @Override + protected DefaultResult newBuildingInstance() { + return new DefaultResult(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java index 5127b00ea..b2538fbed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -15,109 +15,98 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityAttributeObjectBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject - * */ - @IRI("aas:SecurityAttributeObject") public class DefaultSecurityAttributeObject implements SecurityAttributeObject { - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") - protected String key; - - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") - protected SecurityTypeEnum type; - - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") - protected String value; - - public DefaultSecurityAttributeObject() { + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") + protected String key; + + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") + protected SecurityTypeEnum type; + + @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") + protected String value; + + public DefaultSecurityAttributeObject() {} + + @Override + public int hashCode() { + return Objects.hash(this.type, this.key, this.value); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; + return Objects.equals(this.type, other.type) + && Objects.equals(this.key, other.key) + && Objects.equals(this.value, other.value); } + } + + @Override + public SecurityTypeEnum getType() { + return type; + } + + @Override + public void setType(SecurityTypeEnum type) { + this.type = type; + } + + @Override + public String getKey() { + return key; + } + + @Override + public void setKey(String key) { + this.key = key; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + public String toString() { + return String.format( + "DefaultSecurityAttributeObject (" + "type=%s," + "key=%s," + "value=%s," + ")", + this.type, this.key, this.value); + } + + /** This builder class can be used to construct a DefaultSecurityAttributeObject bean. */ + public static class Builder + extends SecurityAttributeObjectBuilder { @Override - public int hashCode() { - return Objects.hash(this.type, - this.key, - this.value); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; - return Objects.equals(this.type, other.type) && - Objects.equals(this.key, other.key) && - Objects.equals(this.value, other.value); - } - } - - @Override - public SecurityTypeEnum getType() { - return type; - } - - @Override - public void setType(SecurityTypeEnum type) { - this.type = type; - } - - @Override - public String getKey() { - return key; - } - - @Override - public void setKey(String key) { - this.key = key; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - public String toString() { - return String.format( - "DefaultSecurityAttributeObject (" + "type=%s," - + "key=%s," - + "value=%s," - + ")", - this.type, this.key, this.value); - } - - /** - * This builder class can be used to construct a DefaultSecurityAttributeObject bean. - */ - public static class Builder extends SecurityAttributeObjectBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSecurityAttributeObject newBuildingInstance() { - return new DefaultSecurityAttributeObject(); - } + protected DefaultSecurityAttributeObject newBuildingInstance() { + return new DefaultSecurityAttributeObject(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java index 93d3e4b97..e46f8d699 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java @@ -15,56 +15,50 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityTypeEnumBuilder; -import java.util.Objects; - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum - */ +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum */ @IRI("aas:SecurityTypeEnum") public class DefaultSecurityTypeEnum implements SecurityTypeEnum { - public DefaultSecurityTypeEnum() { - } + public DefaultSecurityTypeEnum() {} - @Override - public String toString() { - return "DefaultSecurityTypeEnum{" + "}"; - } + @Override + public String toString() { + return "DefaultSecurityTypeEnum{" + "}"; + } - @Override - public int hashCode() { - return Objects.hash(super.hashCode()); - } + @Override + public int hashCode() { + return Objects.hash(super.hashCode()); + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } - return true; + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; } + return true; + } - /** - * This builder class can be used to construct a DefaultSecurityTypeEnum bean. - */ - public static class Builder extends SecurityTypeEnumBuilder { + /** This builder class can be used to construct a DefaultSecurityTypeEnum bean. */ + public static class Builder extends SecurityTypeEnumBuilder { - @Override - protected Builder getSelf() { - return this; - } + @Override + protected Builder getSelf() { + return this; + } - @Override - protected DefaultSecurityTypeEnum newBuildingInstance() { - return new DefaultSecurityTypeEnum(); - } + @Override + protected DefaultSecurityTypeEnum newBuildingInstance() { + return new DefaultSecurityTypeEnum(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 81ab509d2..24839d5b0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -15,142 +15,134 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SpecificAssetIdBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId - *

- * A specific asset ID describes a generic supplementary identifying attribute of the asset. + * + *

A specific asset ID describes a generic supplementary identifying attribute of the asset. */ - @IRI("aas:SpecificAssetId") public class DefaultSpecificAssetId implements SpecificAssetId { - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") - protected Reference externalSubjectId; - - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") - protected String name; - - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") - protected String value; - - public DefaultSpecificAssetId() { + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") + protected Reference externalSubjectId; + + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") + protected String name; + + @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") + protected String value; + + public DefaultSpecificAssetId() {} + + @Override + public int hashCode() { + return Objects.hash( + this.name, + this.value, + this.externalSubjectId, + this.semanticId, + this.supplementalSemanticIds); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; + return Objects.equals(this.name, other.name) + && Objects.equals(this.value, other.value) + && Objects.equals(this.externalSubjectId, other.externalSubjectId) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); } + } + + @Override + public String getName() { + return name; + } + + @Override + public void setName(String name) { + this.name = name; + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getExternalSubjectId() { + return externalSubjectId; + } + + @Override + public void setExternalSubjectId(Reference externalSubjectId) { + this.externalSubjectId = externalSubjectId; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + public String toString() { + return String.format( + "DefaultSpecificAssetId (" + "name=%s," + "value=%s," + "externalSubjectId=%s," + ")", + this.name, this.value, this.externalSubjectId); + } + + /** This builder class can be used to construct a DefaultSpecificAssetId bean. */ + public static class Builder extends SpecificAssetIdBuilder { @Override - public int hashCode() { - return Objects.hash(this.name, - this.value, - this.externalSubjectId, - this.semanticId, - this.supplementalSemanticIds); + protected Builder getSelf() { + return this; } @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSpecificAssetId other = (DefaultSpecificAssetId) obj; - return Objects.equals(this.name, other.name) && - Objects.equals(this.value, other.value) && - Objects.equals(this.externalSubjectId, other.externalSubjectId) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds); - } - } - - @Override - public String getName() { - return name; - } - - @Override - public void setName(String name) { - this.name = name; - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; - } - - @Override - public Reference getExternalSubjectId() { - return externalSubjectId; - } - - @Override - public void setExternalSubjectId(Reference externalSubjectId) { - this.externalSubjectId = externalSubjectId; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - public String toString() { - return String.format( - "DefaultSpecificAssetId (" + "name=%s," - + "value=%s," - + "externalSubjectId=%s," - + ")", - this.name, this.value, this.externalSubjectId); - } - - /** - * This builder class can be used to construct a DefaultSpecificAssetId bean. - */ - public static class Builder extends SpecificAssetIdBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSpecificAssetId newBuildingInstance() { - return new DefaultSpecificAssetId(); - } + protected DefaultSpecificAssetId newBuildingInstance() { + return new DefaultSpecificAssetId(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 83d39fbb6..7ea0d56d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -28,255 +31,245 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel - *

- * A submodel defines a specific aspect of the asset represented by the AAS. + * + *

A submodel defines a specific aspect of the asset represented by the AAS. */ - @IRI("aas:Submodel") public class DefaultSubmodel implements Submodel { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") - protected ModellingKind kind; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") - protected List submodelElements = new ArrayList<>(); - - public DefaultSubmodel() { - } - - @Override - public int hashCode() { - return Objects.hash(this.submodelElements, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers, - this.kind, - this.administration, - this.id, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodel other = (DefaultSubmodel) obj; - return Objects.equals(this.submodelElements, other.submodelElements) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers) && - Objects.equals(this.kind, other.kind) && - Objects.equals(this.administration, other.administration) && - Objects.equals(this.id, other.id) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public List getSubmodelElements() { - return submodelElements; - } - - @Override - public void setSubmodelElements(List submodelElements) { - this.submodelElements = submodelElements; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") + protected ModellingKind kind; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") + protected List submodelElements = new ArrayList<>(); + + public DefaultSubmodel() {} + + @Override + public int hashCode() { + return Objects.hash( + this.submodelElements, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers, + this.kind, + this.administration, + this.id, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodel other = (DefaultSubmodel) obj; + return Objects.equals(this.submodelElements, other.submodelElements) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers) + && Objects.equals(this.kind, other.kind) + && Objects.equals(this.administration, other.administration) + && Objects.equals(this.id, other.id) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions); } + } + + @Override + public List getSubmodelElements() { + return submodelElements; + } + + @Override + public void setSubmodelElements(List submodelElements) { + this.submodelElements = submodelElements; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format("DefaultSubmodel (" + "submodelElements=%s," + ")", this.submodelElements); + } + + /** This builder class can be used to construct a DefaultSubmodel bean. */ + public static class Builder extends SubmodelBuilder { @Override - public Reference getSemanticId() { - return semanticId; + protected Builder getSelf() { + return this; } @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultSubmodel (" + "submodelElements=%s," - + ")", - this.submodelElements); - } - - /** - * This builder class can be used to construct a DefaultSubmodel bean. - */ - public static class Builder extends SubmodelBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodel newBuildingInstance() { - return new DefaultSubmodel(); - } + protected DefaultSubmodel newBuildingInstance() { + return new DefaultSubmodel(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java index 07d7fa3ae..afcaf85b7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,199 +28,195 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelDescriptorBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - -/** - * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor - * - */ - +/** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor */ @IRI("aas:SubmodelDescriptor") public class DefaultSubmodelDescriptor implements SubmodelDescriptor { - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") - protected AdministrativeInformation administration; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") - protected List supplementalSemanticId = new ArrayList<>(); - - public DefaultSubmodelDescriptor() { - } - - @Override - public int hashCode() { - return Objects.hash(this.administration, - this.endpoints, - this.idShort, - this.id, - this.semanticId, - this.supplementalSemanticId, - this.description, - this.displayName, - this.extensions); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; - return Objects.equals(this.administration, other.administration) && - Objects.equals(this.endpoints, other.endpoints) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.id, other.id) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticId, other.supplementalSemanticId) && - Objects.equals(this.description, other.description) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.extensions, other.extensions); - } - } - - @Override - public AdministrativeInformation getAdministration() { - return administration; - } - - @Override - public void setAdministration(AdministrativeInformation administration) { - this.administration = administration; - } - - @Override - public List getEndpoints() { - return endpoints; - } - - @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public String getId() { - return id; - } - - @Override - public void setId(String id) { - this.id = id; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticId() { - return supplementalSemanticId; - } - - @Override - public void setSupplementalSemanticId(List supplementalSemanticIds) { - this.supplementalSemanticId = supplementalSemanticIds; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultSubmodelDescriptor (" + "administration=%s," - + "endpoints=%s," - + "idShort=%s," - + "id=%s," - + "semanticId=%s," - + "supplementalSemanticId=%s," - + ")", - this.administration, this.endpoints, this.idShort, this.id, this.semanticId, this.supplementalSemanticId); - } - - /** - * This builder class can be used to construct a DefaultSubmodelDescriptor bean. - */ - public static class Builder extends SubmodelDescriptorBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelDescriptor newBuildingInstance() { - return new DefaultSubmodelDescriptor(); - } - } + @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") + protected AdministrativeInformation administration; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") + protected List endpoints = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") + protected String id; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") + protected List supplementalSemanticId = new ArrayList<>(); + + public DefaultSubmodelDescriptor() {} + + @Override + public int hashCode() { + return Objects.hash( + this.administration, + this.endpoints, + this.idShort, + this.id, + this.semanticId, + this.supplementalSemanticId, + this.description, + this.displayName, + this.extensions); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; + return Objects.equals(this.administration, other.administration) + && Objects.equals(this.endpoints, other.endpoints) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.id, other.id) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticId, other.supplementalSemanticId) + && Objects.equals(this.description, other.description) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.extensions, other.extensions); + } + } + + @Override + public AdministrativeInformation getAdministration() { + return administration; + } + + @Override + public void setAdministration(AdministrativeInformation administration) { + this.administration = administration; + } + + @Override + public List getEndpoints() { + return endpoints; + } + + @Override + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public String getId() { + return id; + } + + @Override + public void setId(String id) { + this.id = id; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticId() { + return supplementalSemanticId; + } + + @Override + public void setSupplementalSemanticId(List supplementalSemanticIds) { + this.supplementalSemanticId = supplementalSemanticIds; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + public String toString() { + return String.format( + "DefaultSubmodelDescriptor (" + + "administration=%s," + + "endpoints=%s," + + "idShort=%s," + + "id=%s," + + "semanticId=%s," + + "supplementalSemanticId=%s," + + ")", + this.administration, + this.endpoints, + this.idShort, + this.id, + this.semanticId, + this.supplementalSemanticId); + } + + /** This builder class can be used to construct a DefaultSubmodelDescriptor bean. */ + public static class Builder + extends SubmodelDescriptorBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelDescriptor newBuildingInstance() { + return new DefaultSubmodelDescriptor(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java index 0abddf73d..f349fcf3d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -26,210 +29,200 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementAttributesBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes - * */ - @IRI("aas:SubmodelElementAttributes") public class DefaultSubmodelElementAttributes implements SubmodelElementAttributes { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") - protected ModellingKind kind; - - public DefaultSubmodelElementAttributes() { - } - - @Override - public int hashCode() { - return Objects.hash(this.kind, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; - return Objects.equals(this.kind, other.kind) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public ModellingKind getKind() { - return kind; - } - - @Override - public void setKind(ModellingKind kind) { - this.kind = kind; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultSubmodelElementAttributes (" + "kind=%s," - + ")", - this.kind); - } - - /** - * This builder class can be used to construct a DefaultSubmodelElementAttributes bean. - */ - public static class Builder extends SubmodelElementAttributesBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementAttributes newBuildingInstance() { - return new DefaultSubmodelElementAttributes(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") + protected ModellingKind kind; + + public DefaultSubmodelElementAttributes() {} + + @Override + public int hashCode() { + return Objects.hash( + this.kind, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementAttributes other = (DefaultSubmodelElementAttributes) obj; + return Objects.equals(this.kind, other.kind) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public ModellingKind getKind() { + return kind; + } + + @Override + public void setKind(ModellingKind kind) { + this.kind = kind; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format("DefaultSubmodelElementAttributes (" + "kind=%s," + ")", this.kind); + } + + /** This builder class can be used to construct a DefaultSubmodelElementAttributes bean. */ + public static class Builder + extends SubmodelElementAttributesBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementAttributes newBuildingInstance() { + return new DefaultSubmodelElementAttributes(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index 017db63f5..9e4517e77 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -26,212 +29,203 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementCollectionBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection - *

- * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple + * + *

A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. */ - @IRI("aas:SubmodelElementCollection") public class DefaultSubmodelElementCollection implements SubmodelElementCollection { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") - protected List value = new ArrayList<>(); - - public DefaultSubmodelElementCollection() { - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public List getValue() { - return value; - } - - @Override - public void setValue(List values) { - this.value = values; - } - - @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultSubmodelElementCollection (" + "value=%s," - + ")", - this.value); - } - - /** - * This builder class can be used to construct a DefaultSubmodelElementCollection bean. - */ - public static class Builder extends SubmodelElementCollectionBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementCollection newBuildingInstance() { - return new DefaultSubmodelElementCollection(); - } - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") + protected List value = new ArrayList<>(); + + public DefaultSubmodelElementCollection() {} + + @Override + public int hashCode() { + return Objects.hash( + this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementCollection other = (DefaultSubmodelElementCollection) obj; + return Objects.equals(this.value, other.value) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public List getValue() { + return value; + } + + @Override + public void setValue(List values) { + this.value = values; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format("DefaultSubmodelElementCollection (" + "value=%s," + ")", this.value); + } + + /** This builder class can be used to construct a DefaultSubmodelElementCollection bean. */ + public static class Builder + extends SubmodelElementCollectionBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultSubmodelElementCollection newBuildingInstance() { + return new DefaultSubmodelElementCollection(); + } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index 85454afb6..e092d110c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -15,6 +15,9 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -28,274 +31,273 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementListBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList - *

- * A submodel element list is an ordered list of submodel elements. + * + *

A submodel element list is an ordered list of submodel elements. */ - @IRI("aas:SubmodelElementList") public class DefaultSubmodelElementList implements SubmodelElementList { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") - protected List embeddedDataSpecifications = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") - protected List extensions = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") - protected Reference semanticId; - - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") - protected List supplementalSemanticIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") - protected List qualifiers = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/category") - protected String category; - - @IRI("https://admin-shell.io/aas/3/0/Referable/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") - protected String idShort; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") - protected boolean orderRelevant; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") - protected Reference semanticIdListElement; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") - protected AasSubmodelElements typeValueListElement; - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") - protected List value = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") - protected DataTypeDefXsd valueTypeListElement; - - public DefaultSubmodelElementList() { - } - - @Override - public int hashCode() { - return Objects.hash(this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.value, - this.category, - this.idShort, - this.displayName, - this.description, - this.extensions, - this.embeddedDataSpecifications, - this.semanticId, - this.supplementalSemanticIds, - this.qualifiers); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; - return Objects.equals(this.orderRelevant, other.orderRelevant) && - Objects.equals(this.semanticIdListElement, other.semanticIdListElement) && - Objects.equals(this.typeValueListElement, other.typeValueListElement) && - Objects.equals(this.valueTypeListElement, other.valueTypeListElement) && - Objects.equals(this.value, other.value) && - Objects.equals(this.category, other.category) && - Objects.equals(this.idShort, other.idShort) && - Objects.equals(this.displayName, other.displayName) && - Objects.equals(this.description, other.description) && - Objects.equals(this.extensions, other.extensions) && - Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) && - Objects.equals(this.semanticId, other.semanticId) && - Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) && - Objects.equals(this.qualifiers, other.qualifiers); - } - } - - @Override - public boolean getOrderRelevant() { - return orderRelevant; - } - - @Override - public void setOrderRelevant(boolean orderRelevant) { - this.orderRelevant = orderRelevant; - } - - @Override - public Reference getSemanticIdListElement() { - return semanticIdListElement; - } - - @Override - public void setSemanticIdListElement(Reference semanticIdListElement) { - this.semanticIdListElement = semanticIdListElement; - } - - @Override - public AasSubmodelElements getTypeValueListElement() { - return typeValueListElement; - } - - @Override - public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { - this.typeValueListElement = typeValueListElement; - } - - @Override - public DataTypeDefXsd getValueTypeListElement() { - return valueTypeListElement; - } - - @Override - public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { - this.valueTypeListElement = valueTypeListElement; - } - - @Override - public List getValue() { - return value; - } + @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + protected List embeddedDataSpecifications = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + protected List extensions = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + protected Reference semanticId; + + @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + protected List supplementalSemanticIds = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + protected List qualifiers = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/category") + protected String category; + + @IRI("https://admin-shell.io/aas/3/0/Referable/description") + protected List description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + protected List displayName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + protected String idShort; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") + protected boolean orderRelevant; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") + protected Reference semanticIdListElement; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") + protected AasSubmodelElements typeValueListElement; + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") + protected List value = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") + protected DataTypeDefXsd valueTypeListElement; + + public DefaultSubmodelElementList() {} + + @Override + public int hashCode() { + return Objects.hash( + this.orderRelevant, + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.value, + this.category, + this.idShort, + this.displayName, + this.description, + this.extensions, + this.embeddedDataSpecifications, + this.semanticId, + this.supplementalSemanticIds, + this.qualifiers); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultSubmodelElementList other = (DefaultSubmodelElementList) obj; + return Objects.equals(this.orderRelevant, other.orderRelevant) + && Objects.equals(this.semanticIdListElement, other.semanticIdListElement) + && Objects.equals(this.typeValueListElement, other.typeValueListElement) + && Objects.equals(this.valueTypeListElement, other.valueTypeListElement) + && Objects.equals(this.value, other.value) + && Objects.equals(this.category, other.category) + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.displayName, other.displayName) + && Objects.equals(this.description, other.description) + && Objects.equals(this.extensions, other.extensions) + && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.supplementalSemanticIds, other.supplementalSemanticIds) + && Objects.equals(this.qualifiers, other.qualifiers); + } + } + + @Override + public boolean getOrderRelevant() { + return orderRelevant; + } + + @Override + public void setOrderRelevant(boolean orderRelevant) { + this.orderRelevant = orderRelevant; + } + + @Override + public Reference getSemanticIdListElement() { + return semanticIdListElement; + } + + @Override + public void setSemanticIdListElement(Reference semanticIdListElement) { + this.semanticIdListElement = semanticIdListElement; + } + + @Override + public AasSubmodelElements getTypeValueListElement() { + return typeValueListElement; + } + + @Override + public void setTypeValueListElement(AasSubmodelElements typeValueListElement) { + this.typeValueListElement = typeValueListElement; + } + + @Override + public DataTypeDefXsd getValueTypeListElement() { + return valueTypeListElement; + } + + @Override + public void setValueTypeListElement(DataTypeDefXsd valueTypeListElement) { + this.valueTypeListElement = valueTypeListElement; + } + + @Override + public List getValue() { + return value; + } + + @Override + public void setValue(List values) { + this.value = values; + } + + @Override + public String getCategory() { + return category; + } + + @Override + public void setCategory(String category) { + this.category = category; + } + + @Override + public String getIdShort() { + return idShort; + } + + @Override + public void setIdShort(String idShort) { + this.idShort = idShort; + } + + @Override + public List getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public Reference getSemanticId() { + return semanticId; + } + + @Override + public void setSemanticId(Reference semanticId) { + this.semanticId = semanticId; + } + + @Override + public List getSupplementalSemanticIds() { + return supplementalSemanticIds; + } + + @Override + public void setSupplementalSemanticIds(List supplementalSemanticIds) { + this.supplementalSemanticIds = supplementalSemanticIds; + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + public String toString() { + return String.format( + "DefaultSubmodelElementList (" + + "orderRelevant=%s," + + "semanticIdListElement=%s," + + "typeValueListElement=%s," + + "valueTypeListElement=%s," + + "value=%s," + + ")", + this.orderRelevant, + this.semanticIdListElement, + this.typeValueListElement, + this.valueTypeListElement, + this.value); + } + + /** This builder class can be used to construct a DefaultSubmodelElementList bean. */ + public static class Builder + extends SubmodelElementListBuilder { @Override - public void setValue(List values) { - this.value = values; + protected Builder getSelf() { + return this; } @Override - public String getCategory() { - return category; - } - - @Override - public void setCategory(String category) { - this.category = category; - } - - @Override - public String getIdShort() { - return idShort; - } - - @Override - public void setIdShort(String idShort) { - this.idShort = idShort; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - @Override - public List getEmbeddedDataSpecifications() { - return embeddedDataSpecifications; - } - - @Override - public void setEmbeddedDataSpecifications(List embeddedDataSpecifications) { - this.embeddedDataSpecifications = embeddedDataSpecifications; - } - - @Override - public Reference getSemanticId() { - return semanticId; - } - - @Override - public void setSemanticId(Reference semanticId) { - this.semanticId = semanticId; - } - - @Override - public List getSupplementalSemanticIds() { - return supplementalSemanticIds; - } - - @Override - public void setSupplementalSemanticIds(List supplementalSemanticIds) { - this.supplementalSemanticIds = supplementalSemanticIds; - } - - @Override - public List getQualifiers() { - return qualifiers; - } - - @Override - public void setQualifiers(List qualifiers) { - this.qualifiers = qualifiers; - } - - public String toString() { - return String.format( - "DefaultSubmodelElementList (" + "orderRelevant=%s," - + "semanticIdListElement=%s," - + "typeValueListElement=%s," - + "valueTypeListElement=%s," - + "value=%s," - + ")", - this.orderRelevant, this.semanticIdListElement, this.typeValueListElement, this.valueTypeListElement, this.value); - } - - /** - * This builder class can be used to construct a DefaultSubmodelElementList bean. - */ - public static class Builder extends SubmodelElementListBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultSubmodelElementList newBuildingInstance() { - return new DefaultSubmodelElementList(); - } + protected DefaultSubmodelElementList newBuildingInstance() { + return new DefaultSubmodelElementList(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 8d61abdf9..5e848a9c1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -15,80 +15,72 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueListBuilder; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList - *

- * A set of value reference pairs. + * + *

A set of value reference pairs. */ - @IRI("aas:ValueList") public class DefaultValueList implements ValueList { - @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") - protected List valueReferencePairs = new ArrayList<>(); - - public DefaultValueList() { + @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") + protected List valueReferencePairs = new ArrayList<>(); + + public DefaultValueList() {} + + @Override + public int hashCode() { + return Objects.hash(this.valueReferencePairs); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueList other = (DefaultValueList) obj; + return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); } + } - @Override - public int hashCode() { - return Objects.hash(this.valueReferencePairs); - } + @Override + public List getValueReferencePairs() { + return valueReferencePairs; + } - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueList other = (DefaultValueList) obj; - return Objects.equals(this.valueReferencePairs, other.valueReferencePairs); - } - } + @Override + public void setValueReferencePairs(List valueReferencePairs) { + this.valueReferencePairs = valueReferencePairs; + } - @Override - public List getValueReferencePairs() { - return valueReferencePairs; - } + public String toString() { + return String.format( + "DefaultValueList (" + "valueReferencePairs=%s," + ")", this.valueReferencePairs); + } - @Override - public void setValueReferencePairs(List valueReferencePairs) { - this.valueReferencePairs = valueReferencePairs; - } + /** This builder class can be used to construct a DefaultValueList bean. */ + public static class Builder extends ValueListBuilder { - public String toString() { - return String.format( - "DefaultValueList (" + "valueReferencePairs=%s," - + ")", - this.valueReferencePairs); + @Override + protected Builder getSelf() { + return this; } - /** - * This builder class can be used to construct a DefaultValueList bean. - */ - public static class Builder extends ValueListBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultValueList newBuildingInstance() { - return new DefaultValueList(); - } + @Override + protected DefaultValueList newBuildingInstance() { + return new DefaultValueList(); } + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index 980263577..2bff3da56 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -15,95 +15,86 @@ package org.eclipse.digitaltwin.aas4j.v3.model.impl; +import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueReferencePairBuilder; -import java.util.Objects; - - /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair - *

- * A value reference pair within a value list. Each value has a global unique id defining its + * + *

A value reference pair within a value list. Each value has a global unique id defining its * semantic. */ - @IRI("aas:ValueReferencePair") public class DefaultValueReferencePair implements ValueReferencePair { - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") - protected String value; - - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") - protected Reference valueId; - - public DefaultValueReferencePair() { - } - - @Override - public int hashCode() { - return Objects.hash(this.value, - this.valueId); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } else if (obj == null) { - return false; - } else if (this.getClass() != obj.getClass()) { - return false; - } else { - DefaultValueReferencePair other = (DefaultValueReferencePair) obj; - return Objects.equals(this.value, other.value) && - Objects.equals(this.valueId, other.valueId); - } - } - - @Override - public String getValue() { - return value; - } - - @Override - public void setValue(String value) { - this.value = value; + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") + protected String value; + + @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") + protected Reference valueId; + + public DefaultValueReferencePair() {} + + @Override + public int hashCode() { + return Objects.hash(this.value, this.valueId); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultValueReferencePair other = (DefaultValueReferencePair) obj; + return Objects.equals(this.value, other.value) && Objects.equals(this.valueId, other.valueId); } + } + + @Override + public String getValue() { + return value; + } + + @Override + public void setValue(String value) { + this.value = value; + } + + @Override + public Reference getValueId() { + return valueId; + } + + @Override + public void setValueId(Reference valueId) { + this.valueId = valueId; + } + + public String toString() { + return String.format( + "DefaultValueReferencePair (" + "value=%s," + "valueId=%s," + ")", + this.value, this.valueId); + } + + /** This builder class can be used to construct a DefaultValueReferencePair bean. */ + public static class Builder + extends ValueReferencePairBuilder { @Override - public Reference getValueId() { - return valueId; + protected Builder getSelf() { + return this; } @Override - public void setValueId(Reference valueId) { - this.valueId = valueId; - } - - public String toString() { - return String.format( - "DefaultValueReferencePair (" + "value=%s," - + "valueId=%s," - + ")", - this.value, this.valueId); - } - - /** - * This builder class can be used to construct a DefaultValueReferencePair bean. - */ - public static class Builder extends ValueReferencePairBuilder { - - @Override - protected Builder getSelf() { - return this; - } - - @Override - protected DefaultValueReferencePair newBuildingInstance() { - return new DefaultValueReferencePair(); - } + protected DefaultValueReferencePair newBuildingInstance() { + return new DefaultValueReferencePair(); } + } } From 04a73f54dfb75ee7a4e6acb055d701e3a5ca9a0a Mon Sep 17 00:00:00 2001 From: Sebastian Bader Date: Mon, 8 Jun 2026 18:00:43 +0200 Subject: [PATCH 12/12] generation run on latest aas-core outputs --- .../aas4j/v3/model/AasSubmodelElements.java | 40 +-- .../aas4j/v3/model/AbstractLangString.java | 22 +- .../v3/model/AdministrativeInformation.java | 68 +++-- .../model/AnnotatedRelationshipElement.java | 22 +- .../v3/model/AssetAdministrationShell.java | 34 ++- .../AssetAdministrationShellDescriptor.java | 120 +++++---- .../aas4j/v3/model/AssetInformation.java | 50 ++-- .../digitaltwin/aas4j/v3/model/AssetKind.java | 24 +- .../aas4j/v3/model/BaseOperationResult.java | 20 +- .../aas4j/v3/model/BasicEventElement.java | 54 ++-- .../digitaltwin/aas4j/v3/model/Blob.java | 18 +- .../aas4j/v3/model/Capability.java | 6 +- .../aas4j/v3/model/ConceptDescription.java | 22 +- .../aas4j/v3/model/DataElement.java | 6 +- .../v3/model/DataSpecificationContent.java | 11 +- .../v3/model/DataSpecificationIec61360.java | 102 +++++--- .../aas4j/v3/model/DataSpecificationUom.java | 209 +++++++++++++++ .../aas4j/v3/model/DataTypeDefXsd.java | 66 ++--- .../aas4j/v3/model/DataTypeIec61360.java | 44 ++-- .../aas4j/v3/model/Descriptor.java | 52 ++-- .../digitaltwin/aas4j/v3/model/Direction.java | 10 +- .../v3/model/EmbeddedDataSpecification.java | 18 +- .../digitaltwin/aas4j/v3/model/Endpoint.java | 18 +- .../digitaltwin/aas4j/v3/model/Entity.java | 47 ++-- .../aas4j/v3/model/EntityType.java | 10 +- .../aas4j/v3/model/Environment.java | 73 ++++-- .../aas4j/v3/model/EventElement.java | 6 +- .../aas4j/v3/model/EventPayload.java | 54 ++-- .../aas4j/v3/model/ExecutionState.java | 18 +- .../digitaltwin/aas4j/v3/model/Extension.java | 40 +-- .../digitaltwin/aas4j/v3/model/File.java | 18 +- .../aas4j/v3/model/HasDataSpecification.java | 30 ++- .../aas4j/v3/model/HasExtensions.java | 22 +- .../digitaltwin/aas4j/v3/model/HasKind.java | 16 +- .../aas4j/v3/model/HasSemantics.java | 33 ++- .../aas4j/v3/model/Identifiable.java | 18 +- .../digitaltwin/aas4j/v3/model/Key.java | 18 +- .../digitaltwin/aas4j/v3/model/KeyTypes.java | 54 ++-- .../aas4j/v3/model/LangString.java | 9 +- .../LangStringDefinitionTypeIec61360.java | 6 +- .../v3/model/LangStringDefinitionTypeUom.java | 25 ++ .../aas4j/v3/model/LangStringNameType.java | 6 +- .../LangStringPreferredNameTypeIec61360.java | 6 +- .../LangStringShortNameTypeIec61360.java | 6 +- .../aas4j/v3/model/LangStringTextType.java | 6 +- .../aas4j/v3/model/LangStringUom.java | 25 ++ .../digitaltwin/aas4j/v3/model/LevelType.java | 30 +-- .../digitaltwin/aas4j/v3/model/Message.java | 51 ++-- .../aas4j/v3/model/MessageType.java | 2 + .../digitaltwin/aas4j/v3/model/ModelType.java | 44 ++-- .../aas4j/v3/model/ModellingKind.java | 10 +- .../aas4j/v3/model/MultiLanguageProperty.java | 28 ++- .../digitaltwin/aas4j/v3/model/Operation.java | 48 +++- .../aas4j/v3/model/OperationHandle.java | 27 +- .../aas4j/v3/model/OperationRequest.java | 62 +++-- .../aas4j/v3/model/OperationResult.java | 101 +++++++- .../aas4j/v3/model/OperationVariable.java | 12 +- .../aas4j/v3/model/PackageDescription.java | 28 ++- .../digitaltwin/aas4j/v3/model/Property.java | 24 +- .../aas4j/v3/model/ProtocolInformation.java | 98 ++++---- .../aas4j/v3/model/Qualifiable.java | 26 +- .../digitaltwin/aas4j/v3/model/Qualifier.java | 36 +-- .../aas4j/v3/model/QualifierKind.java | 12 +- .../digitaltwin/aas4j/v3/model/Range.java | 24 +- .../digitaltwin/aas4j/v3/model/Referable.java | 47 ++-- .../digitaltwin/aas4j/v3/model/Reference.java | 34 ++- .../aas4j/v3/model/ReferenceElement.java | 12 +- .../aas4j/v3/model/ReferenceTypes.java | 10 +- .../aas4j/v3/model/RelationshipElement.java | 18 +- .../digitaltwin/aas4j/v3/model/Resource.java | 18 +- .../digitaltwin/aas4j/v3/model/Result.java | 42 +++- .../v3/model/SecurityAttributeObject.java | 48 ++-- .../aas4j/v3/model/SecurityTypeEnum.java | 26 +- .../aas4j/v3/model/SpecificAssetId.java | 24 +- .../aas4j/v3/model/StateOfEvent.java | 10 +- .../digitaltwin/aas4j/v3/model/Submodel.java | 22 +- .../aas4j/v3/model/SubmodelDescriptor.java | 83 +++--- .../aas4j/v3/model/SubmodelElement.java | 6 +- .../v3/model/SubmodelElementAttributes.java | 12 +- .../v3/model/SubmodelElementCollection.java | 22 +- .../aas4j/v3/model/SubmodelElementList.java | 46 ++-- .../digitaltwin/aas4j/v3/model/ValueList.java | 22 +- .../aas4j/v3/model/ValueReferencePair.java | 18 +- .../aas4j/v3/model/annotations/IRI.java | 6 +- .../v3/model/annotations/KnownSubtypes.java | 6 +- .../v3/model/builder/AbstractBuilder.java | 6 +- .../AdministrativeInformationBuilder.java | 37 ++- .../AnnotatedRelationshipElementBuilder.java | 39 +-- .../AssetAdministrationShellBuilder.java | 27 +- ...tAdministrationShellDescriptorBuilder.java | 149 +++-------- .../builder/AssetInformationBuilder.java | 15 +- .../builder/BaseOperationResultBuilder.java | 30 +-- .../builder/BasicEventElementBuilder.java | 33 +-- .../aas4j/v3/model/builder/BlobBuilder.java | 33 +-- .../aas4j/v3/model/builder/Builder.java | 6 +- .../v3/model/builder/CapabilityBuilder.java | 33 +-- .../builder/ConceptDescriptionBuilder.java | 21 +- .../DataSpecificationIec61360Builder.java | 9 +- .../builder/DataSpecificationUomBuilder.java | 150 +++++++++++ .../v3/model/builder/DescriptorBuilder.java | 77 ++---- .../EmbeddedDataSpecificationBuilder.java | 6 +- .../v3/model/builder/EndpointBuilder.java | 6 +- .../aas4j/v3/model/builder/EntityBuilder.java | 45 ++-- .../v3/model/builder/EnvironmentBuilder.java | 55 ++-- .../v3/model/builder/EventPayloadBuilder.java | 6 +- .../v3/model/builder/ExtendableBuilder.java | 6 +- .../v3/model/builder/ExtensionBuilder.java | 15 +- .../aas4j/v3/model/builder/FileBuilder.java | 33 +-- .../aas4j/v3/model/builder/KeyBuilder.java | 6 +- ...ngStringDefinitionTypeIec61360Builder.java | 6 +- .../LangStringDefinitionTypeUomBuilder.java | 47 ++++ .../builder/LangStringNameTypeBuilder.java | 6 +- ...tringPreferredNameTypeIec61360Builder.java | 6 +- ...angStringShortNameTypeIec61360Builder.java | 6 +- .../builder/LangStringTextTypeBuilder.java | 6 +- .../model/builder/LangStringUomBuilder.java | 47 ++++ .../v3/model/builder/LevelTypeBuilder.java | 6 +- .../v3/model/builder/MessageBuilder.java | 21 +- .../builder/MultiLanguagePropertyBuilder.java | 33 +-- .../v3/model/builder/OperationBuilder.java | 51 ++-- .../model/builder/OperationHandleBuilder.java | 17 +- .../builder/OperationRequestBuilder.java | 44 ++-- .../model/builder/OperationResultBuilder.java | 89 ++++++- .../builder/OperationVariableBuilder.java | 6 +- .../builder/PackageDescriptionBuilder.java | 15 +- .../v3/model/builder/PropertyBuilder.java | 33 +-- .../builder/ProtocolInformationBuilder.java | 68 +++-- .../v3/model/builder/QualifierBuilder.java | 15 +- .../aas4j/v3/model/builder/RangeBuilder.java | 33 +-- .../v3/model/builder/ReferenceBuilder.java | 15 +- .../builder/ReferenceElementBuilder.java | 33 +-- .../builder/RelationshipElementBuilder.java | 33 +-- .../v3/model/builder/ResourceBuilder.java | 6 +- .../aas4j/v3/model/builder/ResultBuilder.java | 26 +- .../SecurityAttributeObjectBuilder.java | 28 ++- .../builder/SecurityTypeEnumBuilder.java | 2 + .../model/builder/SpecificAssetIdBuilder.java | 15 +- .../v3/model/builder/SubmodelBuilder.java | 39 +-- .../builder/SubmodelDescriptorBuilder.java | 126 +++------- .../SubmodelElementAttributesBuilder.java | 33 +-- .../SubmodelElementCollectionBuilder.java | 33 +-- .../builder/SubmodelElementListBuilder.java | 33 +-- .../v3/model/builder/ValueListBuilder.java | 15 +- .../builder/ValueReferencePairBuilder.java | 6 +- .../DefaultAdministrativeInformation.java | 92 +++++-- .../DefaultAnnotatedRelationshipElement.java | 115 +++++++-- .../impl/DefaultAssetAdministrationShell.java | 105 ++++++-- ...ultAssetAdministrationShellDescriptor.java | 208 +++++++-------- .../model/impl/DefaultAssetInformation.java | 65 +++-- .../impl/DefaultBaseOperationResult.java | 52 ++-- .../model/impl/DefaultBasicEventElement.java | 152 +++++++---- .../aas4j/v3/model/impl/DefaultBlob.java | 107 ++++++-- .../v3/model/impl/DefaultCapability.java | 94 +++++-- .../model/impl/DefaultConceptDescription.java | 89 +++++-- .../DefaultDataSpecificationIec61360.java | 124 +++++---- .../impl/DefaultDataSpecificationUom.java | 237 ++++++++++++++++++ .../v3/model/impl/DefaultDescriptor.java | 71 ++---- .../DefaultEmbeddedDataSpecification.java | 34 +-- .../aas4j/v3/model/impl/DefaultEndpoint.java | 31 ++- .../aas4j/v3/model/impl/DefaultEntity.java | 131 ++++++++-- .../v3/model/impl/DefaultEnvironment.java | 75 ++++-- .../v3/model/impl/DefaultEventPayload.java | 79 +++--- .../aas4j/v3/model/impl/DefaultExtension.java | 61 +++-- .../aas4j/v3/model/impl/DefaultFile.java | 105 ++++++-- .../aas4j/v3/model/impl/DefaultKey.java | 22 +- ...faultLangStringDefinitionTypeIec61360.java | 29 ++- .../DefaultLangStringDefinitionTypeUom.java | 108 ++++++++ .../model/impl/DefaultLangStringNameType.java | 29 ++- ...ltLangStringPreferredNameTypeIec61360.java | 29 ++- ...efaultLangStringShortNameTypeIec61360.java | 29 ++- .../model/impl/DefaultLangStringTextType.java | 29 ++- .../v3/model/impl/DefaultLangStringUom.java | 99 ++++++++ .../aas4j/v3/model/impl/DefaultLevelType.java | 41 ++- .../aas4j/v3/model/impl/DefaultMessage.java | 71 +++--- .../impl/DefaultMultiLanguageProperty.java | 111 ++++++-- .../aas4j/v3/model/impl/DefaultOperation.java | 130 ++++++++-- .../v3/model/impl/DefaultOperationHandle.java | 41 ++- .../model/impl/DefaultOperationRequest.java | 82 +++--- .../v3/model/impl/DefaultOperationResult.java | 120 +++++++-- .../model/impl/DefaultOperationVariable.java | 20 +- .../model/impl/DefaultPackageDescription.java | 40 ++- .../aas4j/v3/model/impl/DefaultProperty.java | 111 ++++++-- .../impl/DefaultProtocolInformation.java | 131 +++++----- .../aas4j/v3/model/impl/DefaultQualifier.java | 67 +++-- .../aas4j/v3/model/impl/DefaultRange.java | 111 ++++++-- .../aas4j/v3/model/impl/DefaultReference.java | 60 +++-- .../model/impl/DefaultReferenceElement.java | 99 ++++++-- .../impl/DefaultRelationshipElement.java | 105 ++++++-- .../aas4j/v3/model/impl/DefaultResource.java | 23 +- .../aas4j/v3/model/impl/DefaultResult.java | 43 +++- .../impl/DefaultSecurityAttributeObject.java | 60 +++-- .../model/impl/DefaultSecurityTypeEnum.java | 5 +- .../v3/model/impl/DefaultSpecificAssetId.java | 51 ++-- .../aas4j/v3/model/impl/DefaultSubmodel.java | 119 +++++++-- .../model/impl/DefaultSubmodelDescriptor.java | 172 ++++++------- .../DefaultSubmodelElementAttributes.java | 99 ++++++-- .../DefaultSubmodelElementCollection.java | 104 ++++++-- .../impl/DefaultSubmodelElementList.java | 136 +++++++--- .../aas4j/v3/model/impl/DefaultValueList.java | 26 +- .../model/impl/DefaultValueReferencePair.java | 31 ++- .../v3/model/impl/DefaultReferenceTest.java | 4 +- 201 files changed, 6203 insertions(+), 3029 deletions(-) create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationUom.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeUom.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringUom.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationUomBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeUomBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringUomBuilder.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationUom.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeUom.java create mode 100644 model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringUom.java diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java index be897a98c..7b8586c12 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AasSubmodelElements.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,70 +24,70 @@ public enum AasSubmodelElements { /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/AnnotatedRelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/BasicEventElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") BASIC_EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Blob") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") BLOB, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Capability") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") CAPABILITY, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/DataElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") DATA_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Entity") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") ENTITY, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/EventElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/File") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") FILE, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/MultiLanguageProperty") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Operation") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") OPERATION, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Property") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/Range") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") RANGE, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/ReferenceElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") REFERENCE_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/RelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") SUBMODEL_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementCollection") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, /** */ - @IRI("https://admin-shell.io/aas/3/0/AasSubmodelElements/SubmodelElementList") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementList") SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java index 4cd9bb5bd..2079c9802 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AbstractLangString.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -24,24 +26,26 @@ @KnownSubtypes.Type(value = LangStringNameType.class), @KnownSubtypes.Type(value = LangStringPreferredNameTypeIec61360.class), @KnownSubtypes.Type(value = LangStringShortNameTypeIec61360.class), - @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class) + @KnownSubtypes.Type(value = LangStringDefinitionTypeIec61360.class), + @KnownSubtypes.Type(value = LangStringUom.class), + @KnownSubtypes.Type(value = LangStringDefinitionTypeUom.class) }) public interface AbstractLangString { /** * Language tag conforming to BCP 47 * - *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/language + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/language * * @return Returns the String for the property language. */ - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") String getLanguage(); /** * Language tag conforming to BCP 47 * - *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/language + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/language * * @param language desired value for the property language. */ @@ -50,17 +54,17 @@ public interface AbstractLangString { /** * Text in the 'language' * - *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/text + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/text * * @return Returns the String for the property text. */ - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") String getText(); /** * Text in the 'language' * - *

More information under https://admin-shell.io/aas/3/0/AbstractLangString/text + *

More information under https://admin-shell.io/aas/3/2/AbstractLangString/text * * @param text desired value for the property text. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java index 3b4dd556a..9631c0eb4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AdministrativeInformation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -26,17 +28,17 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Version of the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version * * @return Returns the String for the property version. */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") String getVersion(); /** * Version of the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/version + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/version * * @param version desired value for the property version. */ @@ -45,17 +47,17 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * Revision of the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision * * @return Returns the String for the property revision. */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") String getRevision(); /** * Revision of the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/revision + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/revision * * @param revision desired value for the property revision. */ @@ -64,36 +66,74 @@ public interface AdministrativeInformation extends HasDataSpecification { /** * The subject ID of the subject responsible for making the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator * * @return Returns the Reference for the property creator. */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") Reference getCreator(); /** * The subject ID of the subject responsible for making the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/creator + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/creator * * @param creator desired value for the property creator. */ void setCreator(Reference creator); + /** + * Date of creation + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt + * + * @return Returns the String for the property createdAt. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") + String getCreatedAt(); + + /** + * Date of creation + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt + * + * @param createdAt desired value for the property createdAt. + */ + void setCreatedAt(String createdAt); + + /** + * Date of update + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt + * + * @return Returns the String for the property updatedAt. + */ + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") + String getUpdatedAt(); + + /** + * Date of update + * + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt + * + * @param updatedAt desired value for the property updatedAt. + */ + void setUpdatedAt(String updatedAt); + /** * Identifier of the template that guided the creation of the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId * * @return Returns the String for the property templateId. */ - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") String getTemplateId(); /** * Identifier of the template that guided the creation of the element. * - *

More information under https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId + *

More information under https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId * * @param templateId desired value for the property templateId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java index d5575b28f..d19c70cca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AnnotatedRelationshipElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAnnotatedRelationshipElement; +import java.util.List; + /** * An annotated relationship element is a relationship element that can be annotated with additional * data elements. @@ -32,11 +35,11 @@ public interface AnnotatedRelationshipElement extends RelationshipElement { * elements * *

More information under - * https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations + * https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations * * @return Returns the List of DataElements for the property annotations. */ - @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") List getAnnotations(); /** @@ -44,9 +47,16 @@ public interface AnnotatedRelationshipElement extends RelationshipElement { * elements * *

More information under - * https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations + * https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations * * @param annotations desired value for the property annotations. */ void setAnnotations(List annotations); + + /** + * More information under https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations + * + * @param annotation desired value to be added to the property annotations. + */ + void setAnnotation(DataElement annotation); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java index f1751e9b6..44ad7ce55 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShell.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShell; +import java.util.List; + /** An asset administration shell. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShell.class)}) public interface AssetAdministrationShell extends HasDataSpecification, Identifiable { @@ -27,17 +30,17 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * The reference to the AAS the AAS was derived from. * - *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom * * @return Returns the Reference for the property derivedFrom. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") Reference getDerivedFrom(); /** * The reference to the AAS the AAS was derived from. * - *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom * * @param derivedFrom desired value for the property derivedFrom. */ @@ -47,18 +50,18 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi * Meta-information about the asset the AAS is representing. * *

More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation + * https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation * * @return Returns the AssetInformation for the property assetInformation. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") AssetInformation getAssetInformation(); /** * Meta-information about the asset the AAS is representing. * *

More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation + * https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation * * @param assetInformation desired value for the property assetInformation. */ @@ -67,19 +70,26 @@ public interface AssetAdministrationShell extends HasDataSpecification, Identifi /** * References to submodels of the AAS. * - *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels * * @return Returns the List of References for the property submodels. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") List getSubmodels(); /** * References to submodels of the AAS. * - *

More information under https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels + *

More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels * * @param submodels desired value for the property submodels. */ void setSubmodels(List submodels); + + /** + * More information under https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels + * + * @param submodel desired value to be added to the property submodels. + */ + void setSubmodel(Reference submodel); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java index f8f1c3c6b..e5fd8023d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetAdministrationShellDescriptor.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,31 +11,34 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetAdministrationShellDescriptor; +import java.util.List; + /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultAssetAdministrationShellDescriptor.class)}) public interface AssetAdministrationShellDescriptor extends Descriptor { /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration * * @return Returns the AdministrativeInformation for the property administration. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") AdministrativeInformation getAdministration(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration * * @param administration desired value for the property administration. */ @@ -43,116 +46,101 @@ public interface AssetAdministrationShellDescriptor extends Descriptor { /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description * - * @return Returns the AssetKind for the property assetKind. + * @return Returns the LangStringTextType for the property description. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") - AssetKind getAssetKind(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") + LangStringTextType getDescription(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description * - * @param assetKind desired value for the property assetKind. + * @param description desired value for the property description. */ - void setAssetKind(AssetKind assetKind); + void setDescription(LangStringTextType description); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName * - * @return Returns the String for the property assetType. + * @return Returns the LangStringNameType for the property displayName. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") - String getAssetType(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + LangStringNameType getDisplayName(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName * - * @param assetType desired value for the property assetType. + * @param displayName desired value for the property displayName. */ - void setAssetType(String assetType); + void setDisplayName(LangStringNameType displayName); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId * - * @return Returns the List of Endpoints for the property endpoints. + * @return Returns the Reference for the property globalAssetId. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") - List getEndpoints(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + Reference getGlobalAssetId(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints - * - * @param endpoints desired value for the property endpoints. - */ - void setEndpoints(List endpoints); - - /** - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId - * - * @return Returns the String for the property globalAssetId. - */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") - String getGlobalAssetId(); - - /** - * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. */ - void setGlobalAssetId(String globalAssetId); + void setGlobalAssetId(Reference globalAssetId); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort * * @return Returns the String for the property idShort. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") String getIdShort(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort * * @param idShort desired value for the property idShort. */ void setIdShort(String idShort); /** - * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification * - * @return Returns the String for the property id. + * @return Returns the String for the property identification. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") - String getId(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") + String getIdentification(); /** - * More information under https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification * - * @param id desired value for the property id. + * @param identification desired value for the property identification. */ - void setId(String id); + void setIdentification(String identification); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") List getSpecificAssetIds(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. */ @@ -160,18 +148,26 @@ public interface AssetAdministrationShellDescriptor extends Descriptor { /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds + * + * @param specificAssetId desired value to be added to the property specificAssetIds. + */ + void setSpecificAssetId(SpecificAssetId specificAssetId); + + /** + * More information under + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors * - * @return Returns the List of SubmodelDescriptors for the property submodelDescriptors. + * @return Returns the SubmodelDescriptor for the property submodelDescriptors. */ - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") - List getSubmodelDescriptors(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") + SubmodelDescriptor getSubmodelDescriptors(); /** * More information under - * https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors + * https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors * * @param submodelDescriptors desired value for the property submodelDescriptors. */ - void setSubmodelDescriptors(List submodelDescriptors); + void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java index 39733557d..0eb30e605 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetInformation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultAssetInformation; +import java.util.List; + /** * In 'AssetInformation' identifying meta data of the asset that is represented by an AAS is * defined. @@ -28,19 +31,19 @@ public interface AssetInformation { /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * Denotes whether the Asset is of kind 'Type' or 'Instance', 'Role' or 'Batch'. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind * * @return Returns the AssetKind for the property assetKind. */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") AssetKind getAssetKind(); /** - * Denotes whether the Asset is of kind 'Type' or 'Instance'. + * Denotes whether the Asset is of kind 'Type' or 'Instance', 'Role' or 'Batch'. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetKind + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetKind * * @param assetKind desired value for the property assetKind. */ @@ -49,17 +52,17 @@ public interface AssetInformation { /** * Global identifier of the asset the AAS is representing. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId * * @return Returns the String for the property globalAssetId. */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") String getGlobalAssetId(); /** * Global identifier of the asset the AAS is representing. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. */ @@ -69,39 +72,46 @@ public interface AssetInformation { * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") List getSpecificAssetIds(); /** * Additional domain-specific, typically proprietary identifier for the asset like e.g., serial * number etc. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. */ void setSpecificAssetIds(List specificAssetIds); + /** + * More information under https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds + * + * @param specificAssetId desired value to be added to the property specificAssetIds. + */ + void setSpecificAssetId(SpecificAssetId specificAssetId); + /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the * asset under consideration as identified by 'globalAssetId'. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType * * @return Returns the String for the property assetType. */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") String getAssetType(); /** * In case 'assetKind' is applicable the 'assetType' is the asset ID of the type asset of the * asset under consideration as identified by 'globalAssetId'. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/assetType + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/assetType * * @param assetType desired value for the property assetType. */ @@ -110,17 +120,17 @@ public interface AssetInformation { /** * Thumbnail of the asset represented by the Asset Administration Shell. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail * * @return Returns the Resource for the property defaultThumbnail. */ - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") Resource getDefaultThumbnail(); /** * Thumbnail of the asset represented by the Asset Administration Shell. * - *

More information under https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail + *

More information under https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail * * @param defaultThumbnail desired value for the property defaultThumbnail. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java index 05b13ebc8..e8598d343 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/AssetKind.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,25 +11,35 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; -/** Enumeration for denoting whether an asset is a type asset or an instance asset. */ +/** Enumeration for denoting whether an asset is a type, instance, role or batch asset. */ @IRI("aas:AssetKind") public enum AssetKind { + /** Batch asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Batch") + BATCH, + /** Instance asset */ - @IRI("https://admin-shell.io/aas/3/0/AssetKind/Instance") + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Instance") INSTANCE, - /** Neither a type asset nor an instance asset */ - @IRI("https://admin-shell.io/aas/3/0/AssetKind/NotApplicable") + /** Neither a type, instance, role, nor batch asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/NotApplicable") NOT_APPLICABLE, + /** Role asset */ + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Role") + ROLE, + /** Type asset */ - @IRI("https://admin-shell.io/aas/3/0/AssetKind/Type") + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Type") TYPE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java index 630656eac..b6cd91de8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BaseOperationResult.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -21,33 +23,33 @@ /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultBaseOperationResult.class)}) -public interface BaseOperationResult extends Result { +public interface BaseOperationResult { /** - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState * * @return Returns the ExecutionState for the property executionState. */ - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") ExecutionState getExecutionState(); /** - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/executionState + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/executionState * * @param executionState desired value for the property executionState. */ void setExecutionState(ExecutionState executionState); /** - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success * * @return Returns the boolean for the property success. */ - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") boolean getSuccess(); /** - * More information under https://admin-shell.io/aas/3/0/BaseOperationResult/success + * More information under https://admin-shell.io/aas/3/2/BaseOperationResult/success * * @param success desired value for the property success. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java index 5532dd9bc..6e8c5f249 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/BasicEventElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -27,18 +29,18 @@ public interface BasicEventElement extends EventElement { * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed * * @return Returns the Reference for the property observed. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") Reference getObserved(); /** * Reference to the 'Referable', which defines the scope of the event. Can be * 'AssetAdministrationShell', 'Submodel', or 'SubmodelElement'. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/observed + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/observed * * @param observed desired value for the property observed. */ @@ -47,17 +49,17 @@ public interface BasicEventElement extends EventElement { /** * Direction of event. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction * * @return Returns the Direction for the property direction. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") Direction getDirection(); /** * Direction of event. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/direction + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/direction * * @param direction desired value for the property direction. */ @@ -66,17 +68,17 @@ public interface BasicEventElement extends EventElement { /** * State of event. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/state + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/state * * @return Returns the StateOfEvent for the property state. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") StateOfEvent getState(); /** * State of event. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/state + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/state * * @param state desired value for the property state. */ @@ -86,18 +88,18 @@ public interface BasicEventElement extends EventElement { * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic * * @return Returns the String for the property messageTopic. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") String getMessageTopic(); /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic * * @param messageTopic desired value for the property messageTopic. */ @@ -108,11 +110,11 @@ public interface BasicEventElement extends EventElement { * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker * * @return Returns the Reference for the property messageBroker. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") Reference getMessageBroker(); /** @@ -120,7 +122,7 @@ public interface BasicEventElement extends EventElement { * Refers to a 'Submodel', 'SubmodelElementList', 'SubmodelElementCollection' or 'Entity', which * contains 'DataElement''s describing the proprietary specification for the message broker. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker * * @param messageBroker desired value for the property messageBroker. */ @@ -130,18 +132,18 @@ public interface BasicEventElement extends EventElement { * Timestamp in UTC, when the last event was received (input direction) or sent (output * direction). * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate * * @return Returns the String for the property lastUpdate. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") String getLastUpdate(); /** * Timestamp in UTC, when the last event was received (input direction) or sent (output * direction). * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate * * @param lastUpdate desired value for the property lastUpdate. */ @@ -151,18 +153,18 @@ public interface BasicEventElement extends EventElement { * For input direction, reports on the maximum frequency, the software entity behind the * respective Referable can handle input events. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval * * @return Returns the String for the property minInterval. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") String getMinInterval(); /** * For input direction, reports on the maximum frequency, the software entity behind the * respective Referable can handle input events. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/minInterval + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/minInterval * * @param minInterval desired value for the property minInterval. */ @@ -171,17 +173,17 @@ public interface BasicEventElement extends EventElement { /** * For input direction: not applicable. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval * * @return Returns the String for the property maxInterval. */ - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") String getMaxInterval(); /** * For input direction: not applicable. * - *

More information under https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval + *

More information under https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval * * @param maxInterval desired value for the property maxInterval. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java index 2d89544a3..fa5a35fa6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Blob.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface Blob extends DataElement { /** * The value of the 'Blob' instance of a blob data element. * - *

More information under https://admin-shell.io/aas/3/0/Blob/value + *

More information under https://admin-shell.io/aas/3/2/Blob/value * * @return Returns the byte[] for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/Blob/value") + @IRI("https://admin-shell.io/aas/3/2/Blob/value") byte[] getValue(); /** * The value of the 'Blob' instance of a blob data element. * - *

More information under https://admin-shell.io/aas/3/0/Blob/value + *

More information under https://admin-shell.io/aas/3/2/Blob/value * * @param value desired value for the property value. */ @@ -48,17 +50,17 @@ public interface Blob extends DataElement { /** * Content type of the content of the 'Blob'. * - *

More information under https://admin-shell.io/aas/3/0/Blob/contentType + *

More information under https://admin-shell.io/aas/3/2/Blob/contentType * * @return Returns the String for the property contentType. */ - @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") String getContentType(); /** * Content type of the content of the 'Blob'. * - *

More information under https://admin-shell.io/aas/3/0/Blob/contentType + *

More information under https://admin-shell.io/aas/3/2/Blob/contentType * * @param contentType desired value for the property contentType. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java index ad53bf3c2..dec3f5f8f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Capability.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java index 54ca318b5..c1d590773 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ConceptDescription.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultConceptDescription; +import java.util.List; + /** * The semantics of a property or other elements that may have a semantic description is defined by * a concept description. @@ -30,19 +33,26 @@ public interface ConceptDescription extends HasDataSpecification, Identifiable { /** * Reference to an external definition the concept is compatible to or was derived from. * - *

More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf + *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * * @return Returns the List of References for the property isCaseOf. */ - @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") List getIsCaseOf(); /** * Reference to an external definition the concept is compatible to or was derived from. * - *

More information under https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf + *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * * @param isCaseOfs desired value for the property isCaseOf. */ void setIsCaseOf(List isCaseOfs); + + /** + * More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf + * + * @param isCaseOf desired value to be added to the property isCaseOf. + */ + void setIsCaseOf(Reference isCaseOf); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java index 8dda5b503..b9aa24a39 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java index 491e82ea0..11e825744 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationContent.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,5 +24,8 @@ * attributes shall be added to the element instance that references the data specification template * and meta information about the template itself. */ -@KnownSubtypes({@KnownSubtypes.Type(value = DataSpecificationIec61360.class)}) +@KnownSubtypes({ + @KnownSubtypes.Type(value = DataSpecificationIec61360.class), + @KnownSubtypes.Type(value = DataSpecificationUom.class) +}) public interface DataSpecificationContent {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java index 8153ea9ce..39f06ff0f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDataSpecificationIec61360; +import java.util.List; + /** * Content of data specification template for concept descriptions for properties, values and value * lists conformant to IEC 61360. @@ -31,57 +34,71 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { * Preferred name * *

More information under - * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property * preferredName. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") List getPreferredName(); /** * Preferred name * *

More information under - * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @param preferredNames desired value for the property preferredName. */ void setPreferredName(List preferredNames); + /** + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName + * + * @param preferredName desired value to be added to the property preferredName. + */ + void setPreferredName(LangStringPreferredNameTypeIec61360 preferredName); + /** * Short name * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortName. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") List getShortName(); /** * Short name * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * * @param shortNames desired value for the property shortName. */ void setShortName(List shortNames); + /** + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName + * + * @param shortName desired value to be added to the property shortName. + */ + void setShortName(LangStringShortNameTypeIec61360 shortName); + /** * Unit * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit * * @return Returns the String for the property unit. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") String getUnit(); /** * Unit * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit * * @param unit desired value for the property unit. */ @@ -90,17 +107,17 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Unique unit id * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId * * @return Returns the Reference for the property unitId. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") Reference getUnitId(); /** * Unique unit id * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId * * @param unitId desired value for the property unitId. */ @@ -110,18 +127,18 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { * Source of definition * *

More information under - * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition * * @return Returns the String for the property sourceOfDefinition. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") String getSourceOfDefinition(); /** * Source of definition * *

More information under - * https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition * * @param sourceOfDefinition desired value for the property sourceOfDefinition. */ @@ -130,17 +147,17 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Symbol * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol * * @return Returns the String for the property symbol. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") String getSymbol(); /** * Symbol * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol * * @param symbol desired value for the property symbol. */ @@ -149,17 +166,17 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Data Type * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType * * @return Returns the DataTypeIec61360 for the property dataType. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") DataTypeIec61360 getDataType(); /** * Data Type * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType * * @param dataType desired value for the property dataType. */ @@ -168,36 +185,43 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Definition in different languages * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definition. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") List getDefinition(); /** * Definition in different languages * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * * @param definitions desired value for the property definition. */ void setDefinition(List definitions); + /** + * More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition + * + * @param definition desired value to be added to the property definition. + */ + void setDefinition(LangStringDefinitionTypeIec61360 definition); + /** * Value Format * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat * * @return Returns the String for the property valueFormat. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") String getValueFormat(); /** * Value Format * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat * * @param valueFormat desired value for the property valueFormat. */ @@ -206,17 +230,17 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * List of allowed values * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList * * @return Returns the ValueList for the property valueList. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") ValueList getValueList(); /** * List of allowed values * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList * * @param valueList desired value for the property valueList. */ @@ -225,17 +249,17 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Value * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") String getValue(); /** * Value * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value * * @param value desired value for the property value. */ @@ -244,17 +268,17 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { /** * Set of levels. * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType * * @return Returns the LevelType for the property levelType. */ - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") LevelType getLevelType(); /** * Set of levels. * - *

More information under https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType * * @param levelType desired value for the property levelType. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationUom.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationUom.java new file mode 100644 index 000000000..11924205d --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataSpecificationUom.java @@ -0,0 +1,209 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDataSpecificationUom; + +import java.util.List; + +/** Content of data specification template for concept descriptions for Units of Measurement. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultDataSpecificationUom.class)}) +public interface DataSpecificationUom extends DataSpecificationContent { + + /** + * Preferred name of the unit in different languages as defined by the classification system. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredName + * + * @return Returns the List of LangStringUoms for the property preferredName. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredName") + List getPreferredName(); + + /** + * Preferred name of the unit in different languages as defined by the classification system. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredName + * + * @param preferredNames desired value for the property preferredName. + */ + void setPreferredName(List preferredNames); + + /** + * More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredName + * + * @param preferredName desired value to be added to the property preferredName. + */ + void setPreferredName(LangStringUom preferredName); + + /** + * Symbol of the unit. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/symbol + * + * @return Returns the String for the property symbol. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/symbol") + String getSymbol(); + + /** + * Symbol of the unit. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/symbol + * + * @param symbol desired value for the property symbol. + */ + void setSymbol(String symbol); + + /** + * ID of the unit defined by the classification system. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/specificUnitId + * + * @return Returns the String for the property specificUnitId. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/specificUnitId") + String getSpecificUnitId(); + + /** + * ID of the unit defined by the classification system. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/specificUnitId + * + * @param specificUnitId desired value for the property specificUnitId. + */ + void setSpecificUnitId(String specificUnitId); + + /** + * Definition of the unit in different languages. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/definition + * + * @return Returns the List of LangStringDefinitionTypeUoms for the property definition. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/definition") + List getDefinition(); + + /** + * Definition of the unit in different languages. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/definition + * + * @param definitions desired value for the property definition. + */ + void setDefinition(List definitions); + + /** + * More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/definition + * + * @param definition desired value to be added to the property definition. + */ + void setDefinition(LangStringDefinitionTypeUom definition); + + /** + * Preferred name of the unit's quantity in different languages. + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredNameQuantity + * + * @return Returns the List of LangStringUoms for the property preferredNameQuantity. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredNameQuantity") + List getPreferredNameQuantity(); + + /** + * Preferred name of the unit's quantity in different languages. + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredNameQuantity + * + * @param preferredNameQuantities desired value for the property preferredNameQuantity. + */ + void setPreferredNameQuantity(List preferredNameQuantities); + + /** + * More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredNameQuantity + * + * @param preferredNameQuantity desired value to be added to the property preferredNameQuantity. + */ + void setPreferredNameQuantity(LangStringUom preferredNameQuantity); + + /** + * ID of the unit's quantity. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/quantityId + * + * @return Returns the String for the property quantityId. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/quantityId") + String getQuantityId(); + + /** + * ID of the unit's quantity. + * + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationUom/quantityId + * + * @param quantityId desired value for the property quantityId. + */ + void setQuantityId(String quantityId); + + /** + * Name of the classification system used for the definition of units and quantities. + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystem + * + * @return Returns the String for the property classificationSystem. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystem") + String getClassificationSystem(); + + /** + * Name of the classification system used for the definition of units and quantities. + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystem + * + * @param classificationSystem desired value for the property classificationSystem. + */ + void setClassificationSystem(String classificationSystem); + + /** + * Version of the classification system used for the definition of units and quantities. + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystemVersion + * + * @return Returns the String for the property classificationSystemVersion. + */ + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystemVersion") + String getClassificationSystemVersion(); + + /** + * Version of the classification system used for the definition of units and quantities. + * + *

More information under + * https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystemVersion + * + * @param classificationSystemVersion desired value for the property classificationSystemVersion. + */ + void setClassificationSystemVersion(String classificationSystemVersion); +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java index 40d49d2fe..dd157c03f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeDefXsd.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,122 +24,122 @@ public enum DataTypeDefXsd { /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/AnyUri") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") ANY_URI, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Base64Binary") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") BASE64BINARY, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Boolean") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") BOOLEAN, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Byte") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") BYTE, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Date") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") DATE, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/DateTime") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") DATE_TIME, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Decimal") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") DECIMAL, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Double") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") DOUBLE, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Duration") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") DURATION, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Float") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") FLOAT, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GDay") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") GDAY, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonth") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") GMONTH, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GMonthDay") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") GMONTH_DAY, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYear") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") GYEAR, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/GYearMonth") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") GYEAR_MONTH, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/HexBinary") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") HEX_BINARY, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Int") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") INT, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Integer") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Long") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") LONG, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NegativeInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") NEGATIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonNegativeInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") NON_NEGATIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/NonPositiveInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") NON_POSITIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/PositiveInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") POSITIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Short") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") SHORT, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/String") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") STRING, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/Time") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") TIME, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedByte") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") UNSIGNED_BYTE, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedInt") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") UNSIGNED_INT, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedLong") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") UNSIGNED_LONG, /** */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeDefXsd/UnsignedShort") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedShort") UNSIGNED_SHORT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java index 9b443c762..4ec1d3404 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/DataTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,106 +24,106 @@ public enum DataTypeIec61360 { /** values containing the content of a file. Values may be binaries. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Blob") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Blob") BLOB, /** values representing truth of logic or Boolean algebra (TRUE, FALSE) */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Boolean") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Boolean") BOOLEAN, /** * values containing a calendar date, conformant to ISO 8601:2004 Format yyyy-mm-dd Example from * IEC 61360-1:2017: "1999-05-31" is the [DATE] representation of: "31 May 1999". */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Date") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Date") DATE, /** * values containing an address to a file. The values are of type URI and can represent an * absolute or relative path. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/File") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/File") FILE, /** * Values containing string with any sequence of characters, using the syntax of HTML5 (see W3C * Recommendation 28:2014) */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Html") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Html") HTML, /** values containing values of type INTEGER but are no currencies or measures */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCount") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCount") INTEGER_COUNT, /** values containing values of type INTEGER that are currencies */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerCurrency") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerCurrency") INTEGER_CURRENCY, /** * values containing values that are measure of type INTEGER. In addition such a value comes with * a physical unit. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/IntegerMeasure") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/IntegerMeasure") INTEGER_MEASURE, /** values conforming to ISO/IEC 11179 series global identifier sequences */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Irdi") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Irdi") IRDI, /** values containing values of type STRING conformant to Rfc 3987 */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Iri") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Iri") IRI, /** values containing values of type rational */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Rational") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Rational") RATIONAL, /** * values containing values of type rational. In addition such a value comes with a physical unit. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RationalMeasure") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RationalMeasure") RATIONAL_MEASURE, /** * values containing numbers that can be written as a terminating or non-terminating decimal; a * rational or irrational number but are no currencies or measures */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCount") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCount") REAL_COUNT, /** values containing values of type REAL that are currencies */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealCurrency") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealCurrency") REAL_CURRENCY, /** * values containing values that are measures of type REAL. In addition such a value comes with a * physical unit. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/RealMeasure") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/RealMeasure") REAL_MEASURE, /** values consisting of sequence of characters but cannot be translated into other languages */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/String") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/String") STRING, /** * values containing string but shall be represented as different string in different languages */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/StringTranslatable") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/StringTranslatable") STRING_TRANSLATABLE, /** * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the * corresponding type in xml. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Time") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Time") TIME, /** * values containing a time, conformant to ISO 8601:2004 but restricted to what is allowed in the * corresponding type in xml. */ - @IRI("https://admin-shell.io/aas/3/0/DataTypeIec61360/Timestamp") + @IRI("https://admin-shell.io/aas/3/2/DataTypeIec61360/Timestamp") TIMESTAMP; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java index 6a5e681b9..024d2fa8f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Descriptor.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultDescriptor; +import java.util.List; + /** */ @KnownSubtypes({ @KnownSubtypes.Type(value = DefaultDescriptor.class), @@ -29,47 +32,24 @@ public interface Descriptor { /** - * More information under https://admin-shell.io/aas/3/0/Descriptor/description - * - * @return Returns the List of LangStringTextTypes for the property description. - */ - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - List getDescription(); - - /** - * More information under https://admin-shell.io/aas/3/0/Descriptor/description - * - * @param descriptions desired value for the property description. - */ - void setDescription(List descriptions); - - /** - * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName - * - * @return Returns the List of LangStringNameTypes for the property displayName. - */ - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - List getDisplayName(); - - /** - * More information under https://admin-shell.io/aas/3/0/Descriptor/displayName + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints * - * @param displayNames desired value for the property displayName. + * @return Returns the List of Endpoints for the property endpoints. */ - void setDisplayName(List displayNames); + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + List getEndpoints(); /** - * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints * - * @return Returns the List of Extensions for the property extensions. + * @param endpoints desired value for the property endpoints. */ - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - List getExtensions(); + void setEndpoints(List endpoints); /** - * More information under https://admin-shell.io/aas/3/0/Descriptor/extensions + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints * - * @param extensions desired value for the property extensions. + * @param endpoint desired value to be added to the property endpoints. */ - void setExtensions(List extensions); + void setEndpoint(Endpoint endpoint); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java index 879d927b3..b1af364c1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Direction.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,10 +24,10 @@ public enum Direction { /** Input direction. */ - @IRI("https://admin-shell.io/aas/3/0/Direction/Input") + @IRI("https://admin-shell.io/aas/3/2/Direction/Input") INPUT, /** Output direction */ - @IRI("https://admin-shell.io/aas/3/0/Direction/Output") + @IRI("https://admin-shell.io/aas/3/2/Direction/Output") OUTPUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java index d6f59766e..71f9a4ef6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EmbeddedDataSpecification.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -27,18 +29,18 @@ public interface EmbeddedDataSpecification { * Reference to the data specification * *

More information under - * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification * * @return Returns the Reference for the property dataSpecification. */ - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") Reference getDataSpecification(); /** * Reference to the data specification * *

More information under - * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification * * @param dataSpecification desired value for the property dataSpecification. */ @@ -48,18 +50,18 @@ public interface EmbeddedDataSpecification { * Actual content of the data specification * *

More information under - * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent * * @return Returns the DataSpecificationContent for the property dataSpecificationContent. */ - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") DataSpecificationContent getDataSpecificationContent(); /** * Actual content of the data specification * *

More information under - * https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent + * https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent * * @param dataSpecificationContent desired value for the property dataSpecificationContent. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java index f5be0981b..98f968ff7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Endpoint.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -24,30 +26,30 @@ public interface Endpoint { /** - * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface + * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface * * @return Returns the String for the property _interface. */ - @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") String get_interface(); /** - * More information under https://admin-shell.io/aas/3/0/Endpoint/_interface + * More information under https://admin-shell.io/aas/3/2/Endpoint/_interface * * @param _interface desired value for the property _interface. */ void set_interface(String _interface); /** - * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation + * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation * * @return Returns the ProtocolInformation for the property protocolInformation. */ - @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") ProtocolInformation getProtocolInformation(); /** - * More information under https://admin-shell.io/aas/3/0/Endpoint/protocolInformation + * More information under https://admin-shell.io/aas/3/2/Endpoint/protocolInformation * * @param protocolInformation desired value for the property protocolInformation. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java index 60a13de64..5231c240b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Entity.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEntity; +import java.util.List; + /** An entity is a submodel element that is used to model entities. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEntity.class)}) public interface Entity extends SubmodelElement { @@ -28,37 +31,44 @@ public interface Entity extends SubmodelElement { * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. * - *

More information under https://admin-shell.io/aas/3/0/Entity/statements + *

More information under https://admin-shell.io/aas/3/2/Entity/statements * * @return Returns the List of SubmodelElements for the property statements. */ - @IRI("https://admin-shell.io/aas/3/0/Entity/statements") + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") List getStatements(); /** * Describes statements applicable to the entity by a set of submodel elements, typically with a * qualified value. * - *

More information under https://admin-shell.io/aas/3/0/Entity/statements + *

More information under https://admin-shell.io/aas/3/2/Entity/statements * * @param statements desired value for the property statements. */ void setStatements(List statements); + /** + * More information under https://admin-shell.io/aas/3/2/Entity/statements + * + * @param statement desired value to be added to the property statements. + */ + void setStatement(SubmodelElement statement); + /** * Describes whether the entity is a co-managed entity or a self-managed entity. * - *

More information under https://admin-shell.io/aas/3/0/Entity/entityType + *

More information under https://admin-shell.io/aas/3/2/Entity/entityType * * @return Returns the EntityType for the property entityType. */ - @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") EntityType getEntityType(); /** * Describes whether the entity is a co-managed entity or a self-managed entity. * - *

More information under https://admin-shell.io/aas/3/0/Entity/entityType + *

More information under https://admin-shell.io/aas/3/2/Entity/entityType * * @param entityType desired value for the property entityType. */ @@ -67,17 +77,17 @@ public interface Entity extends SubmodelElement { /** * Global identifier of the asset the entity is representing. * - *

More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId + *

More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId * * @return Returns the String for the property globalAssetId. */ - @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") String getGlobalAssetId(); /** * Global identifier of the asset the entity is representing. * - *

More information under https://admin-shell.io/aas/3/0/Entity/globalAssetId + *

More information under https://admin-shell.io/aas/3/2/Entity/globalAssetId * * @param globalAssetId desired value for the property globalAssetId. */ @@ -87,20 +97,27 @@ public interface Entity extends SubmodelElement { * Reference to a specific asset ID representing a supplementary identifier of the asset * represented by the Asset Administration Shell. * - *

More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds + *

More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds * * @return Returns the List of SpecificAssetIds for the property specificAssetIds. */ - @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") List getSpecificAssetIds(); /** * Reference to a specific asset ID representing a supplementary identifier of the asset * represented by the Asset Administration Shell. * - *

More information under https://admin-shell.io/aas/3/0/Entity/specificAssetIds + *

More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds * * @param specificAssetIds desired value for the property specificAssetIds. */ void setSpecificAssetIds(List specificAssetIds); + + /** + * More information under https://admin-shell.io/aas/3/2/Entity/specificAssetIds + * + * @param specificAssetId desired value to be added to the property specificAssetIds. + */ + void setSpecificAssetId(SpecificAssetId specificAssetId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java index d3384cdd6..1bf593e5f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EntityType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -25,13 +27,13 @@ public enum EntityType { * For co-managed entities there is no separate AAS. Co-managed entities need to be part of a * self-managed entity. */ - @IRI("https://admin-shell.io/aas/3/0/EntityType/CoManagedEntity") + @IRI("https://admin-shell.io/aas/3/2/EntityType/CoManagedEntity") CO_MANAGED_ENTITY, /** * Self-Managed Entities have their own AAS but can be part of the bill of material of a composite * self-managed entity. */ - @IRI("https://admin-shell.io/aas/3/0/EntityType/SelfManagedEntity") + @IRI("https://admin-shell.io/aas/3/2/EntityType/SelfManagedEntity") SELF_MANAGED_ENTITY; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java index 2e1f49b09..eba71cc29 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Environment.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultEnvironment; +import java.util.List; + /** Container for the sets of different identifiables. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultEnvironment.class)}) public interface Environment { @@ -27,58 +30,80 @@ public interface Environment { /** * Asset administration shell * - *

More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells + *

More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * * @return Returns the List of AssetAdministrationShells for the property * assetAdministrationShells. */ - @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") List getAssetAdministrationShells(); /** * Asset administration shell * - *

More information under https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells + *

More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * * @param assetAdministrationShells desired value for the property assetAdministrationShells. */ void setAssetAdministrationShells(List assetAdministrationShells); /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/0/Environment/submodels + * More information under https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells * - * @return Returns the List of Submodels for the property submodels. - */ - @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") - List getSubmodels(); - - /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/0/Environment/submodels - * - * @param submodels desired value for the property submodels. + * @param assetAdministrationShell desired value to be added to the property + * assetAdministrationShells. */ - void setSubmodels(List submodels); + void setAssetAdministrationShell(AssetAdministrationShell assetAdministrationShell); /** * Concept description * - *

More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions + *

More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions * * @return Returns the List of ConceptDescriptions for the property conceptDescriptions. */ - @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") List getConceptDescriptions(); /** * Concept description * - *

More information under https://admin-shell.io/aas/3/0/Environment/conceptDescriptions + *

More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions * * @param conceptDescriptions desired value for the property conceptDescriptions. */ void setConceptDescriptions(List conceptDescriptions); + + /** + * More information under https://admin-shell.io/aas/3/2/Environment/conceptDescriptions + * + * @param conceptDescription desired value to be added to the property conceptDescriptions. + */ + void setConceptDescription(ConceptDescription conceptDescription); + + /** + * Submodel + * + *

More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @return Returns the List of Submodels for the property submodels. + */ + @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") + List getSubmodels(); + + /** + * Submodel + * + *

More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @param submodels desired value for the property submodels. + */ + void setSubmodels(List submodels); + + /** + * More information under https://admin-shell.io/aas/3/2/Environment/submodels + * + * @param submodel desired value to be added to the property submodels. + */ + void setSubmodel(Submodel submodel); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java index 4d7379ee9..300e773ad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java index f5c135b10..6cc9de95e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/EventPayload.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -27,18 +29,18 @@ public interface EventPayload { * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/source + *

More information under https://admin-shell.io/aas/3/2/EventPayload/source * * @return Returns the Reference for the property source. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") Reference getSource(); /** * Reference to the source event element, including identification of 'AssetAdministrationShell', * 'Submodel', 'SubmodelElement''s. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/source + *

More information under https://admin-shell.io/aas/3/2/EventPayload/source * * @param source desired value for the property source. */ @@ -47,17 +49,17 @@ public interface EventPayload { /** * 'semanticId' of the source event element, if available * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId + *

More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId * * @return Returns the Reference for the property sourceSemanticId. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") Reference getSourceSemanticId(); /** * 'semanticId' of the source event element, if available * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId + *

More information under https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId * * @param sourceSemanticId desired value for the property sourceSemanticId. */ @@ -66,17 +68,17 @@ public interface EventPayload { /** * Reference to the referable, which defines the scope of the event. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference * * @return Returns the Reference for the property observableReference. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") Reference getObservableReference(); /** * Reference to the referable, which defines the scope of the event. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableReference + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableReference * * @param observableReference desired value for the property observableReference. */ @@ -85,17 +87,17 @@ public interface EventPayload { /** * 'semanticId' of the referable which defines the scope of the event, if available. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId * * @return Returns the Reference for the property observableSemanticId. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") Reference getObservableSemanticId(); /** * 'semanticId' of the referable which defines the scope of the event, if available. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId + *

More information under https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId * * @param observableSemanticId desired value for the property observableSemanticId. */ @@ -105,18 +107,18 @@ public interface EventPayload { * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/topic + *

More information under https://admin-shell.io/aas/3/2/EventPayload/topic * * @return Returns the String for the property topic. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") String getTopic(); /** * Information for the outer message infrastructure for scheduling the event to the respective * communication channel. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/topic + *

More information under https://admin-shell.io/aas/3/2/EventPayload/topic * * @param topic desired value for the property topic. */ @@ -125,17 +127,17 @@ public interface EventPayload { /** * Subject, who/which initiated the creation. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId + *

More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId * * @return Returns the Reference for the property subjectId. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") Reference getSubjectId(); /** * Subject, who/which initiated the creation. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/subjectId + *

More information under https://admin-shell.io/aas/3/2/EventPayload/subjectId * * @param subjectId desired value for the property subjectId. */ @@ -144,17 +146,17 @@ public interface EventPayload { /** * Timestamp in UTC, when this event was triggered. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp + *

More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp * * @return Returns the String for the property timeStamp. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") String getTimeStamp(); /** * Timestamp in UTC, when this event was triggered. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/timeStamp + *

More information under https://admin-shell.io/aas/3/2/EventPayload/timeStamp * * @param timeStamp desired value for the property timeStamp. */ @@ -163,17 +165,17 @@ public interface EventPayload { /** * Event specific payload. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/payload + *

More information under https://admin-shell.io/aas/3/2/EventPayload/payload * * @return Returns the byte[] for the property payload. */ - @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") byte[] getPayload(); /** * Event specific payload. * - *

More information under https://admin-shell.io/aas/3/0/EventPayload/payload + *

More information under https://admin-shell.io/aas/3/2/EventPayload/payload * * @param payload desired value for the property payload. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java index 627dd307d..352176b42 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ExecutionState.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,26 +24,26 @@ public enum ExecutionState { /** */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Canceled") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") CANCELED, /** */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Completed") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") COMPLETED, /** */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Failed") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") FAILED, /** */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Initiated") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") INITIATED, /** */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Running") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") RUNNING, /** */ - @IRI("https://admin-shell.io/aas/3/0/ExecutionState/Timeout") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Timeout") TIMEOUT; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java index 101c2255e..19ae3c95f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Extension.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultExtension; +import java.util.List; + /** Single extension of an element. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultExtension.class)}) public interface Extension extends HasSemantics { @@ -27,17 +30,17 @@ public interface Extension extends HasSemantics { /** * Name of the extension. * - *

More information under https://admin-shell.io/aas/3/0/Extension/name + *

More information under https://admin-shell.io/aas/3/2/Extension/name * * @return Returns the String for the property name. */ - @IRI("https://admin-shell.io/aas/3/0/Extension/name") + @IRI("https://admin-shell.io/aas/3/2/Extension/name") String getName(); /** * Name of the extension. * - *

More information under https://admin-shell.io/aas/3/0/Extension/name + *

More information under https://admin-shell.io/aas/3/2/Extension/name * * @param name desired value for the property name. */ @@ -46,17 +49,17 @@ public interface Extension extends HasSemantics { /** * Type of the value of the extension. * - *

More information under https://admin-shell.io/aas/3/0/Extension/valueType + *

More information under https://admin-shell.io/aas/3/2/Extension/valueType * * @return Returns the DataTypeDefXsd for the property valueType. */ - @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") DataTypeDefXsd getValueType(); /** * Type of the value of the extension. * - *

More information under https://admin-shell.io/aas/3/0/Extension/valueType + *

More information under https://admin-shell.io/aas/3/2/Extension/valueType * * @param valueType desired value for the property valueType. */ @@ -65,17 +68,17 @@ public interface Extension extends HasSemantics { /** * Value of the extension * - *

More information under https://admin-shell.io/aas/3/0/Extension/value + *

More information under https://admin-shell.io/aas/3/2/Extension/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/Extension/value") + @IRI("https://admin-shell.io/aas/3/2/Extension/value") String getValue(); /** * Value of the extension * - *

More information under https://admin-shell.io/aas/3/0/Extension/value + *

More information under https://admin-shell.io/aas/3/2/Extension/value * * @param value desired value for the property value. */ @@ -84,19 +87,26 @@ public interface Extension extends HasSemantics { /** * Reference to an element the extension refers to. * - *

More information under https://admin-shell.io/aas/3/0/Extension/refersTo + *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo * * @return Returns the List of References for the property refersTo. */ - @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") + @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") List getRefersTo(); /** * Reference to an element the extension refers to. * - *

More information under https://admin-shell.io/aas/3/0/Extension/refersTo + *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo * * @param refersTos desired value for the property refersTo. */ void setRefersTo(List refersTos); + + /** + * More information under https://admin-shell.io/aas/3/2/Extension/refersTo + * + * @param refersTo desired value to be added to the property refersTo. + */ + void setRefersTo(Reference refersTo); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java index cde883615..6dd4feb8c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/File.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -26,17 +28,17 @@ public interface File extends DataElement { /** * Path and name of the referenced file (with file extension). * - *

More information under https://admin-shell.io/aas/3/0/File/value + *

More information under https://admin-shell.io/aas/3/2/File/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/File/value") + @IRI("https://admin-shell.io/aas/3/2/File/value") String getValue(); /** * Path and name of the referenced file (with file extension). * - *

More information under https://admin-shell.io/aas/3/0/File/value + *

More information under https://admin-shell.io/aas/3/2/File/value * * @param value desired value for the property value. */ @@ -45,17 +47,17 @@ public interface File extends DataElement { /** * Content type of the content of the file. * - *

More information under https://admin-shell.io/aas/3/0/File/contentType + *

More information under https://admin-shell.io/aas/3/2/File/contentType * * @return Returns the String for the property contentType. */ - @IRI("https://admin-shell.io/aas/3/0/File/contentType") + @IRI("https://admin-shell.io/aas/3/2/File/contentType") String getContentType(); /** * Content type of the content of the file. * - *

More information under https://admin-shell.io/aas/3/0/File/contentType + *

More information under https://admin-shell.io/aas/3/2/File/contentType * * @param contentType desired value for the property contentType. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java index 83bde45b1..828827626 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasDataSpecification.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,22 +11,25 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import java.util.List; + /** Element that can be extended by using data specification templates. */ @KnownSubtypes({ @KnownSubtypes.Type(value = AdministrativeInformation.class), - @KnownSubtypes.Type(value = SubmodelElementAttributes.class), @KnownSubtypes.Type(value = AssetAdministrationShell.class), @KnownSubtypes.Type(value = ConceptDescription.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface HasDataSpecification { @@ -34,21 +37,30 @@ public interface HasDataSpecification { * Embedded data specification. * *

More information under - * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications * * @return Returns the List of EmbeddedDataSpecifications for the property * embeddedDataSpecifications. */ - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") List getEmbeddedDataSpecifications(); /** * Embedded data specification. * *

More information under - * https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications * * @param embeddedDataSpecifications desired value for the property embeddedDataSpecifications. */ void setEmbeddedDataSpecifications(List embeddedDataSpecifications); + + /** + * More information under + * https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications + * + * @param embeddedDataSpecification desired value to be added to the property + * embeddedDataSpecifications. + */ + void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java index 3e7bceb28..5423b1489 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasExtensions.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,17 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import java.util.List; + /** Element that can be extended by proprietary extensions. */ @KnownSubtypes({@KnownSubtypes.Type(value = Referable.class)}) public interface HasExtensions { @@ -26,19 +29,26 @@ public interface HasExtensions { /** * An extension of the element. * - *

More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions + *

More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions * * @return Returns the List of Extensions for the property extensions. */ - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") List getExtensions(); /** * An extension of the element. * - *

More information under https://admin-shell.io/aas/3/0/HasExtensions/extensions + *

More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions * * @param extensions desired value for the property extensions. */ void setExtensions(List extensions); + + /** + * More information under https://admin-shell.io/aas/3/2/HasExtensions/extensions + * + * @param extension desired value to be added to the property extensions. + */ + void setExtension(Extension extension); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java index 03b686c3a..44864b393 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasKind.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -23,19 +25,19 @@ public interface HasKind { /** - * Kind of the element: either type or instance. + * Kind of the element: either template or instance. * - *

More information under https://admin-shell.io/aas/3/0/HasKind/kind + *

More information under https://admin-shell.io/aas/3/2/HasKind/kind * * @return Returns the ModellingKind for the property kind. */ - @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") ModellingKind getKind(); /** - * Kind of the element: either type or instance. + * Kind of the element: either template or instance. * - *

More information under https://admin-shell.io/aas/3/0/HasKind/kind + *

More information under https://admin-shell.io/aas/3/2/HasKind/kind * * @param kind desired value for the property kind. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java index d2f7587d8..f6b9bd788 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/HasSemantics.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,21 +11,24 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import java.util.List; + /** Element that can have a semantic definition plus some supplemental semantic definitions. */ @KnownSubtypes({ @KnownSubtypes.Type(value = SpecificAssetId.class), - @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = Submodel.class), @KnownSubtypes.Type(value = SubmodelElementAttributes.class), @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class), + @KnownSubtypes.Type(value = Extension.class), @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { @@ -34,18 +37,18 @@ public interface HasSemantics { * Identifier of the semantic definition of the element. It is called semantic ID of the element * or also main semantic ID of the element. * - *

More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @return Returns the Reference for the property semanticId. */ - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") Reference getSemanticId(); /** * Identifier of the semantic definition of the element. It is called semantic ID of the element * or also main semantic ID of the element. * - *

More information under https://admin-shell.io/aas/3/0/HasSemantics/semanticId + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @param semanticId desired value for the property semanticId. */ @@ -55,20 +58,28 @@ public interface HasSemantics { * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. * - *

More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds * * @return Returns the List of References for the property supplementalSemanticIds. */ - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") List getSupplementalSemanticIds(); /** * Identifier of a supplemental semantic definition of the element. It is called supplemental * semantic ID of the element. * - *

More information under https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds * * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. */ void setSupplementalSemanticIds(List supplementalSemanticIds); + + /** + * More information under https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds + * + * @param supplementalSemanticId desired value to be added to the property + * supplementalSemanticIds. + */ + void setSupplementalSemanticId(Reference supplementalSemanticId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java index 7a6a679d8..a7ec41f66 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Identifiable.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface Identifiable extends Referable { /** * Administrative information of an identifiable element. * - *

More information under https://admin-shell.io/aas/3/0/Identifiable/administration + *

More information under https://admin-shell.io/aas/3/2/Identifiable/administration * * @return Returns the AdministrativeInformation for the property administration. */ - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") AdministrativeInformation getAdministration(); /** * Administrative information of an identifiable element. * - *

More information under https://admin-shell.io/aas/3/0/Identifiable/administration + *

More information under https://admin-shell.io/aas/3/2/Identifiable/administration * * @param administration desired value for the property administration. */ @@ -48,17 +50,17 @@ public interface Identifiable extends Referable { /** * The globally unique identification of the element. * - *

More information under https://admin-shell.io/aas/3/0/Identifiable/id + *

More information under https://admin-shell.io/aas/3/2/Identifiable/id * * @return Returns the String for the property id. */ - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") String getId(); /** * The globally unique identification of the element. * - *

More information under https://admin-shell.io/aas/3/0/Identifiable/id + *

More information under https://admin-shell.io/aas/3/2/Identifiable/id * * @param id desired value for the property id. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java index ce177a620..05b85fc9f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Key.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -26,17 +28,17 @@ public interface Key { /** * Denotes which kind of entity is referenced. * - *

More information under https://admin-shell.io/aas/3/0/Key/type + *

More information under https://admin-shell.io/aas/3/2/Key/type * * @return Returns the KeyTypes for the property type. */ - @IRI("https://admin-shell.io/aas/3/0/Key/type") + @IRI("https://admin-shell.io/aas/3/2/Key/type") KeyTypes getType(); /** * Denotes which kind of entity is referenced. * - *

More information under https://admin-shell.io/aas/3/0/Key/type + *

More information under https://admin-shell.io/aas/3/2/Key/type * * @param type desired value for the property type. */ @@ -45,17 +47,17 @@ public interface Key { /** * The key value, for example an IRDI or an URI * - *

More information under https://admin-shell.io/aas/3/0/Key/value + *

More information under https://admin-shell.io/aas/3/2/Key/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/Key/value") + @IRI("https://admin-shell.io/aas/3/2/Key/value") String getValue(); /** * The key value, for example an IRDI or an URI * - *

More information under https://admin-shell.io/aas/3/0/Key/value + *

More information under https://admin-shell.io/aas/3/2/Key/value * * @param value desired value for the property value. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java index 9e7983b78..f6d0515e6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/KeyTypes.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,98 +24,98 @@ public enum KeyTypes { /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AnnotatedRelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/BasicEventElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") BASIC_EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Blob") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") BLOB, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Capability") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") CAPABILITY, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ConceptDescription") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") CONCEPT_DESCRIPTION, /** Data element. */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/DataElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") DATA_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Entity") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") ENTITY, /** Event. */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/EventElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/File") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/File") FILE, /** Bookmark or a similar local identifier of a subordinate part of a primary resource */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/FragmentReference") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") FRAGMENT_REFERENCE, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") GLOBAL_REFERENCE, /** Identifiable. */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Identifiable") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Identifiable") IDENTIFIABLE, /** Property with a value that can be provided in multiple languages */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/MultiLanguageProperty") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Operation") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") OPERATION, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Property") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Property") PROPERTY, /** Range with min and max */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Range") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") RANGE, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Referable") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") REFERABLE, /** Reference */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/ReferenceElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ReferenceElement") REFERENCE_ELEMENT, /** Relationship */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/RelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/Submodel") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") SUBMODEL, /** Submodel Element */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElement") SUBMODEL_ELEMENT, /** Struct of Submodel Elements */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementCollection") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, /** List of Submodel Elements */ - @IRI("https://admin-shell.io/aas/3/0/KeyTypes/SubmodelElementList") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/SubmodelElementList") SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java index 4271a9388..fa604363c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,16 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; + import java.io.Serializable; import java.util.Objects; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; @IRI("rdf:langString") public class LangString implements Serializable { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java index 5a88a50cd..8a22066a4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeUom.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeUom.java new file mode 100644 index 000000000..6fd30b9c2 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringDefinitionTypeUom.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringDefinitionTypeUom; + +/** Definition string with language tag, maximum length 2048 and minimum length 1. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringDefinitionTypeUom.class)}) +public interface LangStringDefinitionTypeUom extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java index 8b8246f31..cc7bfd745 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringNameType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java index 08093b1db..629e6dbc6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringPreferredNameTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java index 41a8a3dd6..6bc6c4dfc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringShortNameTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java index 22129354b..22a2d4b48 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringTextType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringUom.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringUom.java new file mode 100644 index 000000000..fe2d5cf10 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangStringUom.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model; + +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultLangStringUom; + +/** String with language tag, maximum length 256 and minimum length 1. */ +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultLangStringUom.class)}) +public interface LangStringUom extends AbstractLangString {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java index 5cac25173..987a94553 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LevelType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface LevelType { /** * Minimum of the value * - *

More information under https://admin-shell.io/aas/3/0/LevelType/min + *

More information under https://admin-shell.io/aas/3/2/LevelType/min * * @return Returns the boolean for the property min. */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/min") + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") boolean getMin(); /** * Minimum of the value * - *

More information under https://admin-shell.io/aas/3/0/LevelType/min + *

More information under https://admin-shell.io/aas/3/2/LevelType/min * * @param min desired value for the property min. */ @@ -48,17 +50,17 @@ public interface LevelType { /** * Nominal value (value as designated) * - *

More information under https://admin-shell.io/aas/3/0/LevelType/nom + *

More information under https://admin-shell.io/aas/3/2/LevelType/nom * * @return Returns the boolean for the property nom. */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") boolean getNom(); /** * Nominal value (value as designated) * - *

More information under https://admin-shell.io/aas/3/0/LevelType/nom + *

More information under https://admin-shell.io/aas/3/2/LevelType/nom * * @param nom desired value for the property nom. */ @@ -67,17 +69,17 @@ public interface LevelType { /** * Value as typically present * - *

More information under https://admin-shell.io/aas/3/0/LevelType/typ + *

More information under https://admin-shell.io/aas/3/2/LevelType/typ * * @return Returns the boolean for the property typ. */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") + @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") boolean getTyp(); /** * Value as typically present * - *

More information under https://admin-shell.io/aas/3/0/LevelType/typ + *

More information under https://admin-shell.io/aas/3/2/LevelType/typ * * @param typ desired value for the property typ. */ @@ -86,17 +88,17 @@ public interface LevelType { /** * Maximum of the value * - *

More information under https://admin-shell.io/aas/3/0/LevelType/max + *

More information under https://admin-shell.io/aas/3/2/LevelType/max * * @return Returns the boolean for the property max. */ - @IRI("https://admin-shell.io/aas/3/0/LevelType/max") + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") boolean getMax(); /** * Maximum of the value * - *

More information under https://admin-shell.io/aas/3/0/LevelType/max + *

More information under https://admin-shell.io/aas/3/2/LevelType/max * * @param max desired value for the property max. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java index d3a1afbc7..f1f9db8bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Message.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -24,75 +26,60 @@ public interface Message { /** - * More information under https://admin-shell.io/aas/3/0/Message/code + * More information under https://admin-shell.io/aas/3/2/Message/code * * @return Returns the String for the property code. */ - @IRI("https://admin-shell.io/aas/3/0/Message/code") + @IRI("https://admin-shell.io/aas/3/2/Message/code") String getCode(); /** - * More information under https://admin-shell.io/aas/3/0/Message/code + * More information under https://admin-shell.io/aas/3/2/Message/code * * @param code desired value for the property code. */ void setCode(String code); /** - * More information under https://admin-shell.io/aas/3/0/Message/correlationId - * - * @return Returns the String for the property correlationId. - */ - @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") - String getCorrelationId(); - - /** - * More information under https://admin-shell.io/aas/3/0/Message/correlationId - * - * @param correlationId desired value for the property correlationId. - */ - void setCorrelationId(String correlationId); - - /** - * More information under https://admin-shell.io/aas/3/0/Message/messageType + * More information under https://admin-shell.io/aas/3/2/Message/messageType * - * @return Returns the MessageTypeEnum for the property messageType. + * @return Returns the MessageType for the property messageType. */ - @IRI("https://admin-shell.io/aas/3/0/Message/messageType") - MessageTypeEnum getMessageType(); + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") + MessageType getMessageType(); /** - * More information under https://admin-shell.io/aas/3/0/Message/messageType + * More information under https://admin-shell.io/aas/3/2/Message/messageType * * @param messageType desired value for the property messageType. */ - void setMessageType(MessageTypeEnum messageType); + void setMessageType(MessageType messageType); /** - * More information under https://admin-shell.io/aas/3/0/Message/text + * More information under https://admin-shell.io/aas/3/2/Message/text * * @return Returns the String for the property text. */ - @IRI("https://admin-shell.io/aas/3/0/Message/text") + @IRI("https://admin-shell.io/aas/3/2/Message/text") String getText(); /** - * More information under https://admin-shell.io/aas/3/0/Message/text + * More information under https://admin-shell.io/aas/3/2/Message/text * * @param text desired value for the property text. */ void setText(String text); /** - * More information under https://admin-shell.io/aas/3/0/Message/timestamp + * More information under https://admin-shell.io/aas/3/2/Message/timestamp * * @return Returns the String for the property timestamp. */ - @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") String getTimestamp(); /** - * More information under https://admin-shell.io/aas/3/0/Message/timestamp + * More information under https://admin-shell.io/aas/3/2/Message/timestamp * * @param timestamp desired value for the property timestamp. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java index 1a1df99e5..c6967cee9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MessageType.java @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java index 202e529cb..568f2be66 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModelType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,78 +24,78 @@ public enum ModelType { /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/AnnotatedRelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/AssetAdministrationShell") + @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/BasicEventElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") BASIC_EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Blob") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") BLOB, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Capability") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") CAPABILITY, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/ConceptDescription") + @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") CONCEPT_DESCRIPTION, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Entity") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") ENTITY, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/File") + @IRI("https://admin-shell.io/aas/3/2/ModelType/File") FILE, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/MultiLanguageProperty") + @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Operation") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") OPERATION, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Property") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Qualifier") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") QUALIFIER, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Range") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") RANGE, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Reference") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") REFERENCE, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/ReferenceElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") REFERENCE_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/RelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/Submodel") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") SUBMODEL, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementCollection") + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, /** */ - @IRI("https://admin-shell.io/aas/3/0/ModelType/SubmodelElementList") + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementList") SUBMODEL_ELEMENT_LIST; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java index fcb63bf3c..cd6505fc3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ModellingKind.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -25,13 +27,13 @@ public enum ModellingKind { * Concrete, clearly identifiable element instance. Its creation and validation may be guided by a * corresponding element template. */ - @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Instance") + @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Instance") INSTANCE, /** * Specification of the common features of a structured element in sufficient detail that such a * instance can be instantiated using it */ - @IRI("https://admin-shell.io/aas/3/0/ModellingKind/Template") + @IRI("https://admin-shell.io/aas/3/2/ModellingKind/Template") TEMPLATE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java index 201a35ec7..6f3773aaa 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/MultiLanguageProperty.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultMultiLanguageProperty; +import java.util.List; + /** A property is a data element that has a multi-language value. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultMultiLanguageProperty.class)}) public interface MultiLanguageProperty extends DataElement { @@ -27,36 +30,43 @@ public interface MultiLanguageProperty extends DataElement { /** * The value of the property instance. * - *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * * @return Returns the List of LangStringTextTypes for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") List getValue(); /** * The value of the property instance. * - *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/value + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * * @param values desired value for the property value. */ void setValue(List values); + /** + * More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value + * + * @param value desired value to be added to the property value. + */ + void setValue(LangStringTextType value); + /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId * * @return Returns the Reference for the property valueId. */ - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") Reference getValueId(); /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId * * @param valueId desired value for the property valueId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java index b0c9f2b4e..daf45de66 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Operation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperation; +import java.util.List; + /** An operation is a submodel element with input and output variables. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperation.class)}) public interface Operation extends SubmodelElement { @@ -27,57 +30,78 @@ public interface Operation extends SubmodelElement { /** * Input parameter of the operation. * - *

More information under https://admin-shell.io/aas/3/0/Operation/inputVariables + *

More information under https://admin-shell.io/aas/3/2/Operation/inputVariables * * @return Returns the List of OperationVariables for the property inputVariables. */ - @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") List getInputVariables(); /** * Input parameter of the operation. * - *

More information under https://admin-shell.io/aas/3/0/Operation/inputVariables + *

More information under https://admin-shell.io/aas/3/2/Operation/inputVariables * * @param inputVariables desired value for the property inputVariables. */ void setInputVariables(List inputVariables); + /** + * More information under https://admin-shell.io/aas/3/2/Operation/inputVariables + * + * @param inputVariable desired value to be added to the property inputVariables. + */ + void setInputVariable(OperationVariable inputVariable); + /** * Output parameter of the operation. * - *

More information under https://admin-shell.io/aas/3/0/Operation/outputVariables + *

More information under https://admin-shell.io/aas/3/2/Operation/outputVariables * * @return Returns the List of OperationVariables for the property outputVariables. */ - @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") List getOutputVariables(); /** * Output parameter of the operation. * - *

More information under https://admin-shell.io/aas/3/0/Operation/outputVariables + *

More information under https://admin-shell.io/aas/3/2/Operation/outputVariables * * @param outputVariables desired value for the property outputVariables. */ void setOutputVariables(List outputVariables); + /** + * More information under https://admin-shell.io/aas/3/2/Operation/outputVariables + * + * @param outputVariable desired value to be added to the property outputVariables. + */ + void setOutputVariable(OperationVariable outputVariable); + /** * Parameter that is input and output of the operation. * - *

More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables + *

More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables * * @return Returns the List of OperationVariables for the property inoutputVariables. */ - @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") List getInoutputVariables(); /** * Parameter that is input and output of the operation. * - *

More information under https://admin-shell.io/aas/3/0/Operation/inoutputVariables + *

More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables * * @param inoutputVariables desired value for the property inoutputVariables. */ void setInoutputVariables(List inoutputVariables); + + /** + * More information under https://admin-shell.io/aas/3/2/Operation/inoutputVariables + * + * @param inoutputVariable desired value to be added to the property inoutputVariables. + */ + void setInoutputVariable(OperationVariable inoutputVariable); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java index 10a5ed330..2545cf3b0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationHandle.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -24,17 +26,32 @@ public interface OperationHandle { /** - * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId + * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId * * @return Returns the String for the property handleId. */ - @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") String getHandleId(); /** - * More information under https://admin-shell.io/aas/3/0/OperationHandle/handleId + * More information under https://admin-shell.io/aas/3/2/OperationHandle/handleId * * @param handleId desired value for the property handleId. */ void setHandleId(String handleId); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId + * + * @return Returns the String for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") + String getRequestId(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationHandle/requestId + * + * @param requestId desired value for the property requestId. + */ + void setRequestId(String requestId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java index 037261b84..a8f4c57f8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationRequest.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,61 +11,79 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationRequest; +import java.math.BigInteger; + /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) public interface OperationRequest { /** - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments * - * @return Returns the List of OperationVariables for the property inoutputArguments. + * @return Returns the OperationVariable for the property inoutputArguments. */ - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") - List getInoutputArguments(); + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + OperationVariable getInoutputArguments(); /** - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments * * @param inoutputArguments desired value for the property inoutputArguments. */ - void setInoutputArguments(List inoutputArguments); + void setInoutputArguments(OperationVariable inoutputArguments); /** - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments * - * @return Returns the List of OperationVariables for the property inputArguments. + * @return Returns the OperationVariable for the property inputArguments. */ - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") - List getInputArguments(); + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") + OperationVariable getInputArguments(); /** - * More information under https://admin-shell.io/aas/3/0/OperationRequest/inputArguments + * More information under https://admin-shell.io/aas/3/2/OperationRequest/inputArguments * * @param inputArguments desired value for the property inputArguments. */ - void setInputArguments(List inputArguments); + void setInputArguments(OperationVariable inputArguments); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId + * + * @return Returns the String for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") + String getRequestId(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationRequest/requestId + * + * @param requestId desired value for the property requestId. + */ + void setRequestId(String requestId); /** - * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration + * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout * - * @return Returns the String for the property clientTimeoutDuration. + * @return Returns the BigInteger for the property timeout. */ - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") - String getClientTimeoutDuration(); + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + BigInteger getTimeout(); /** - * More information under https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration + * More information under https://admin-shell.io/aas/3/2/OperationRequest/timeout * - * @param clientTimeoutDuration desired value for the property clientTimeoutDuration. + * @param timeout desired value for the property timeout. */ - void setClientTimeoutDuration(String clientTimeoutDuration); + void setTimeout(BigInteger timeout); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java index d6e4b6e0d..b30cc9651 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationResult.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,46 +11,129 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultOperationResult; +import java.util.List; + /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationResult.class)}) public interface OperationResult { /** - * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @return Returns the List of Results for the property executionResult. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + List getExecutionResult(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @param executionResults desired value for the property executionResult. + */ + void setExecutionResult(List executionResults); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionResult + * + * @param executionResult desired value to be added to the property executionResult. + */ + void setExecutionResult(Result executionResult); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @return Returns the List of ExecutionStates for the property executionState. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + List getExecutionState(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @param executionStates desired value for the property executionState. + */ + void setExecutionState(List executionStates); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/executionState + * + * @param executionState desired value to be added to the property executionState. + */ + void setExecutionState(ExecutionState executionState); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments * * @return Returns the List of OperationVariables for the property inoutputArguments. */ - @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") List getInoutputArguments(); /** - * More information under https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments * * @param inoutputArguments desired value for the property inoutputArguments. */ void setInoutputArguments(List inoutputArguments); /** - * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments + * More information under https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments + * + * @param inoutputArgument desired value to be added to the property inoutputArguments. + */ + void setInoutputArgument(OperationVariable inoutputArgument); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments * * @return Returns the List of OperationVariables for the property outputArguments. */ - @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") List getOutputArguments(); /** - * More information under https://admin-shell.io/aas/3/0/OperationResult/outputArguments + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments * * @param outputArguments desired value for the property outputArguments. */ void setOutputArguments(List outputArguments); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/outputArguments + * + * @param outputArgument desired value to be added to the property outputArguments. + */ + void setOutputArgument(OperationVariable outputArgument); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @return Returns the List of Strings for the property requestId. + */ + @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") + List getRequestId(); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @param requestIds desired value for the property requestId. + */ + void setRequestId(List requestIds); + + /** + * More information under https://admin-shell.io/aas/3/2/OperationResult/requestId + * + * @param requestId desired value to be added to the property requestId. + */ + void setRequestId(String requestId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java index e6523955d..92febf1a6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/OperationVariable.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface OperationVariable { /** * Describes an argument or result of an operation via a submodel element * - *

More information under https://admin-shell.io/aas/3/0/OperationVariable/value + *

More information under https://admin-shell.io/aas/3/2/OperationVariable/value * * @return Returns the SubmodelElement for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") + @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") SubmodelElement getValue(); /** * Describes an argument or result of an operation via a submodel element * - *

More information under https://admin-shell.io/aas/3/0/OperationVariable/value + *

More information under https://admin-shell.io/aas/3/2/OperationVariable/value * * @param value desired value for the property value. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java index 07f66e670..2409f1704 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/PackageDescription.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,44 +11,54 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultPackageDescription; +import java.util.List; + /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultPackageDescription.class)}) public interface PackageDescription { /** - * More information under https://admin-shell.io/aas/3/0/PackageDescription/items + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items * * @return Returns the List of Strings for the property items. */ - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") List getItems(); /** - * More information under https://admin-shell.io/aas/3/0/PackageDescription/items + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items * * @param items desired value for the property items. */ void setItems(List items); /** - * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items + * + * @param item desired value to be added to the property items. + */ + void setItem(String item); + + /** + * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId * * @return Returns the String for the property packageId. */ - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") String getPackageId(); /** - * More information under https://admin-shell.io/aas/3/0/PackageDescription/packageId + * More information under https://admin-shell.io/aas/3/2/PackageDescription/packageId * * @param packageId desired value for the property packageId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java index cbfbd17c5..1427f7086 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Property.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -26,17 +28,17 @@ public interface Property extends DataElement { /** * Data type of the value * - *

More information under https://admin-shell.io/aas/3/0/Property/valueType + *

More information under https://admin-shell.io/aas/3/2/Property/valueType * * @return Returns the DataTypeDefXsd for the property valueType. */ - @IRI("https://admin-shell.io/aas/3/0/Property/valueType") + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") DataTypeDefXsd getValueType(); /** * Data type of the value * - *

More information under https://admin-shell.io/aas/3/0/Property/valueType + *

More information under https://admin-shell.io/aas/3/2/Property/valueType * * @param valueType desired value for the property valueType. */ @@ -45,17 +47,17 @@ public interface Property extends DataElement { /** * The value of the property instance. * - *

More information under https://admin-shell.io/aas/3/0/Property/value + *

More information under https://admin-shell.io/aas/3/2/Property/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/Property/value") + @IRI("https://admin-shell.io/aas/3/2/Property/value") String getValue(); /** * The value of the property instance. * - *

More information under https://admin-shell.io/aas/3/0/Property/value + *

More information under https://admin-shell.io/aas/3/2/Property/value * * @param value desired value for the property value. */ @@ -64,17 +66,17 @@ public interface Property extends DataElement { /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/0/Property/valueId + *

More information under https://admin-shell.io/aas/3/2/Property/valueId * * @return Returns the Reference for the property valueId. */ - @IRI("https://admin-shell.io/aas/3/0/Property/valueId") + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") Reference getValueId(); /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/0/Property/valueId + *

More information under https://admin-shell.io/aas/3/2/Property/valueId * * @param valueId desired value for the property valueId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java index 574621c3f..72cc3de5c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ProtocolInformation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,44 +11,47 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultProtocolInformation; +import java.util.List; + /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultProtocolInformation.class)}) public interface ProtocolInformation { /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress * - * @return Returns the String for the property href. + * @return Returns the String for the property endpointAddress. */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") - String getHref(); + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") + String getEndpointAddress(); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/href + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress * - * @param href desired value for the property href. + * @param endpointAddress desired value for the property endpointAddress. */ - void setHref(String href); + void setEndpointAddress(String endpointAddress); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol * * @return Returns the String for the property endpointProtocol. */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") String getEndpointProtocol(); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol * * @param endpointProtocol desired value for the property endpointProtocol. */ @@ -56,46 +59,68 @@ public interface ProtocolInformation { /** * More information under - * https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion + * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion * - * @return Returns the List of Strings for the property endpointProtocolVersion. + * @return Returns the String for the property endpointProtocolVersion. */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") - List getEndpointProtocolVersion(); + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") + String getEndpointProtocolVersion(); /** * More information under - * https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion + * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion + * + * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. + */ + void setEndpointProtocolVersion(String endpointProtocolVersion); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes + * + * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. + */ + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") + List getSecurityAttributes(); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes + * + * @param securityAttributes desired value for the property securityAttributes. + */ + void setSecurityAttributes(List securityAttributes); + + /** + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes * - * @param endpointProtocolVersions desired value for the property endpointProtocolVersion. + * @param securityAttribute desired value to be added to the property securityAttributes. */ - void setEndpointProtocolVersion(List endpointProtocolVersions); + void setSecurityAttribute(SecurityAttributeObject securityAttribute); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol * * @return Returns the String for the property subprotocol. */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") String getSubprotocol(); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol * * @param subprotocol desired value for the property subprotocol. */ void setSubprotocol(String subprotocol); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody * * @return Returns the String for the property subprotocolBody. */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") String getSubprotocolBody(); /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody + * More information under https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody * * @param subprotocolBody desired value for the property subprotocolBody. */ @@ -103,33 +128,18 @@ public interface ProtocolInformation { /** * More information under - * https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding + * https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding * * @return Returns the String for the property subprotocolBodyEncoding. */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") String getSubprotocolBodyEncoding(); /** * More information under - * https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding + * https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding * * @param subprotocolBodyEncoding desired value for the property subprotocolBodyEncoding. */ void setSubprotocolBodyEncoding(String subprotocolBodyEncoding); - - /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes - * - * @return Returns the List of SecurityAttributeObjects for the property securityAttributes. - */ - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") - List getSecurityAttributes(); - - /** - * More information under https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes - * - * @param securityAttributes desired value for the property securityAttributes. - */ - void setSecurityAttributes(List securityAttributes); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java index 501dec2a9..d09f47eb2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifiable.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,38 +11,48 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import java.util.List; + /** The value of a qualifiable element may be further qualified by one or more qualifiers. */ @KnownSubtypes({ + @KnownSubtypes.Type(value = Submodel.class), @KnownSubtypes.Type(value = SubmodelElementAttributes.class), - @KnownSubtypes.Type(value = SubmodelElement.class), - @KnownSubtypes.Type(value = Submodel.class) + @KnownSubtypes.Type(value = SubmodelElement.class) }) public interface Qualifiable { /** * Additional qualification of a qualifiable element. * - *

More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers + *

More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers * * @return Returns the List of Qualifiers for the property qualifiers. */ - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") List getQualifiers(); /** * Additional qualification of a qualifiable element. * - *

More information under https://admin-shell.io/aas/3/0/Qualifiable/qualifiers + *

More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers * * @param qualifiers desired value for the property qualifiers. */ void setQualifiers(List qualifiers); + + /** + * More information under https://admin-shell.io/aas/3/2/Qualifiable/qualifiers + * + * @param qualifier desired value to be added to the property qualifiers. + */ + void setQualifier(Qualifier qualifier); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java index 55febdb18..46bacd21a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Qualifier.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface Qualifier extends HasSemantics { /** * The qualifier kind describes the kind of the qualifier that is applied to the element. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/kind + *

More information under https://admin-shell.io/aas/3/2/Qualifier/kind * * @return Returns the QualifierKind for the property kind. */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") QualifierKind getKind(); /** * The qualifier kind describes the kind of the qualifier that is applied to the element. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/kind + *

More information under https://admin-shell.io/aas/3/2/Qualifier/kind * * @param kind desired value for the property kind. */ @@ -48,17 +50,17 @@ public interface Qualifier extends HasSemantics { /** * The qualifier type describes the type of the qualifier that is applied to the element. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/type + *

More information under https://admin-shell.io/aas/3/2/Qualifier/type * * @return Returns the String for the property type. */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") String getType(); /** * The qualifier type describes the type of the qualifier that is applied to the element. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/type + *

More information under https://admin-shell.io/aas/3/2/Qualifier/type * * @param type desired value for the property type. */ @@ -67,17 +69,17 @@ public interface Qualifier extends HasSemantics { /** * Data type of the qualifier value. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueType + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueType * * @return Returns the DataTypeDefXsd for the property valueType. */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") DataTypeDefXsd getValueType(); /** * Data type of the qualifier value. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueType + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueType * * @param valueType desired value for the property valueType. */ @@ -86,17 +88,17 @@ public interface Qualifier extends HasSemantics { /** * The qualifier value is the value of the qualifier. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/value + *

More information under https://admin-shell.io/aas/3/2/Qualifier/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") String getValue(); /** * The qualifier value is the value of the qualifier. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/value + *

More information under https://admin-shell.io/aas/3/2/Qualifier/value * * @param value desired value for the property value. */ @@ -105,17 +107,17 @@ public interface Qualifier extends HasSemantics { /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueId + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueId * * @return Returns the Reference for the property valueId. */ - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") Reference getValueId(); /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/0/Qualifier/valueId + *

More information under https://admin-shell.io/aas/3/2/Qualifier/valueId * * @param valueId desired value for the property valueId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java index 9c16e29f2..2d38c027c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/QualifierKind.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,14 +24,14 @@ public enum QualifierKind { /** qualifies the semantic definition the element is referring to ('semanticId') */ - @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ConceptQualifier") + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ConceptQualifier") CONCEPT_QUALIFIER, /** qualifies the elements within a specific submodel on concept level. */ - @IRI("https://admin-shell.io/aas/3/0/QualifierKind/TemplateQualifier") + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/TemplateQualifier") TEMPLATE_QUALIFIER, /** qualifies the value of the element and can change during run-time. */ - @IRI("https://admin-shell.io/aas/3/0/QualifierKind/ValueQualifier") + @IRI("https://admin-shell.io/aas/3/2/QualifierKind/ValueQualifier") VALUE_QUALIFIER; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java index 6d3345ce9..6734e5a66 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Range.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -26,17 +28,17 @@ public interface Range extends DataElement { /** * Data type of the min und max * - *

More information under https://admin-shell.io/aas/3/0/Range/valueType + *

More information under https://admin-shell.io/aas/3/2/Range/valueType * * @return Returns the DataTypeDefXsd for the property valueType. */ - @IRI("https://admin-shell.io/aas/3/0/Range/valueType") + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") DataTypeDefXsd getValueType(); /** * Data type of the min und max * - *

More information under https://admin-shell.io/aas/3/0/Range/valueType + *

More information under https://admin-shell.io/aas/3/2/Range/valueType * * @param valueType desired value for the property valueType. */ @@ -45,17 +47,17 @@ public interface Range extends DataElement { /** * The minimum value of the range. * - *

More information under https://admin-shell.io/aas/3/0/Range/min + *

More information under https://admin-shell.io/aas/3/2/Range/min * * @return Returns the String for the property min. */ - @IRI("https://admin-shell.io/aas/3/0/Range/min") + @IRI("https://admin-shell.io/aas/3/2/Range/min") String getMin(); /** * The minimum value of the range. * - *

More information under https://admin-shell.io/aas/3/0/Range/min + *

More information under https://admin-shell.io/aas/3/2/Range/min * * @param min desired value for the property min. */ @@ -64,17 +66,17 @@ public interface Range extends DataElement { /** * The maximum value of the range. * - *

More information under https://admin-shell.io/aas/3/0/Range/max + *

More information under https://admin-shell.io/aas/3/2/Range/max * * @return Returns the String for the property max. */ - @IRI("https://admin-shell.io/aas/3/0/Range/max") + @IRI("https://admin-shell.io/aas/3/2/Range/max") String getMax(); /** * The maximum value of the range. * - *

More information under https://admin-shell.io/aas/3/0/Range/max + *

More information under https://admin-shell.io/aas/3/2/Range/max * * @param max desired value for the property max. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java index 56de69493..a25566218 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Referable.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,17 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import java.util.List; + /** An element that is referable by its 'idShort'. */ @KnownSubtypes({ @KnownSubtypes.Type(value = SubmodelElementAttributes.class), @@ -31,18 +34,18 @@ public interface Referable extends HasExtensions { * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. * - *

More information under https://admin-shell.io/aas/3/0/Referable/category + *

More information under https://admin-shell.io/aas/3/2/Referable/category * * @return Returns the String for the property category. */ - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") String getCategory(); /** * The category is a value that gives further meta information w.r.t. to the class of the element. * It affects the expected existence of attributes and the applicability of constraints. * - *

More information under https://admin-shell.io/aas/3/0/Referable/category + *

More information under https://admin-shell.io/aas/3/2/Referable/category * * @param category desired value for the property category. */ @@ -52,18 +55,18 @@ public interface Referable extends HasExtensions { * In case of identifiables this attribute is a short name of the element. In case of referable * this ID is an identifying string of the element within its name space. * - *

More information under https://admin-shell.io/aas/3/0/Referable/idShort + *

More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @return Returns the String for the property idShort. */ - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") String getIdShort(); /** * In case of identifiables this attribute is a short name of the element. In case of referable * this ID is an identifying string of the element within its name space. * - *

More information under https://admin-shell.io/aas/3/0/Referable/idShort + *

More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @param idShort desired value for the property idShort. */ @@ -72,38 +75,52 @@ public interface Referable extends HasExtensions { /** * Display name. Can be provided in several languages. * - *

More information under https://admin-shell.io/aas/3/0/Referable/displayName + *

More information under https://admin-shell.io/aas/3/2/Referable/displayName * * @return Returns the List of LangStringNameTypes for the property displayName. */ - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") List getDisplayName(); /** * Display name. Can be provided in several languages. * - *

More information under https://admin-shell.io/aas/3/0/Referable/displayName + *

More information under https://admin-shell.io/aas/3/2/Referable/displayName * * @param displayNames desired value for the property displayName. */ void setDisplayName(List displayNames); + /** + * More information under https://admin-shell.io/aas/3/2/Referable/displayName + * + * @param displayName desired value to be added to the property displayName. + */ + void setDisplayName(LangStringNameType displayName); + /** * Description or comments on the element. * - *

More information under https://admin-shell.io/aas/3/0/Referable/description + *

More information under https://admin-shell.io/aas/3/2/Referable/description * * @return Returns the List of LangStringTextTypes for the property description. */ - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") List getDescription(); /** * Description or comments on the element. * - *

More information under https://admin-shell.io/aas/3/0/Referable/description + *

More information under https://admin-shell.io/aas/3/2/Referable/description * * @param descriptions desired value for the property description. */ void setDescription(List descriptions); + + /** + * More information under https://admin-shell.io/aas/3/2/Referable/description + * + * @param description desired value to be added to the property description. + */ + void setDescription(LangStringTextType description); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java index 499368339..e703c80d5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Reference.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultReference; +import java.util.List; + /** Reference to either a model element of the same or another AAS or to an external entity. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultReference.class)}) public interface Reference { @@ -27,17 +30,17 @@ public interface Reference { /** * Type of the reference. * - *

More information under https://admin-shell.io/aas/3/0/Reference/type + *

More information under https://admin-shell.io/aas/3/2/Reference/type * * @return Returns the ReferenceTypes for the property type. */ - @IRI("https://admin-shell.io/aas/3/0/Reference/type") + @IRI("https://admin-shell.io/aas/3/2/Reference/type") ReferenceTypes getType(); /** * Type of the reference. * - *

More information under https://admin-shell.io/aas/3/0/Reference/type + *

More information under https://admin-shell.io/aas/3/2/Reference/type * * @param type desired value for the property type. */ @@ -46,17 +49,17 @@ public interface Reference { /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). * - *

More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId + *

More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId * * @return Returns the Reference for the property referredSemanticId. */ - @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") Reference getReferredSemanticId(); /** * 'semanticId' of the referenced model element ('type' = 'ModelReference'). * - *

More information under https://admin-shell.io/aas/3/0/Reference/referredSemanticId + *

More information under https://admin-shell.io/aas/3/2/Reference/referredSemanticId * * @param referredSemanticId desired value for the property referredSemanticId. */ @@ -65,19 +68,26 @@ public interface Reference { /** * Unique references in their name space. * - *

More information under https://admin-shell.io/aas/3/0/Reference/keys + *

More information under https://admin-shell.io/aas/3/2/Reference/keys * * @return Returns the List of Keys for the property keys. */ - @IRI("https://admin-shell.io/aas/3/0/Reference/keys") + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") List getKeys(); /** * Unique references in their name space. * - *

More information under https://admin-shell.io/aas/3/0/Reference/keys + *

More information under https://admin-shell.io/aas/3/2/Reference/keys * * @param keys desired value for the property keys. */ void setKeys(List keys); + + /** + * More information under https://admin-shell.io/aas/3/2/Reference/keys + * + * @param key desired value to be added to the property keys. + */ + void setKey(Key key); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java index 3776fc471..b3d7f1ee9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -30,18 +32,18 @@ public interface ReferenceElement extends DataElement { * Global reference to an external object or entity or a logical reference to another element * within the same or another AAS (i.e. a model reference to a Referable). * - *

More information under https://admin-shell.io/aas/3/0/ReferenceElement/value + *

More information under https://admin-shell.io/aas/3/2/ReferenceElement/value * * @return Returns the Reference for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") + @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") Reference getValue(); /** * Global reference to an external object or entity or a logical reference to another element * within the same or another AAS (i.e. a model reference to a Referable). * - *

More information under https://admin-shell.io/aas/3/0/ReferenceElement/value + *

More information under https://admin-shell.io/aas/3/2/ReferenceElement/value * * @param value desired value for the property value. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java index d6bd0667f..82dcd7fd5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ReferenceTypes.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,10 +24,10 @@ public enum ReferenceTypes { /** External reference. */ - @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ExternalReference") + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ExternalReference") EXTERNAL_REFERENCE, /** Model reference. */ - @IRI("https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference") + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ModelReference") MODEL_REFERENCE; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java index 707ac82df..6ac1dae0d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/RelationshipElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -32,17 +34,17 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the first element in the relationship taking the role of the subject. * - *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/first + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/first * * @return Returns the Reference for the property first. */ - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") Reference getFirst(); /** * Reference to the first element in the relationship taking the role of the subject. * - *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/first + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/first * * @param first desired value for the property first. */ @@ -51,17 +53,17 @@ public interface RelationshipElement extends SubmodelElement { /** * Reference to the second element in the relationship taking the role of the object. * - *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/second + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/second * * @return Returns the Reference for the property second. */ - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") Reference getSecond(); /** * Reference to the second element in the relationship taking the role of the object. * - *

More information under https://admin-shell.io/aas/3/0/RelationshipElement/second + *

More information under https://admin-shell.io/aas/3/2/RelationshipElement/second * * @param second desired value for the property second. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java index de8486cc7..a404b28b8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Resource.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface Resource { /** * Path and name of the resource (with file extension). * - *

More information under https://admin-shell.io/aas/3/0/Resource/path + *

More information under https://admin-shell.io/aas/3/2/Resource/path * * @return Returns the String for the property path. */ - @IRI("https://admin-shell.io/aas/3/0/Resource/path") + @IRI("https://admin-shell.io/aas/3/2/Resource/path") String getPath(); /** * Path and name of the resource (with file extension). * - *

More information under https://admin-shell.io/aas/3/0/Resource/path + *

More information under https://admin-shell.io/aas/3/2/Resource/path * * @param path desired value for the property path. */ @@ -48,17 +50,17 @@ public interface Resource { /** * Content type of the content of the file. * - *

More information under https://admin-shell.io/aas/3/0/Resource/contentType + *

More information under https://admin-shell.io/aas/3/2/Resource/contentType * * @return Returns the String for the property contentType. */ - @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") String getContentType(); /** * Content type of the content of the file. * - *

More information under https://admin-shell.io/aas/3/0/Resource/contentType + *

More information under https://admin-shell.io/aas/3/2/Resource/contentType * * @param contentType desired value for the property contentType. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java index bac250273..fb2cfee79 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Result.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,34 +11,56 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultResult; +import java.util.List; + /** */ -@KnownSubtypes({ - @KnownSubtypes.Type(value = DefaultResult.class), - @KnownSubtypes.Type(value = BaseOperationResult.class) -}) +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultResult.class)}) public interface Result { /** - * More information under https://admin-shell.io/aas/3/0/Result/messages + * More information under https://admin-shell.io/aas/3/2/Result/messages * * @return Returns the List of Messages for the property messages. */ - @IRI("https://admin-shell.io/aas/3/0/Result/messages") + @IRI("https://admin-shell.io/aas/3/2/Result/messages") List getMessages(); /** - * More information under https://admin-shell.io/aas/3/0/Result/messages + * More information under https://admin-shell.io/aas/3/2/Result/messages * * @param messages desired value for the property messages. */ void setMessages(List messages); + + /** + * More information under https://admin-shell.io/aas/3/2/Result/messages + * + * @param message desired value to be added to the property messages. + */ + void setMessage(Message message); + + /** + * More information under https://admin-shell.io/aas/3/2/Result/success + * + * @return Returns the boolean for the property success. + */ + @IRI("https://admin-shell.io/aas/3/2/Result/success") + boolean getSuccess(); + + /** + * More information under https://admin-shell.io/aas/3/2/Result/success + * + * @param success desired value for the property success. + */ + void setSuccess(boolean success); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java index 82716d3c5..0a94ec022 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityAttributeObject.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -24,47 +26,47 @@ public interface SecurityAttributeObject { /** - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type - * - * @return Returns the SecurityTypeEnum for the property type. - */ - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") - SecurityTypeEnum getType(); - - /** - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/type - * - * @param type desired value for the property type. - */ - void setType(SecurityTypeEnum type); - - /** - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key * * @return Returns the String for the property key. */ - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") String getKey(); /** - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/key + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/key * * @param key desired value for the property key. */ void setKey(String key); /** - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") String getValue(); /** - * More information under https://admin-shell.io/aas/3/0/SecurityAttributeObject/value + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/value * * @param value desired value for the property value. */ void setValue(String value); + + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type + * + * @return Returns the SecurityTypeEnum for the property type. + */ + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") + SecurityTypeEnum getType(); + + /** + * More information under https://admin-shell.io/aas/3/2/SecurityAttributeObject/type + * + * @param type desired value for the property type. + */ + void setType(SecurityTypeEnum type); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java index 3c8f5387f..acd6170cd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SecurityTypeEnum.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,25 +11,15 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityTypeEnum; /** */ -@IRI("aas:SecurityTypeEnum") -public enum SecurityTypeEnum { - - /** */ - @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/None") - NONE, - - /** */ - @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/Rfc_Tlsa") - RFC_TLSA, - - /** */ - @IRI("https://admin-shell.io/aas/3/0/SecurityTypeEnum/W3c_Did") - W3C_DID; -} +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultSecurityTypeEnum.class)}) +public interface SecurityTypeEnum {} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java index e40de9dde..cf91499d3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SpecificAssetId.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -26,17 +28,17 @@ public interface SpecificAssetId extends HasSemantics { /** * Name of the identifier * - *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name * * @return Returns the String for the property name. */ - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") String getName(); /** * Name of the identifier * - *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/name + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/name * * @param name desired value for the property name. */ @@ -45,17 +47,17 @@ public interface SpecificAssetId extends HasSemantics { /** * The value of the specific asset identifier with the corresponding name. * - *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") String getValue(); /** * The value of the specific asset identifier with the corresponding name. * - *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/value + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/value * * @param value desired value for the property value. */ @@ -64,17 +66,17 @@ public interface SpecificAssetId extends HasSemantics { /** * The (external) subject the key belongs to or has meaning to. * - *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId * * @return Returns the Reference for the property externalSubjectId. */ - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") Reference getExternalSubjectId(); /** * The (external) subject the key belongs to or has meaning to. * - *

More information under https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId + *

More information under https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId * * @param externalSubjectId desired value for the property externalSubjectId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java index c4262d666..674578ee6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/StateOfEvent.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -22,10 +24,10 @@ public enum StateOfEvent { /** Event is off. */ - @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/Off") + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/Off") OFF, /** Event is on */ - @IRI("https://admin-shell.io/aas/3/0/StateOfEvent/On") + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/On") ON; } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java index 55eed0f07..565999676 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/Submodel.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodel; +import java.util.List; + /** A submodel defines a specific aspect of the asset represented by the AAS. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodel.class)}) public interface Submodel @@ -28,19 +31,26 @@ public interface Submodel /** * A submodel consists of zero or more submodel elements. * - *

More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements + *

More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements * * @return Returns the List of SubmodelElements for the property submodelElements. */ - @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") List getSubmodelElements(); /** * A submodel consists of zero or more submodel elements. * - *

More information under https://admin-shell.io/aas/3/0/Submodel/submodelElements + *

More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements * * @param submodelElements desired value for the property submodelElements. */ void setSubmodelElements(List submodelElements); + + /** + * More information under https://admin-shell.io/aas/3/2/Submodel/submodelElements + * + * @param submodelElement desired value to be added to the property submodelElements. + */ + void setSubmodelElement(SubmodelElement submodelElement); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java index 62077f2fc..315142c88 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelDescriptor.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelDescriptor; @@ -25,92 +26,92 @@ public interface SubmodelDescriptor extends Descriptor { /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration * * @return Returns the AdministrativeInformation for the property administration. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") AdministrativeInformation getAdministration(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration * * @param administration desired value for the property administration. */ void setAdministration(AdministrativeInformation administration); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description * - * @return Returns the List of Endpoints for the property endpoints. + * @return Returns the LangStringTextType for the property description. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") - List getEndpoints(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") + LangStringTextType getDescription(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/description * - * @param endpoints desired value for the property endpoints. + * @param description desired value for the property description. */ - void setEndpoints(List endpoints); + void setDescription(LangStringTextType description); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName * - * @return Returns the String for the property idShort. + * @return Returns the LangStringNameType for the property displayName. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") - String getIdShort(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") + LangStringNameType getDisplayName(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName * - * @param idShort desired value for the property idShort. + * @param displayName desired value for the property displayName. */ - void setIdShort(String idShort); + void setDisplayName(LangStringNameType displayName); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort * - * @return Returns the String for the property id. + * @return Returns the String for the property idShort. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") - String getId(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") + String getIdShort(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/id + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort * - * @param id desired value for the property id. + * @param idShort desired value for the property idShort. */ - void setId(String id); + void setIdShort(String idShort); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification * - * @return Returns the Reference for the property semanticId. + * @return Returns the String for the property identification. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") - Reference getSemanticId(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") + String getIdentification(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification * - * @param semanticId desired value for the property semanticId. + * @param identification desired value for the property identification. */ - void setSemanticId(Reference semanticId); + void setIdentification(String identification); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId * - * @return Returns the List of References for the property supplementalSemanticId. + * @return Returns the Reference for the property semanticId. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") - List getSupplementalSemanticId(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + Reference getSemanticId(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId * - * @param supplementalSemanticIds desired value for the property supplementalSemanticId. + * @param semanticId desired value for the property semanticId. */ - void setSupplementalSemanticId(List supplementalSemanticIds); + void setSemanticId(Reference semanticId); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java index 8c3a38ca2..9957f4c3f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java index 9181e71fd..719cb2945 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -25,15 +27,15 @@ public interface SubmodelElementAttributes extends Referable, HasDataSpecification, HasSemantics, Qualifiable { /** - * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind + * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind * * @return Returns the ModellingKind for the property kind. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") ModellingKind getKind(); /** - * More information under https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind + * More information under https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind * * @param kind desired value for the property kind. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java index d12acab1d..9973c2ce1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementCollection.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementCollection; +import java.util.List; + /** * A submodel element collection is a kind of struct, i.e. a a logical encapsulation of multiple * named values. It has a fixed number of submodel elements. @@ -30,19 +33,26 @@ public interface SubmodelElementCollection extends SubmodelElement { /** * Submodel element contained in the collection. * - *

More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * * @return Returns the List of SubmodelElements for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") List getValue(); /** * Submodel element contained in the collection. * - *

More information under https://admin-shell.io/aas/3/0/SubmodelElementCollection/value + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * * @param values desired value for the property value. */ void setValue(List values); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value + * + * @param value desired value to be added to the property value. + */ + void setValue(SubmodelElement value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java index 7ba2d1ebe..18092913d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementList.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSubmodelElementList; +import java.util.List; + /** A submodel element list is an ordered list of submodel elements. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultSubmodelElementList.class)}) public interface SubmodelElementList extends SubmodelElement { @@ -28,18 +31,18 @@ public interface SubmodelElementList extends SubmodelElement { * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. * - *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant * * @return Returns the boolean for the property orderRelevant. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") boolean getOrderRelevant(); /** * Defines whether order in list is relevant. If 'orderRelevant' = False then the list is * representing a set or a bag. * - *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant * * @param orderRelevant desired value for the property orderRelevant. */ @@ -49,18 +52,18 @@ public interface SubmodelElementList extends SubmodelElement { * Semantic ID the submodel elements contained in the list match to. * *

More information under - * https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement + * https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement * * @return Returns the Reference for the property semanticIdListElement. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") Reference getSemanticIdListElement(); /** * Semantic ID the submodel elements contained in the list match to. * *

More information under - * https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement + * https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement * * @param semanticIdListElement desired value for the property semanticIdListElement. */ @@ -70,18 +73,18 @@ public interface SubmodelElementList extends SubmodelElement { * The submodel element type of the submodel elements contained in the list. * *

More information under - * https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement + * https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement * * @return Returns the AasSubmodelElements for the property typeValueListElement. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") AasSubmodelElements getTypeValueListElement(); /** * The submodel element type of the submodel elements contained in the list. * *

More information under - * https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement + * https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement * * @param typeValueListElement desired value for the property typeValueListElement. */ @@ -91,18 +94,18 @@ public interface SubmodelElementList extends SubmodelElement { * The value type of the submodel element contained in the list. * *

More information under - * https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement + * https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement * * @return Returns the DataTypeDefXsd for the property valueTypeListElement. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") DataTypeDefXsd getValueTypeListElement(); /** * The value type of the submodel element contained in the list. * *

More information under - * https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement + * https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement * * @param valueTypeListElement desired value for the property valueTypeListElement. */ @@ -111,19 +114,26 @@ public interface SubmodelElementList extends SubmodelElement { /** * Submodel element contained in the list. * - *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * * @return Returns the List of SubmodelElements for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") List getValue(); /** * Submodel element contained in the list. * - *

More information under https://admin-shell.io/aas/3/0/SubmodelElementList/value + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * * @param values desired value for the property value. */ void setValue(List values); + + /** + * More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value + * + * @param value desired value to be added to the property value. + */ + void setValue(SubmodelElement value); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java index 6820f14b1..ff8d090c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueList.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultValueList; +import java.util.List; + /** A set of value reference pairs. */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultValueList.class)}) public interface ValueList { @@ -27,19 +30,26 @@ public interface ValueList { /** * A pair of a value together with its global unique id. * - *

More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs + *

More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs * * @return Returns the List of ValueReferencePairs for the property valueReferencePairs. */ - @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") + @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") List getValueReferencePairs(); /** * A pair of a value together with its global unique id. * - *

More information under https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs + *

More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs * * @param valueReferencePairs desired value for the property valueReferencePairs. */ void setValueReferencePairs(List valueReferencePairs); + + /** + * More information under https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs + * + * @param valueReferencePair desired value to be added to the property valueReferencePairs. + */ + void setValueReferencePair(ValueReferencePair valueReferencePair); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java index a66169842..2172fe676 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/ValueReferencePair.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model; @@ -29,17 +31,17 @@ public interface ValueReferencePair { /** * The value of the referenced concept definition of the value in 'valueId'. * - *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value * * @return Returns the String for the property value. */ - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") String getValue(); /** * The value of the referenced concept definition of the value in 'valueId'. * - *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/value + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/value * * @param value desired value for the property value. */ @@ -48,17 +50,17 @@ public interface ValueReferencePair { /** * Global unique id of the value. * - *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId * * @return Returns the Reference for the property valueId. */ - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") Reference getValueId(); /** * Global unique id of the value. * - *

More information under https://admin-shell.io/aas/3/0/ValueReferencePair/valueId + *

More information under https://admin-shell.io/aas/3/2/ValueReferencePair/valueId * * @param valueId desired value for the property valueId. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java index 70765247f..a390c1ad2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/IRI.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.annotations; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java index 0577042f0..150bdb98d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/annotations/KnownSubtypes.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.annotations; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java index d368a5653..48230f04e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AbstractBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java index 3f8097bb5..831550df5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AdministrativeInformationBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class AdministrativeInformationBuilder< T extends AdministrativeInformation, B extends AdministrativeInformationBuilder> extends ExtendableBuilder { @@ -57,6 +60,28 @@ public B creator(Reference creator) { return getSelf(); } + /** + * This function allows setting a value for createdAt + * + * @param createdAt desired value to be set + * @return Builder object with new value for createdAt + */ + public B createdAt(String createdAt) { + getBuildingInstance().setCreatedAt(createdAt); + return getSelf(); + } + + /** + * This function allows setting a value for updatedAt + * + * @param updatedAt desired value to be set + * @return Builder object with new value for updatedAt + */ + public B updatedAt(String updatedAt) { + getBuildingInstance().setUpdatedAt(updatedAt); + return getSelf(); + } + /** * This function allows setting a value for templateId * @@ -82,11 +107,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java index d07585d69..87ffffc7d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AnnotatedRelationshipElementBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class AnnotatedRelationshipElementBuilder< T extends AnnotatedRelationshipElement, B extends AnnotatedRelationshipElementBuilder> extends ExtendableBuilder { @@ -43,11 +46,11 @@ public B annotations(List annotations) { /** * This function allows adding a value to the List annotations * - * @param annotations desired value to be added + * @param annotation desired value to be added * @return Builder object with new value for annotations */ - public B annotations(DataElement annotations) { - getBuildingInstance().getAnnotations().add(annotations); + public B annotation(DataElement annotation) { + getBuildingInstance().getAnnotations().add(annotation); return getSelf(); } @@ -153,11 +156,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -175,11 +178,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -208,11 +211,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -230,11 +233,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java index 47a9dc076..e95e054c7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class AssetAdministrationShellBuilder< T extends AssetAdministrationShell, B extends AssetAdministrationShellBuilder> extends ExtendableBuilder { @@ -65,11 +68,11 @@ public B submodels(List submodels) { /** * This function allows adding a value to the List submodels * - * @param submodels desired value to be added + * @param submodel desired value to be added * @return Builder object with new value for submodels */ - public B submodels(Reference submodels) { - getBuildingInstance().getSubmodels().add(submodels); + public B submodel(Reference submodel) { + getBuildingInstance().getSubmodels().add(submodel); return getSelf(); } @@ -87,11 +90,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -197,11 +200,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java index 43c0dd018..987e95447 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetAdministrationShellDescriptorBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,21 +11,23 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; +import java.util.List; + public abstract class AssetAdministrationShellDescriptorBuilder< T extends AssetAdministrationShellDescriptor, B extends AssetAdministrationShellDescriptorBuilder> @@ -43,46 +45,24 @@ public B administration(AdministrativeInformation administration) { } /** - * This function allows setting a value for assetKind - * - * @param assetKind desired value to be set - * @return Builder object with new value for assetKind - */ - public B assetKind(AssetKind assetKind) { - getBuildingInstance().setAssetKind(assetKind); - return getSelf(); - } - - /** - * This function allows setting a value for assetType - * - * @param assetType desired value to be set - * @return Builder object with new value for assetType - */ - public B assetType(String assetType) { - getBuildingInstance().setAssetType(assetType); - return getSelf(); - } - - /** - * This function allows setting a value for endpoints + * This function allows setting a value for description * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints + * @param description desired value to be set + * @return Builder object with new value for description */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); + public B description(LangStringTextType description) { + getBuildingInstance().setDescription(description); return getSelf(); } /** - * This function allows adding a value to the List endpoints + * This function allows setting a value for displayName * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints + * @param displayName desired value to be set + * @return Builder object with new value for displayName */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); + public B displayName(LangStringNameType displayName) { + getBuildingInstance().setDisplayName(displayName); return getSelf(); } @@ -92,7 +72,7 @@ public B endpoints(Endpoint endpoints) { * @param globalAssetId desired value to be set * @return Builder object with new value for globalAssetId */ - public B globalAssetId(String globalAssetId) { + public B globalAssetId(Reference globalAssetId) { getBuildingInstance().setGlobalAssetId(globalAssetId); return getSelf(); } @@ -109,13 +89,13 @@ public B idShort(String idShort) { } /** - * This function allows setting a value for id + * This function allows setting a value for identification * - * @param id desired value to be set - * @return Builder object with new value for id + * @param identification desired value to be set + * @return Builder object with new value for identification */ - public B id(String id) { - getBuildingInstance().setId(id); + public B identification(String identification) { + getBuildingInstance().setIdentification(identification); return getSelf(); } @@ -133,11 +113,11 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds * - * @param specificAssetIds desired value to be added + * @param specificAssetId desired value to be added * @return Builder object with new value for specificAssetIds */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + public B specificAssetId(SpecificAssetId specificAssetId) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetId); return getSelf(); } @@ -147,85 +127,30 @@ public B specificAssetIds(SpecificAssetId specificAssetIds) { * @param submodelDescriptors desired value to be set * @return Builder object with new value for submodelDescriptors */ - public B submodelDescriptors(List submodelDescriptors) { - getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows adding a value to the List submodelDescriptors - * - * @param submodelDescriptors desired value to be added - * @return Builder object with new value for submodelDescriptors - */ public B submodelDescriptors(SubmodelDescriptor submodelDescriptors) { - getBuildingInstance().getSubmodelDescriptors().add(submodelDescriptors); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); + getBuildingInstance().setSubmodelDescriptors(submodelDescriptors); return getSelf(); } /** - * This function allows setting a value for extensions + * This function allows setting a value for endpoints * - * @param extensions desired value to be set - * @return Builder object with new value for extensions + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); return getSelf(); } /** - * This function allows adding a value to the List extensions + * This function allows adding a value to the List endpoints * - * @param extensions desired value to be added - * @return Builder object with new value for extensions + * @param endpoint desired value to be added + * @return Builder object with new value for endpoints */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B endpoint(Endpoint endpoint) { + getBuildingInstance().getEndpoints().add(endpoint); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java index 1e818958c..44389dcd9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/AssetInformationBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,19 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import java.util.List; + public abstract class AssetInformationBuilder< T extends AssetInformation, B extends AssetInformationBuilder> extends ExtendableBuilder { @@ -61,11 +64,11 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds * - * @param specificAssetIds desired value to be added + * @param specificAssetId desired value to be added * @return Builder object with new value for specificAssetIds */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + public B specificAssetId(SpecificAssetId specificAssetId) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetId); return getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java index a75a181c5..2a9c4ca36 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BaseOperationResultBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,14 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; public abstract class BaseOperationResultBuilder< T extends BaseOperationResult, B extends BaseOperationResultBuilder> @@ -45,26 +45,4 @@ public B success(boolean success) { getBuildingInstance().setSuccess(success); return getSelf(); } - - /** - * This function allows setting a value for messages - * - * @param messages desired value to be set - * @return Builder object with new value for messages - */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); - return getSelf(); - } - - /** - * This function allows adding a value to the List messages - * - * @param messages desired value to be added - * @return Builder object with new value for messages - */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); - return getSelf(); - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java index 8cd3de967..17fa6d6df 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BasicEventElementBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -26,6 +27,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.StateOfEvent; +import java.util.List; + public abstract class BasicEventElementBuilder< T extends BasicEventElement, B extends BasicEventElementBuilder> extends ExtendableBuilder { @@ -198,11 +201,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -220,11 +223,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -253,11 +256,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -275,11 +278,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java index b31950814..c6351cc4c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/BlobBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class BlobBuilder> extends ExtendableBuilder { @@ -129,11 +132,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -151,11 +154,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -184,11 +187,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -206,11 +209,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java index 7af63344d..54f60c133 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/Builder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java index fdf65c1ea..2123eb17c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/CapabilityBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class CapabilityBuilder> extends ExtendableBuilder { @@ -107,11 +110,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -129,11 +132,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -162,11 +165,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -184,11 +187,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java index 557063b22..dae0c543f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ConceptDescriptionBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class ConceptDescriptionBuilder< T extends ConceptDescription, B extends ConceptDescriptionBuilder> extends ExtendableBuilder { @@ -64,11 +67,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -174,11 +177,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index d3c29a746..70ee538dc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; +import java.util.List; + public abstract class DataSpecificationIec61360Builder< T extends DataSpecificationIec61360, B extends DataSpecificationIec61360Builder> extends ExtendableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationUomBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationUomBuilder.java new file mode 100644 index 000000000..13dd10e7e --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationUomBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationUom; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeUom; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringUom; + +import java.util.List; + +public abstract class DataSpecificationUomBuilder< + T extends DataSpecificationUom, B extends DataSpecificationUomBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for preferredName + * + * @param preferredNames desired value to be set + * @return Builder object with new value for preferredName + */ + public B preferredName(List preferredNames) { + getBuildingInstance().setPreferredName(preferredNames); + return getSelf(); + } + + /** + * This function allows adding a value to the List preferredName + * + * @param preferredName desired value to be added + * @return Builder object with new value for preferredName + */ + public B preferredName(LangStringUom preferredName) { + getBuildingInstance().getPreferredName().add(preferredName); + return getSelf(); + } + + /** + * This function allows setting a value for symbol + * + * @param symbol desired value to be set + * @return Builder object with new value for symbol + */ + public B symbol(String symbol) { + getBuildingInstance().setSymbol(symbol); + return getSelf(); + } + + /** + * This function allows setting a value for specificUnitId + * + * @param specificUnitId desired value to be set + * @return Builder object with new value for specificUnitId + */ + public B specificUnitId(String specificUnitId) { + getBuildingInstance().setSpecificUnitId(specificUnitId); + return getSelf(); + } + + /** + * This function allows setting a value for definition + * + * @param definitions desired value to be set + * @return Builder object with new value for definition + */ + public B definition(List definitions) { + getBuildingInstance().setDefinition(definitions); + return getSelf(); + } + + /** + * This function allows adding a value to the List definition + * + * @param definition desired value to be added + * @return Builder object with new value for definition + */ + public B definition(LangStringDefinitionTypeUom definition) { + getBuildingInstance().getDefinition().add(definition); + return getSelf(); + } + + /** + * This function allows setting a value for preferredNameQuantity + * + * @param preferredNameQuantities desired value to be set + * @return Builder object with new value for preferredNameQuantity + */ + public B preferredNameQuantity(List preferredNameQuantities) { + getBuildingInstance().setPreferredNameQuantity(preferredNameQuantities); + return getSelf(); + } + + /** + * This function allows adding a value to the List preferredNameQuantity + * + * @param preferredNameQuantity desired value to be added + * @return Builder object with new value for preferredNameQuantity + */ + public B preferredNameQuantity(LangStringUom preferredNameQuantity) { + getBuildingInstance().getPreferredNameQuantity().add(preferredNameQuantity); + return getSelf(); + } + + /** + * This function allows setting a value for quantityId + * + * @param quantityId desired value to be set + * @return Builder object with new value for quantityId + */ + public B quantityId(String quantityId) { + getBuildingInstance().setQuantityId(quantityId); + return getSelf(); + } + + /** + * This function allows setting a value for classificationSystem + * + * @param classificationSystem desired value to be set + * @return Builder object with new value for classificationSystem + */ + public B classificationSystem(String classificationSystem) { + getBuildingInstance().setClassificationSystem(classificationSystem); + return getSelf(); + } + + /** + * This function allows setting a value for classificationSystemVersion + * + * @param classificationSystemVersion desired value to be set + * @return Builder object with new value for classificationSystemVersion + */ + public B classificationSystemVersion(String classificationSystemVersion) { + getBuildingInstance().setClassificationSystemVersion(classificationSystemVersion); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java index 2c3a6bd13..4cb5d90c5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DescriptorBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,82 +11,39 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; + +import java.util.List; public abstract class DescriptorBuilder> extends ExtendableBuilder { /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions + * This function allows setting a value for endpoints * - * @param extensions desired value to be set - * @return Builder object with new value for extensions + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); return getSelf(); } /** - * This function allows adding a value to the List extensions + * This function allows adding a value to the List endpoints * - * @param extensions desired value to be added - * @return Builder object with new value for extensions + * @param endpoint desired value to be added + * @return Builder object with new value for endpoints */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B endpoint(Endpoint endpoint) { + getBuildingInstance().getEndpoints().add(endpoint); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java index 0b11a9304..17770fd39 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EmbeddedDataSpecificationBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java index 1fe871e64..095b83ae3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EndpointBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java index 52e989f8a..123d28c37 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EntityBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -27,6 +28,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +import java.util.List; + public abstract class EntityBuilder> extends ExtendableBuilder { @@ -44,11 +47,11 @@ public B statements(List statements) { /** * This function allows adding a value to the List statements * - * @param statements desired value to be added + * @param statement desired value to be added * @return Builder object with new value for statements */ - public B statements(SubmodelElement statements) { - getBuildingInstance().getStatements().add(statements); + public B statement(SubmodelElement statement) { + getBuildingInstance().getStatements().add(statement); return getSelf(); } @@ -88,11 +91,11 @@ public B specificAssetIds(List specificAssetIds) { /** * This function allows adding a value to the List specificAssetIds * - * @param specificAssetIds desired value to be added + * @param specificAssetId desired value to be added * @return Builder object with new value for specificAssetIds */ - public B specificAssetIds(SpecificAssetId specificAssetIds) { - getBuildingInstance().getSpecificAssetIds().add(specificAssetIds); + public B specificAssetId(SpecificAssetId specificAssetId) { + getBuildingInstance().getSpecificAssetIds().add(specificAssetId); return getSelf(); } @@ -176,11 +179,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -198,11 +201,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -231,11 +234,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -253,11 +256,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java index 387bf1c36..d6defdd9a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EnvironmentBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,19 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; +import java.util.List; + public abstract class EnvironmentBuilder> extends ExtendableBuilder { @@ -38,55 +41,55 @@ public B assetAdministrationShells(List assetAdministr /** * This function allows adding a value to the List assetAdministrationShells * - * @param assetAdministrationShells desired value to be added + * @param assetAdministrationShell desired value to be added * @return Builder object with new value for assetAdministrationShells */ - public B assetAdministrationShells(AssetAdministrationShell assetAdministrationShells) { - getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShells); + public B assetAdministrationShell(AssetAdministrationShell assetAdministrationShell) { + getBuildingInstance().getAssetAdministrationShells().add(assetAdministrationShell); return getSelf(); } /** - * This function allows setting a value for submodels + * This function allows setting a value for conceptDescriptions * - * @param submodels desired value to be set - * @return Builder object with new value for submodels + * @param conceptDescriptions desired value to be set + * @return Builder object with new value for conceptDescriptions */ - public B submodels(List submodels) { - getBuildingInstance().setSubmodels(submodels); + public B conceptDescriptions(List conceptDescriptions) { + getBuildingInstance().setConceptDescriptions(conceptDescriptions); return getSelf(); } /** - * This function allows adding a value to the List submodels + * This function allows adding a value to the List conceptDescriptions * - * @param submodels desired value to be added - * @return Builder object with new value for submodels + * @param conceptDescription desired value to be added + * @return Builder object with new value for conceptDescriptions */ - public B submodels(Submodel submodels) { - getBuildingInstance().getSubmodels().add(submodels); + public B conceptDescription(ConceptDescription conceptDescription) { + getBuildingInstance().getConceptDescriptions().add(conceptDescription); return getSelf(); } /** - * This function allows setting a value for conceptDescriptions + * This function allows setting a value for submodels * - * @param conceptDescriptions desired value to be set - * @return Builder object with new value for conceptDescriptions + * @param submodels desired value to be set + * @return Builder object with new value for submodels */ - public B conceptDescriptions(List conceptDescriptions) { - getBuildingInstance().setConceptDescriptions(conceptDescriptions); + public B submodels(List submodels) { + getBuildingInstance().setSubmodels(submodels); return getSelf(); } /** - * This function allows adding a value to the List conceptDescriptions + * This function allows adding a value to the List submodels * - * @param conceptDescriptions desired value to be added - * @return Builder object with new value for conceptDescriptions + * @param submodel desired value to be added + * @return Builder object with new value for submodels */ - public B conceptDescriptions(ConceptDescription conceptDescriptions) { - getBuildingInstance().getConceptDescriptions().add(conceptDescriptions); + public B submodel(Submodel submodel) { + getBuildingInstance().getSubmodels().add(submodel); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java index 9946e0bed..15d3e9f6a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/EventPayloadBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java index d31226815..f3292d327 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtendableBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java index 2d0130fb1..4a245038b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ExtensionBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class ExtensionBuilder> extends ExtendableBuilder { @@ -103,11 +106,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java index 4f6a8a223..6636fb37f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/FileBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class FileBuilder> extends ExtendableBuilder { @@ -129,11 +132,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -151,11 +154,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -184,11 +187,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -206,11 +209,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java index e365d0649..e020d39a8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/KeyBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java index b71910d97..65b931504 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeIec61360Builder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeUomBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeUomBuilder.java new file mode 100644 index 000000000..bb875cf44 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringDefinitionTypeUomBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeUom; + +public abstract class LangStringDefinitionTypeUomBuilder< + T extends LangStringDefinitionTypeUom, B extends LangStringDefinitionTypeUomBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } + + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java index d3a3f13ac..bd4521a83 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringNameTypeBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java index 413f6d25d..b08458c85 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringPreferredNameTypeIec61360Builder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java index 25f6840a5..4c5e5b15a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringShortNameTypeIec61360Builder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java index d13247a66..ca8eba024 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringTextTypeBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringUomBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringUomBuilder.java new file mode 100644 index 000000000..a5392b378 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LangStringUomBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.builder; + +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringUom; + +public abstract class LangStringUomBuilder< + T extends LangStringUom, B extends LangStringUomBuilder> + extends ExtendableBuilder { + + /** + * This function allows setting a value for language + * + * @param language desired value to be set + * @return Builder object with new value for language + */ + public B language(String language) { + getBuildingInstance().setLanguage(language); + return getSelf(); + } + + /** + * This function allows setting a value for text + * + * @param text desired value to be set + * @return Builder object with new value for text + */ + public B text(String text) { + getBuildingInstance().setText(text); + return getSelf(); + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java index 4128334b7..2529424d8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/LevelTypeBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java index a74bb9f77..296343b6f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MessageBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,12 +11,14 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.MessageTypeEnum; +import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; public abstract class MessageBuilder> extends ExtendableBuilder { @@ -32,24 +34,13 @@ public B code(String code) { return getSelf(); } - /** - * This function allows setting a value for correlationId - * - * @param correlationId desired value to be set - * @return Builder object with new value for correlationId - */ - public B correlationId(String correlationId) { - getBuildingInstance().setCorrelationId(correlationId); - return getSelf(); - } - /** * This function allows setting a value for messageType * * @param messageType desired value to be set * @return Builder object with new value for messageType */ - public B messageType(MessageTypeEnum messageType) { + public B messageType(MessageType messageType) { getBuildingInstance().setMessageType(messageType); return getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java index a7780a09c..9f698684d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/MultiLanguagePropertyBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class MultiLanguagePropertyBuilder< T extends MultiLanguageProperty, B extends MultiLanguagePropertyBuilder> extends ExtendableBuilder { @@ -141,11 +144,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -163,11 +166,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -196,11 +199,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -218,11 +221,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java index 96dc1230b..c298695c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class OperationBuilder> extends ExtendableBuilder { @@ -42,11 +45,11 @@ public B inputVariables(List inputVariables) { /** * This function allows adding a value to the List inputVariables * - * @param inputVariables desired value to be added + * @param inputVariable desired value to be added * @return Builder object with new value for inputVariables */ - public B inputVariables(OperationVariable inputVariables) { - getBuildingInstance().getInputVariables().add(inputVariables); + public B inputVariable(OperationVariable inputVariable) { + getBuildingInstance().getInputVariables().add(inputVariable); return getSelf(); } @@ -64,11 +67,11 @@ public B outputVariables(List outputVariables) { /** * This function allows adding a value to the List outputVariables * - * @param outputVariables desired value to be added + * @param outputVariable desired value to be added * @return Builder object with new value for outputVariables */ - public B outputVariables(OperationVariable outputVariables) { - getBuildingInstance().getOutputVariables().add(outputVariables); + public B outputVariable(OperationVariable outputVariable) { + getBuildingInstance().getOutputVariables().add(outputVariable); return getSelf(); } @@ -86,11 +89,11 @@ public B inoutputVariables(List inoutputVariables) { /** * This function allows adding a value to the List inoutputVariables * - * @param inoutputVariables desired value to be added + * @param inoutputVariable desired value to be added * @return Builder object with new value for inoutputVariables */ - public B inoutputVariables(OperationVariable inoutputVariables) { - getBuildingInstance().getInoutputVariables().add(inoutputVariables); + public B inoutputVariable(OperationVariable inoutputVariable) { + getBuildingInstance().getInoutputVariables().add(inoutputVariable); return getSelf(); } @@ -174,11 +177,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -196,11 +199,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -229,11 +232,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -251,11 +254,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java index 9a4e3394f..491bd25ad 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationHandleBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; @@ -31,4 +33,15 @@ public B handleId(String handleId) { getBuildingInstance().setHandleId(handleId); return getSelf(); } + + /** + * This function allows setting a value for requestId + * + * @param requestId desired value to be set + * @return Builder object with new value for requestId + */ + public B requestId(String requestId) { + getBuildingInstance().setRequestId(requestId); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java index a7f994893..05fe74c72 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationRequestBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,17 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import java.math.BigInteger; + public abstract class OperationRequestBuilder< T extends OperationRequest, B extends OperationRequestBuilder> extends ExtendableBuilder { @@ -29,19 +32,8 @@ public abstract class OperationRequestBuilder< * @param inoutputArguments desired value to be set * @return Builder object with new value for inoutputArguments */ - public B inoutputArguments(List inoutputArguments) { - getBuildingInstance().setInoutputArguments(inoutputArguments); - return getSelf(); - } - - /** - * This function allows adding a value to the List inoutputArguments - * - * @param inoutputArguments desired value to be added - * @return Builder object with new value for inoutputArguments - */ public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); + getBuildingInstance().setInoutputArguments(inoutputArguments); return getSelf(); } @@ -51,30 +43,30 @@ public B inoutputArguments(OperationVariable inoutputArguments) { * @param inputArguments desired value to be set * @return Builder object with new value for inputArguments */ - public B inputArguments(List inputArguments) { + public B inputArguments(OperationVariable inputArguments) { getBuildingInstance().setInputArguments(inputArguments); return getSelf(); } /** - * This function allows adding a value to the List inputArguments + * This function allows setting a value for requestId * - * @param inputArguments desired value to be added - * @return Builder object with new value for inputArguments + * @param requestId desired value to be set + * @return Builder object with new value for requestId */ - public B inputArguments(OperationVariable inputArguments) { - getBuildingInstance().getInputArguments().add(inputArguments); + public B requestId(String requestId) { + getBuildingInstance().setRequestId(requestId); return getSelf(); } /** - * This function allows setting a value for clientTimeoutDuration + * This function allows setting a value for timeout * - * @param clientTimeoutDuration desired value to be set - * @return Builder object with new value for clientTimeoutDuration + * @param timeout desired value to be set + * @return Builder object with new value for timeout */ - public B clientTimeoutDuration(String clientTimeoutDuration) { - getBuildingInstance().setClientTimeoutDuration(clientTimeoutDuration); + public B timeout(BigInteger timeout) { + getBuildingInstance().setTimeout(timeout); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java index ca317f5bb..5bcc6373c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationResultBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,18 +11,67 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; +import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import org.eclipse.digitaltwin.aas4j.v3.model.Result; + +import java.util.List; public abstract class OperationResultBuilder< T extends OperationResult, B extends OperationResultBuilder> extends ExtendableBuilder { + /** + * This function allows setting a value for executionResult + * + * @param executionResults desired value to be set + * @return Builder object with new value for executionResult + */ + public B executionResult(List executionResults) { + getBuildingInstance().setExecutionResult(executionResults); + return getSelf(); + } + + /** + * This function allows adding a value to the List executionResult + * + * @param executionResult desired value to be added + * @return Builder object with new value for executionResult + */ + public B executionResult(Result executionResult) { + getBuildingInstance().getExecutionResult().add(executionResult); + return getSelf(); + } + + /** + * This function allows setting a value for executionState + * + * @param executionStates desired value to be set + * @return Builder object with new value for executionState + */ + public B executionState(List executionStates) { + getBuildingInstance().setExecutionState(executionStates); + return getSelf(); + } + + /** + * This function allows adding a value to the List executionState + * + * @param executionState desired value to be added + * @return Builder object with new value for executionState + */ + public B executionState(ExecutionState executionState) { + getBuildingInstance().getExecutionState().add(executionState); + return getSelf(); + } + /** * This function allows setting a value for inoutputArguments * @@ -37,11 +86,11 @@ public B inoutputArguments(List inoutputArguments) { /** * This function allows adding a value to the List inoutputArguments * - * @param inoutputArguments desired value to be added + * @param inoutputArgument desired value to be added * @return Builder object with new value for inoutputArguments */ - public B inoutputArguments(OperationVariable inoutputArguments) { - getBuildingInstance().getInoutputArguments().add(inoutputArguments); + public B inoutputArgument(OperationVariable inoutputArgument) { + getBuildingInstance().getInoutputArguments().add(inoutputArgument); return getSelf(); } @@ -59,11 +108,33 @@ public B outputArguments(List outputArguments) { /** * This function allows adding a value to the List outputArguments * - * @param outputArguments desired value to be added + * @param outputArgument desired value to be added * @return Builder object with new value for outputArguments */ - public B outputArguments(OperationVariable outputArguments) { - getBuildingInstance().getOutputArguments().add(outputArguments); + public B outputArgument(OperationVariable outputArgument) { + getBuildingInstance().getOutputArguments().add(outputArgument); + return getSelf(); + } + + /** + * This function allows setting a value for requestId + * + * @param requestIds desired value to be set + * @return Builder object with new value for requestId + */ + public B requestId(List requestIds) { + getBuildingInstance().setRequestId(requestIds); + return getSelf(); + } + + /** + * This function allows adding a value to the List requestId + * + * @param requestId desired value to be added + * @return Builder object with new value for requestId + */ + public B requestId(String requestId) { + getBuildingInstance().getRequestId().add(requestId); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java index 11cb9bd58..14c5737e7 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/OperationVariableBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java index 52271dc7b..fc4907127 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PackageDescriptionBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,16 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; +import java.util.List; + public abstract class PackageDescriptionBuilder< T extends PackageDescription, B extends PackageDescriptionBuilder> extends ExtendableBuilder { @@ -36,11 +39,11 @@ public B items(List items) { /** * This function allows adding a value to the List items * - * @param items desired value to be added + * @param item desired value to be added * @return Builder object with new value for items */ - public B items(String items) { - getBuildingInstance().getItems().add(items); + public B item(String item) { + getBuildingInstance().getItems().add(item); return getSelf(); } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java index 89739b108..cbdfc4626 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/PropertyBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class PropertyBuilder> extends ExtendableBuilder { @@ -141,11 +144,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -163,11 +166,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -196,11 +199,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -218,11 +221,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java index 109a8a8e1..139ce4041 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ProtocolInformationBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,26 +11,29 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; +import java.util.List; + public abstract class ProtocolInformationBuilder< T extends ProtocolInformation, B extends ProtocolInformationBuilder> extends ExtendableBuilder { /** - * This function allows setting a value for href + * This function allows setting a value for endpointAddress * - * @param href desired value to be set - * @return Builder object with new value for href + * @param endpointAddress desired value to be set + * @return Builder object with new value for endpointAddress */ - public B href(String href) { - getBuildingInstance().setHref(href); + public B endpointAddress(String endpointAddress) { + getBuildingInstance().setEndpointAddress(endpointAddress); return getSelf(); } @@ -48,22 +51,33 @@ public B endpointProtocol(String endpointProtocol) { /** * This function allows setting a value for endpointProtocolVersion * - * @param endpointProtocolVersions desired value to be set + * @param endpointProtocolVersion desired value to be set * @return Builder object with new value for endpointProtocolVersion */ - public B endpointProtocolVersion(List endpointProtocolVersions) { - getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersions); + public B endpointProtocolVersion(String endpointProtocolVersion) { + getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); return getSelf(); } /** - * This function allows adding a value to the List endpointProtocolVersion + * This function allows setting a value for securityAttributes * - * @param endpointProtocolVersion desired value to be added - * @return Builder object with new value for endpointProtocolVersion + * @param securityAttributes desired value to be set + * @return Builder object with new value for securityAttributes */ - public B endpointProtocolVersion(String endpointProtocolVersion) { - getBuildingInstance().getEndpointProtocolVersion().add(endpointProtocolVersion); + public B securityAttributes(List securityAttributes) { + getBuildingInstance().setSecurityAttributes(securityAttributes); + return getSelf(); + } + + /** + * This function allows adding a value to the List securityAttributes + * + * @param securityAttribute desired value to be added + * @return Builder object with new value for securityAttributes + */ + public B securityAttribute(SecurityAttributeObject securityAttribute) { + getBuildingInstance().getSecurityAttributes().add(securityAttribute); return getSelf(); } @@ -99,26 +113,4 @@ public B subprotocolBodyEncoding(String subprotocolBodyEncoding) { getBuildingInstance().setSubprotocolBodyEncoding(subprotocolBodyEncoding); return getSelf(); } - - /** - * This function allows setting a value for securityAttributes - * - * @param securityAttributes desired value to be set - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(List securityAttributes) { - getBuildingInstance().setSecurityAttributes(securityAttributes); - return getSelf(); - } - - /** - * This function allows adding a value to the List securityAttributes - * - * @param securityAttributes desired value to be added - * @return Builder object with new value for securityAttributes - */ - public B securityAttributes(SecurityAttributeObject securityAttributes) { - getBuildingInstance().getSecurityAttributes().add(securityAttributes); - return getSelf(); - } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java index a48e80623..5bb2ac362 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/QualifierBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,19 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class QualifierBuilder> extends ExtendableBuilder { @@ -104,11 +107,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java index adabaedea..7e0286920 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RangeBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Range; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; +import java.util.List; + public abstract class RangeBuilder> extends ExtendableBuilder { @@ -141,11 +144,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -163,11 +166,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -196,11 +199,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -218,11 +221,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java index 311df5fd5..78585ecc1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; +import java.util.List; + public abstract class ReferenceBuilder> extends ExtendableBuilder { @@ -59,11 +62,11 @@ public B keys(List keys) { /** * This function allows adding a value to the List keys * - * @param keys desired value to be added + * @param key desired value to be added * @return Builder object with new value for keys */ - public B keys(Key keys) { - getBuildingInstance().getKeys().add(keys); + public B key(Key key) { + getBuildingInstance().getKeys().add(key); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java index 6d0fec4e0..0cb80296c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ReferenceElementBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement; +import java.util.List; + public abstract class ReferenceElementBuilder< T extends ReferenceElement, B extends ReferenceElementBuilder> extends ExtendableBuilder { @@ -119,11 +122,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -141,11 +144,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -174,11 +177,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -196,11 +199,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java index ead574f37..01517fe58 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/RelationshipElementBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -24,6 +25,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement; +import java.util.List; + public abstract class RelationshipElementBuilder< T extends RelationshipElement, B extends RelationshipElementBuilder> extends ExtendableBuilder { @@ -130,11 +133,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -152,11 +155,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -185,11 +188,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -207,11 +210,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java index 6bcabd5a3..0daebfaca 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResourceBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java index 1f01ba015..14d2247d9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ResultBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,17 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; +import java.util.List; + public abstract class ResultBuilder> extends ExtendableBuilder { @@ -36,11 +39,22 @@ public B messages(List messages) { /** * This function allows adding a value to the List messages * - * @param messages desired value to be added + * @param message desired value to be added * @return Builder object with new value for messages */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); + public B message(Message message) { + getBuildingInstance().getMessages().add(message); + return getSelf(); + } + + /** + * This function allows setting a value for success + * + * @param success desired value to be set + * @return Builder object with new value for success + */ + public B success(boolean success) { + getBuildingInstance().setSuccess(success); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java index 2f8ddff00..8957a91e8 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityAttributeObjectBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; @@ -22,17 +24,6 @@ public abstract class SecurityAttributeObjectBuilder< T extends SecurityAttributeObject, B extends SecurityAttributeObjectBuilder> extends ExtendableBuilder { - /** - * This function allows setting a value for type - * - * @param type desired value to be set - * @return Builder object with new value for type - */ - public B type(SecurityTypeEnum type) { - getBuildingInstance().setType(type); - return getSelf(); - } - /** * This function allows setting a value for key * @@ -54,4 +45,15 @@ public B value(String value) { getBuildingInstance().setValue(value); return getSelf(); } + + /** + * This function allows setting a value for type + * + * @param type desired value to be set + * @return Builder object with new value for type + */ + public B type(SecurityTypeEnum type) { + getBuildingInstance().setType(type); + return getSelf(); + } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java index 4779ec05c..3b70f4182 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SecurityTypeEnumBuilder.java @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java index e11ab9eaf..1958cac55 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SpecificAssetIdBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,17 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; +import java.util.List; + public abstract class SpecificAssetIdBuilder< T extends SpecificAssetId, B extends SpecificAssetIdBuilder> extends ExtendableBuilder { @@ -81,11 +84,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java index 60c5739e0..f351336cb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -27,6 +28,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Submodel; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; +import java.util.List; + public abstract class SubmodelBuilder> extends ExtendableBuilder { @@ -44,11 +47,11 @@ public B submodelElements(List submodelElements) { /** * This function allows adding a value to the List submodelElements * - * @param submodelElements desired value to be added + * @param submodelElement desired value to be added * @return Builder object with new value for submodelElements */ - public B submodelElements(SubmodelElement submodelElements) { - getBuildingInstance().getSubmodelElements().add(submodelElements); + public B submodelElement(SubmodelElement submodelElement) { + getBuildingInstance().getSubmodelElements().add(submodelElement); return getSelf(); } @@ -66,11 +69,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -99,11 +102,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -121,11 +124,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } @@ -242,11 +245,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java index 21e4c8c20..bd0a67b86 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelDescriptorBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,19 +11,21 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; +import java.util.List; + public abstract class SubmodelDescriptorBuilder< T extends SubmodelDescriptor, B extends SubmodelDescriptorBuilder> extends ExtendableBuilder { @@ -40,24 +42,24 @@ public B administration(AdministrativeInformation administration) { } /** - * This function allows setting a value for endpoints + * This function allows setting a value for description * - * @param endpoints desired value to be set - * @return Builder object with new value for endpoints + * @param description desired value to be set + * @return Builder object with new value for description */ - public B endpoints(List endpoints) { - getBuildingInstance().setEndpoints(endpoints); + public B description(LangStringTextType description) { + getBuildingInstance().setDescription(description); return getSelf(); } /** - * This function allows adding a value to the List endpoints + * This function allows setting a value for displayName * - * @param endpoints desired value to be added - * @return Builder object with new value for endpoints + * @param displayName desired value to be set + * @return Builder object with new value for displayName */ - public B endpoints(Endpoint endpoints) { - getBuildingInstance().getEndpoints().add(endpoints); + public B displayName(LangStringNameType displayName) { + getBuildingInstance().setDisplayName(displayName); return getSelf(); } @@ -73,13 +75,13 @@ public B idShort(String idShort) { } /** - * This function allows setting a value for id + * This function allows setting a value for identification * - * @param id desired value to be set - * @return Builder object with new value for id + * @param identification desired value to be set + * @return Builder object with new value for identification */ - public B id(String id) { - getBuildingInstance().setId(id); + public B identification(String identification) { + getBuildingInstance().setIdentification(identification); return getSelf(); } @@ -95,90 +97,24 @@ public B semanticId(Reference semanticId) { } /** - * This function allows setting a value for supplementalSemanticId - * - * @param supplementalSemanticIds desired value to be set - * @return Builder object with new value for supplementalSemanticId - */ - public B supplementalSemanticId(List supplementalSemanticIds) { - getBuildingInstance().setSupplementalSemanticId(supplementalSemanticIds); - return getSelf(); - } - - /** - * This function allows adding a value to the List supplementalSemanticId - * - * @param supplementalSemanticId desired value to be added - * @return Builder object with new value for supplementalSemanticId - */ - public B supplementalSemanticId(Reference supplementalSemanticId) { - getBuildingInstance().getSupplementalSemanticId().add(supplementalSemanticId); - return getSelf(); - } - - /** - * This function allows setting a value for description - * - * @param descriptions desired value to be set - * @return Builder object with new value for description - */ - public B description(List descriptions) { - getBuildingInstance().setDescription(descriptions); - return getSelf(); - } - - /** - * This function allows adding a value to the List description - * - * @param description desired value to be added - * @return Builder object with new value for description - */ - public B description(LangStringTextType description) { - getBuildingInstance().getDescription().add(description); - return getSelf(); - } - - /** - * This function allows setting a value for displayName - * - * @param displayNames desired value to be set - * @return Builder object with new value for displayName - */ - public B displayName(List displayNames) { - getBuildingInstance().setDisplayName(displayNames); - return getSelf(); - } - - /** - * This function allows adding a value to the List displayName - * - * @param displayName desired value to be added - * @return Builder object with new value for displayName - */ - public B displayName(LangStringNameType displayName) { - getBuildingInstance().getDisplayName().add(displayName); - return getSelf(); - } - - /** - * This function allows setting a value for extensions + * This function allows setting a value for endpoints * - * @param extensions desired value to be set - * @return Builder object with new value for extensions + * @param endpoints desired value to be set + * @return Builder object with new value for endpoints */ - public B extensions(List extensions) { - getBuildingInstance().setExtensions(extensions); + public B endpoints(List endpoints) { + getBuildingInstance().setEndpoints(endpoints); return getSelf(); } /** - * This function allows adding a value to the List extensions + * This function allows adding a value to the List endpoints * - * @param extensions desired value to be added - * @return Builder object with new value for extensions + * @param endpoint desired value to be added + * @return Builder object with new value for endpoints */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B endpoint(Endpoint endpoint) { + getBuildingInstance().getEndpoints().add(endpoint); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java index c3b9824fd..7f4cf9a97 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes; +import java.util.List; + public abstract class SubmodelElementAttributesBuilder< T extends SubmodelElementAttributes, B extends SubmodelElementAttributesBuilder> extends ExtendableBuilder { @@ -120,11 +123,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -142,11 +145,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -175,11 +178,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -197,11 +200,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java index ec6d1ce71..95dfe2198 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementCollectionBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -25,6 +26,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection; +import java.util.List; + public abstract class SubmodelElementCollectionBuilder< T extends SubmodelElementCollection, B extends SubmodelElementCollectionBuilder> extends ExtendableBuilder { @@ -131,11 +134,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -153,11 +156,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -186,11 +189,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -208,11 +211,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java index bba8410ec..c4549d3fb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementListBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,11 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -27,6 +28,8 @@ import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList; +import java.util.List; + public abstract class SubmodelElementListBuilder< T extends SubmodelElementList, B extends SubmodelElementListBuilder> extends ExtendableBuilder { @@ -177,11 +180,11 @@ public B extensions(List extensions) { /** * This function allows adding a value to the List extensions * - * @param extensions desired value to be added + * @param extension desired value to be added * @return Builder object with new value for extensions */ - public B extensions(Extension extensions) { - getBuildingInstance().getExtensions().add(extensions); + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); return getSelf(); } @@ -199,11 +202,11 @@ public B embeddedDataSpecifications(List embeddedData /** * This function allows adding a value to the List embeddedDataSpecifications * - * @param embeddedDataSpecifications desired value to be added + * @param embeddedDataSpecification desired value to be added * @return Builder object with new value for embeddedDataSpecifications */ - public B embeddedDataSpecifications(EmbeddedDataSpecification embeddedDataSpecifications) { - getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecifications); + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); return getSelf(); } @@ -232,11 +235,11 @@ public B supplementalSemanticIds(List supplementalSemanticIds) { /** * This function allows adding a value to the List supplementalSemanticIds * - * @param supplementalSemanticIds desired value to be added + * @param supplementalSemanticId desired value to be added * @return Builder object with new value for supplementalSemanticIds */ - public B supplementalSemanticIds(Reference supplementalSemanticIds) { - getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticIds); + public B supplementalSemanticId(Reference supplementalSemanticId) { + getBuildingInstance().getSupplementalSemanticIds().add(supplementalSemanticId); return getSelf(); } @@ -254,11 +257,11 @@ public B qualifiers(List qualifiers) { /** * This function allows adding a value to the List qualifiers * - * @param qualifiers desired value to be added + * @param qualifier desired value to be added * @return Builder object with new value for qualifiers */ - public B qualifiers(Qualifier qualifiers) { - getBuildingInstance().getQualifiers().add(qualifiers); + public B qualifier(Qualifier qualifier) { + getBuildingInstance().getQualifiers().add(qualifier); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java index dd0ce9b9c..b182924ff 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueListBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,17 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; -import java.util.List; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; +import java.util.List; + public abstract class ValueListBuilder> extends ExtendableBuilder { @@ -36,11 +39,11 @@ public B valueReferencePairs(List valueReferencePairs) { /** * This function allows adding a value to the List valueReferencePairs * - * @param valueReferencePairs desired value to be added + * @param valueReferencePair desired value to be added * @return Builder object with new value for valueReferencePairs */ - public B valueReferencePairs(ValueReferencePair valueReferencePairs) { - getBuildingInstance().getValueReferencePairs().add(valueReferencePairs); + public B valueReferencePair(ValueReferencePair valueReferencePair) { + getBuildingInstance().getValueReferencePairs().add(valueReferencePair); return getSelf(); } } diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java index ddd4e9a7f..fa5ef20bd 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/ValueReferencePairBuilder.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,6 +11,8 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.builder; diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java index 3b61db249..46b2c9b12 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAdministrativeInformation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,19 +11,22 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AdministrativeInformationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation @@ -33,29 +36,64 @@ @IRI("aas:AdministrativeInformation") public class DefaultAdministrativeInformation implements AdministrativeInformation { - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/creator") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/createdAt") + protected String createdAt; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/creator") protected Reference creator; - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/revision") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") protected String revision; - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/templateId") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") protected String templateId; - @IRI("https://admin-shell.io/aas/3/0/AdministrativeInformation/version") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/updatedAt") + protected String updatedAt; + + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/version") protected String version; - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); public DefaultAdministrativeInformation() {} + @Override + public String toString() { + return "DefaultAdministrativeInformation{" + + "version='" + + version + + "'," + + "revision='" + + revision + + "'," + + "creator='" + + creator + + "'," + + "createdAt='" + + createdAt + + "'," + + "updatedAt='" + + updatedAt + + "'," + + "templateId='" + + templateId + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( this.version, this.revision, this.creator, + this.createdAt, + this.updatedAt, this.templateId, this.embeddedDataSpecifications); } @@ -73,6 +111,8 @@ public boolean equals(Object obj) { return Objects.equals(this.version, other.version) && Objects.equals(this.revision, other.revision) && Objects.equals(this.creator, other.creator) + && Objects.equals(this.createdAt, other.createdAt) + && Objects.equals(this.updatedAt, other.updatedAt) && Objects.equals(this.templateId, other.templateId) && Objects.equals(this.embeddedDataSpecifications, other.embeddedDataSpecifications); } @@ -108,6 +148,26 @@ public void setCreator(Reference creator) { this.creator = creator; } + @Override + public String getCreatedAt() { + return createdAt; + } + + @Override + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + @Override + public String getUpdatedAt() { + return updatedAt; + } + + @Override + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + @Override public String getTemplateId() { return templateId; @@ -129,15 +189,9 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } - public String toString() { - return String.format( - "DefaultAdministrativeInformation (" - + "version=%s," - + "revision=%s," - + "creator=%s," - + "templateId=%s," - + ")", - this.version, this.revision, this.creator, this.templateId); + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); } /** This builder class can be used to construct a DefaultAdministrativeInformation bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java index ed9ab78ac..752172596 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAnnotatedRelationshipElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement; import org.eclipse.digitaltwin.aas4j.v3.model.DataElement; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AnnotatedRelationshipElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AnnotatedRelationshipElement @@ -39,44 +42,86 @@ @IRI("aas:AnnotatedRelationshipElement") public class DefaultAnnotatedRelationshipElement implements AnnotatedRelationshipElement { - @IRI("https://admin-shell.io/aas/3/0/AnnotatedRelationshipElement/annotations") + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") protected List annotations = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") protected Reference first; - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") protected Reference second; public DefaultAnnotatedRelationshipElement() {} + @Override + public String toString() { + return "DefaultAnnotatedRelationshipElement{" + + "annotations='" + + annotations + + "'," + + "first='" + + first + + "'," + + "second='" + + second + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -129,6 +174,11 @@ public void setAnnotations(List annotations) { this.annotations = annotations; } + @Override + public void setAnnotation(DataElement annotation) { + this.annotations.add(annotation); + } + @Override public Reference getFirst() { return first; @@ -179,6 +229,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -189,6 +244,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -199,6 +259,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -210,6 +275,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -230,6 +300,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -240,9 +315,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultAnnotatedRelationshipElement (" + "annotations=%s," + ")", this.annotations); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java index 83d966ac8..769c3390d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShell.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell * @@ -37,41 +40,80 @@ @IRI("aas:AssetAdministrationShell") public class DefaultAssetAdministrationShell implements AssetAdministrationShell { - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") protected AssetInformation assetInformation; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") protected Reference derivedFrom; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") protected List submodels = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") protected String id; - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultAssetAdministrationShell() {} + @Override + public String toString() { + return "DefaultAssetAdministrationShell{" + + "derivedFrom='" + + derivedFrom + + "'," + + "assetInformation='" + + assetInformation + + "'," + + "submodels='" + + submodels + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "administration='" + + administration + + "'," + + "id='" + + id + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -142,6 +184,11 @@ public void setSubmodels(List submodels) { this.submodels = submodels; } + @Override + public void setSubmodel(Reference submodel) { + this.submodels.add(submodel); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -153,6 +200,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public AdministrativeInformation getAdministration() { return administration; @@ -203,6 +255,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -213,6 +270,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -223,14 +285,9 @@ public void setExtensions(List extensions) { this.extensions = extensions; } - public String toString() { - return String.format( - "DefaultAssetAdministrationShell (" - + "derivedFrom=%s," - + "assetInformation=%s," - + "submodels=%s," - + ")", - this.derivedFrom, this.assetInformation, this.submodels); + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); } /** This builder class can be used to construct a DefaultAssetAdministrationShell bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java index f8ba2f18a..e38afdb01 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetAdministrationShellDescriptor.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,25 +11,27 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetAdministrationShellDescriptorBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShellDescriptor @@ -38,59 +40,80 @@ public class DefaultAssetAdministrationShellDescriptor implements AssetAdministrationShellDescriptor { - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetKind") - protected AssetKind assetKind; + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/description") + protected LangStringTextType description; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/assetType") - protected String assetType; + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + protected LangStringNameType displayName; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/endpoints") - protected List endpoints = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/globalAssetId") - protected String globalAssetId; + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + protected Reference globalAssetId; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/id") - protected String id; - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/idShort") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/specificAssetIds") - protected List specificAssetIds = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/AssetAdministrationShellDescriptor/submodelDescriptors") - protected List submodelDescriptors = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/identification") + protected String identification; - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - protected List description = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") + protected List specificAssetIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - protected List displayName = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/submodelDescriptors") + protected SubmodelDescriptor submodelDescriptors; - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - protected List extensions = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); public DefaultAssetAdministrationShellDescriptor() {} + @Override + public String toString() { + return "DefaultAssetAdministrationShellDescriptor{" + + "administration='" + + administration + + "'," + + "description='" + + description + + "'," + + "displayName='" + + displayName + + "'," + + "globalAssetId='" + + globalAssetId + + "'," + + "idShort='" + + idShort + + "'," + + "identification='" + + identification + + "'," + + "specificAssetIds='" + + specificAssetIds + + "'," + + "submodelDescriptors='" + + submodelDescriptors + + "'," + + "endpoints='" + + endpoints + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( this.administration, - this.assetKind, - this.assetType, - this.endpoints, + this.description, + this.displayName, this.globalAssetId, this.idShort, - this.id, + this.identification, this.specificAssetIds, this.submodelDescriptors, - this.description, - this.displayName, - this.extensions); + this.endpoints); } @Override @@ -105,17 +128,14 @@ public boolean equals(Object obj) { DefaultAssetAdministrationShellDescriptor other = (DefaultAssetAdministrationShellDescriptor) obj; return Objects.equals(this.administration, other.administration) - && Objects.equals(this.assetKind, other.assetKind) - && Objects.equals(this.assetType, other.assetType) - && Objects.equals(this.endpoints, other.endpoints) + && Objects.equals(this.description, other.description) + && Objects.equals(this.displayName, other.displayName) && Objects.equals(this.globalAssetId, other.globalAssetId) && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.id, other.id) + && Objects.equals(this.identification, other.identification) && Objects.equals(this.specificAssetIds, other.specificAssetIds) && Objects.equals(this.submodelDescriptors, other.submodelDescriptors) - && Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.extensions, other.extensions); + && Objects.equals(this.endpoints, other.endpoints); } } @@ -130,42 +150,32 @@ public void setAdministration(AdministrativeInformation administration) { } @Override - public AssetKind getAssetKind() { - return assetKind; - } - - @Override - public void setAssetKind(AssetKind assetKind) { - this.assetKind = assetKind; - } - - @Override - public String getAssetType() { - return assetType; + public LangStringTextType getDescription() { + return description; } @Override - public void setAssetType(String assetType) { - this.assetType = assetType; + public void setDescription(LangStringTextType description) { + this.description = description; } @Override - public List getEndpoints() { - return endpoints; + public LangStringNameType getDisplayName() { + return displayName; } @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; + public void setDisplayName(LangStringNameType displayName) { + this.displayName = displayName; } @Override - public String getGlobalAssetId() { + public Reference getGlobalAssetId() { return globalAssetId; } @Override - public void setGlobalAssetId(String globalAssetId) { + public void setGlobalAssetId(Reference globalAssetId) { this.globalAssetId = globalAssetId; } @@ -180,13 +190,13 @@ public void setIdShort(String idShort) { } @Override - public String getId() { - return id; + public String getIdentification() { + return identification; } @Override - public void setId(String id) { - this.id = id; + public void setIdentification(String identification) { + this.identification = identification; } @Override @@ -200,67 +210,33 @@ public void setSpecificAssetIds(List specificAssetIds) { } @Override - public List getSubmodelDescriptors() { - return submodelDescriptors; - } - - @Override - public void setSubmodelDescriptors(List submodelDescriptors) { - this.submodelDescriptors = submodelDescriptors; + public void setSpecificAssetId(SpecificAssetId specificAssetId) { + this.specificAssetIds.add(specificAssetId); } @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; + public SubmodelDescriptor getSubmodelDescriptors() { + return submodelDescriptors; } @Override - public List getDisplayName() { - return displayName; + public void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors) { + this.submodelDescriptors = submodelDescriptors; } @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; + public List getEndpoints() { + return endpoints; } @Override - public List getExtensions() { - return extensions; + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultAssetAdministrationShellDescriptor (" - + "administration=%s," - + "assetKind=%s," - + "assetType=%s," - + "endpoints=%s," - + "globalAssetId=%s," - + "idShort=%s," - + "id=%s," - + "specificAssetIds=%s," - + "submodelDescriptors=%s," - + ")", - this.administration, - this.assetKind, - this.assetType, - this.endpoints, - this.globalAssetId, - this.idShort, - this.id, - this.specificAssetIds, - this.submodelDescriptors); + public void setEndpoint(Endpoint endpoint) { + this.endpoints.add(endpoint); } /** diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java index 2d017788c..a0208b5c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultAssetInformation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation; import org.eclipse.digitaltwin.aas4j.v3.model.AssetKind; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; @@ -25,6 +24,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.AssetInformationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.AssetInformation * @@ -34,23 +37,44 @@ @IRI("aas:AssetInformation") public class DefaultAssetInformation implements AssetInformation { - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetKind") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") protected AssetKind assetKind; - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/assetType") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") protected String assetType; - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/defaultThumbnail") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") protected Resource defaultThumbnail; - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") protected String globalAssetId; - @IRI("https://admin-shell.io/aas/3/0/AssetInformation/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/specificAssetIds") protected List specificAssetIds = new ArrayList<>(); public DefaultAssetInformation() {} + @Override + public String toString() { + return "DefaultAssetInformation{" + + "assetKind='" + + assetKind + + "'," + + "globalAssetId='" + + globalAssetId + + "'," + + "specificAssetIds='" + + specificAssetIds + + "'," + + "assetType='" + + assetType + + "'," + + "defaultThumbnail='" + + defaultThumbnail + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -109,6 +133,11 @@ public void setSpecificAssetIds(List specificAssetIds) { this.specificAssetIds = specificAssetIds; } + @Override + public void setSpecificAssetId(SpecificAssetId specificAssetId) { + this.specificAssetIds.add(specificAssetId); + } + @Override public String getAssetType() { return assetType; @@ -129,22 +158,6 @@ public void setDefaultThumbnail(Resource defaultThumbnail) { this.defaultThumbnail = defaultThumbnail; } - public String toString() { - return String.format( - "DefaultAssetInformation (" - + "assetKind=%s," - + "globalAssetId=%s," - + "specificAssetIds=%s," - + "assetType=%s," - + "defaultThumbnail=%s," - + ")", - this.assetKind, - this.globalAssetId, - this.specificAssetIds, - this.assetType, - this.defaultThumbnail); - } - /** This builder class can be used to construct a DefaultAssetInformation bean. */ public static class Builder extends AssetInformationBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java index f8e1b4be1..c8a5cec1f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBaseOperationResult.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,37 +11,46 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; -import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BaseOperationResultBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BaseOperationResult */ @IRI("aas:BaseOperationResult") public class DefaultBaseOperationResult implements BaseOperationResult { - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/executionState") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") protected ExecutionState executionState; - @IRI("https://admin-shell.io/aas/3/0/BaseOperationResult/success") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") protected boolean success; - @IRI("https://admin-shell.io/aas/3/0/Result/messages") - protected List messages = new ArrayList<>(); - public DefaultBaseOperationResult() {} + @Override + public String toString() { + return "DefaultBaseOperationResult{" + + "executionState='" + + executionState + + "'," + + "success='" + + success + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.executionState, this.success, this.messages); + return Objects.hash(this.executionState, this.success); } @Override @@ -55,8 +64,7 @@ public boolean equals(Object obj) { } else { DefaultBaseOperationResult other = (DefaultBaseOperationResult) obj; return Objects.equals(this.executionState, other.executionState) - && Objects.equals(this.success, other.success) - && Objects.equals(this.messages, other.messages); + && Objects.equals(this.success, other.success); } } @@ -80,22 +88,6 @@ public void setSuccess(boolean success) { this.success = success; } - @Override - public List getMessages() { - return messages; - } - - @Override - public void setMessages(List messages) { - this.messages = messages; - } - - public String toString() { - return String.format( - "DefaultBaseOperationResult (" + "executionState=%s," + "success=%s," + ")", - this.executionState, this.success); - } - /** This builder class can be used to construct a DefaultBaseOperationResult bean. */ public static class Builder extends BaseOperationResultBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java index edf994bea..4a0cc597c 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBasicEventElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement; import org.eclipse.digitaltwin.aas4j.v3.model.Direction; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -30,6 +29,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BasicEventElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.BasicEventElement * @@ -38,59 +41,116 @@ @IRI("aas:BasicEventElement") public class DefaultBasicEventElement implements BasicEventElement { - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/direction") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") protected Direction direction; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/lastUpdate") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") protected String lastUpdate; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/maxInterval") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") protected String maxInterval; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageBroker") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") protected Reference messageBroker; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/messageTopic") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") protected String messageTopic; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/minInterval") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") protected String minInterval; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/observed") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") protected Reference observed; - @IRI("https://admin-shell.io/aas/3/0/BasicEventElement/state") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") protected StateOfEvent state; - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultBasicEventElement() {} + @Override + public String toString() { + return "DefaultBasicEventElement{" + + "observed='" + + observed + + "'," + + "direction='" + + direction + + "'," + + "state='" + + state + + "'," + + "messageTopic='" + + messageTopic + + "'," + + "messageBroker='" + + messageBroker + + "'," + + "lastUpdate='" + + lastUpdate + + "'," + + "minInterval='" + + minInterval + + "'," + + "maxInterval='" + + maxInterval + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -253,6 +313,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -263,6 +328,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -273,6 +343,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -284,6 +359,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -304,6 +384,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -314,26 +399,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultBasicEventElement (" - + "observed=%s," - + "direction=%s," - + "state=%s," - + "messageTopic=%s," - + "messageBroker=%s," - + "lastUpdate=%s," - + "minInterval=%s," - + "maxInterval=%s," - + ")", - this.observed, - this.direction, - this.state, - this.messageTopic, - this.messageBroker, - this.lastUpdate, - this.minInterval, - this.maxInterval); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultBasicEventElement bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java index 92d1765ff..4ee82eba1 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultBlob.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,14 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Blob; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,6 +27,11 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.BlobBuilder; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Blob * @@ -38,41 +41,80 @@ @IRI("aas:Blob") public class DefaultBlob implements Blob { - @IRI("https://admin-shell.io/aas/3/0/Blob/contentType") + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") protected String contentType; - @IRI("https://admin-shell.io/aas/3/0/Blob/value") + @IRI("https://admin-shell.io/aas/3/2/Blob/value") protected byte[] value; - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultBlob() {} + @Override + public String toString() { + return "DefaultBlob{" + + "value='" + + value + + "'," + + "contentType='" + + contentType + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -163,6 +205,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -173,6 +220,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -183,6 +235,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -194,6 +251,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -214,6 +276,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -224,9 +291,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultBlob (" + "value=%s," + "contentType=%s," + ")", this.value, this.contentType); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultBlob bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java index 01f747361..778d16812 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCapability.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Capability; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -28,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.CapabilityBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Capability * @@ -37,35 +40,68 @@ @IRI("aas:Capability") public class DefaultCapability implements Capability { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultCapability() {} + @Override + public String toString() { + return "DefaultCapability{" + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -132,6 +168,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -142,6 +183,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -152,6 +198,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -163,6 +214,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -183,6 +239,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -193,8 +254,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format("DefaultCapability (" + ")"); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultCapability bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java index dc83bcd49..93aa068d9 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultConceptDescription.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -28,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ConceptDescriptionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription * @@ -37,35 +40,68 @@ @IRI("aas:ConceptDescription") public class DefaultConceptDescription implements ConceptDescription { - @IRI("https://admin-shell.io/aas/3/0/ConceptDescription/isCaseOf") + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") protected List isCaseOf = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") protected String id; - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultConceptDescription() {} + @Override + public String toString() { + return "DefaultConceptDescription{" + + "isCaseOf='" + + isCaseOf + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "administration='" + + administration + + "'," + + "id='" + + id + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -112,6 +148,11 @@ public void setIsCaseOf(List isCaseOfs) { this.isCaseOf = isCaseOfs; } + @Override + public void setIsCaseOf(Reference isCaseOf) { + this.isCaseOf.add(isCaseOf); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -123,6 +164,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public AdministrativeInformation getAdministration() { return administration; @@ -173,6 +219,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -183,6 +234,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -193,8 +249,9 @@ public void setExtensions(List extensions) { this.extensions = extensions; } - public String toString() { - return String.format("DefaultConceptDescription (" + "isCaseOf=%s," + ")", this.isCaseOf); + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); } /** This builder class can be used to construct a DefaultConceptDescription bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java index c01f1a7d8..f7d425603 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DataSpecificationIec61360Builder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationIec61360 @@ -39,44 +42,86 @@ @IRI("aas:DataSpecificationIec61360") public class DefaultDataSpecificationIec61360 implements DataSpecificationIec61360 { - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/dataType") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") protected DataTypeIec61360 dataType; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/definition") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") protected List definition = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/levelType") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") protected LevelType levelType; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") protected List preferredName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/shortName") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") protected List shortName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/sourceOfDefinition") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") protected String sourceOfDefinition; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/symbol") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") protected String symbol; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unit") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") protected String unit; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/unitId") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") protected Reference unitId; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") protected String value; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueFormat") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") protected String valueFormat; - @IRI("https://admin-shell.io/aas/3/0/DataSpecificationIec61360/valueList") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueList") protected ValueList valueList; public DefaultDataSpecificationIec61360() {} + @Override + public String toString() { + return "DefaultDataSpecificationIec61360{" + + "preferredName='" + + preferredName + + "'," + + "shortName='" + + shortName + + "'," + + "unit='" + + unit + + "'," + + "unitId='" + + unitId + + "'," + + "sourceOfDefinition='" + + sourceOfDefinition + + "'," + + "symbol='" + + symbol + + "'," + + "dataType='" + + dataType + + "'," + + "definition='" + + definition + + "'," + + "valueFormat='" + + valueFormat + + "'," + + "valueList='" + + valueList + + "'," + + "value='" + + value + + "'," + + "levelType='" + + levelType + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -129,6 +174,11 @@ public void setPreferredName(List preferred this.preferredName = preferredNames; } + @Override + public void setPreferredName(LangStringPreferredNameTypeIec61360 preferredName) { + this.preferredName.add(preferredName); + } + @Override public List getShortName() { return shortName; @@ -139,6 +189,11 @@ public void setShortName(List shortNames) { this.shortName = shortNames; } + @Override + public void setShortName(LangStringShortNameTypeIec61360 shortName) { + this.shortName.add(shortName); + } + @Override public String getUnit() { return unit; @@ -199,6 +254,11 @@ public void setDefinition(List definitions) { this.definition = definitions; } + @Override + public void setDefinition(LangStringDefinitionTypeIec61360 definition) { + this.definition.add(definition); + } + @Override public String getValueFormat() { return valueFormat; @@ -239,36 +299,6 @@ public void setLevelType(LevelType levelType) { this.levelType = levelType; } - public String toString() { - return String.format( - "DefaultDataSpecificationIec61360 (" - + "preferredName=%s," - + "shortName=%s," - + "unit=%s," - + "unitId=%s," - + "sourceOfDefinition=%s," - + "symbol=%s," - + "dataType=%s," - + "definition=%s," - + "valueFormat=%s," - + "valueList=%s," - + "value=%s," - + "levelType=%s," - + ")", - this.preferredName, - this.shortName, - this.unit, - this.unitId, - this.sourceOfDefinition, - this.symbol, - this.dataType, - this.definition, - this.valueFormat, - this.valueList, - this.value, - this.levelType); - } - /** This builder class can be used to construct a DefaultDataSpecificationIec61360 bean. */ public static class Builder extends DataSpecificationIec61360Builder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationUom.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationUom.java new file mode 100644 index 000000000..458d01635 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDataSpecificationUom.java @@ -0,0 +1,237 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationUom; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeUom; +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringUom; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.DataSpecificationUomBuilder; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationUom + * + *

Content of data specification template for concept descriptions for Units of Measurement. + */ +@IRI("aas:DataSpecificationUom") +public class DefaultDataSpecificationUom implements DataSpecificationUom { + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystem") + protected String classificationSystem; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/classificationSystemVersion") + protected String classificationSystemVersion; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/definition") + protected List definition = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredName") + protected List preferredName = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/preferredNameQuantity") + protected List preferredNameQuantity = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/quantityId") + protected String quantityId; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/specificUnitId") + protected String specificUnitId; + + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationUom/symbol") + protected String symbol; + + public DefaultDataSpecificationUom() {} + + @Override + public String toString() { + return "DefaultDataSpecificationUom{" + + "preferredName='" + + preferredName + + "'," + + "symbol='" + + symbol + + "'," + + "specificUnitId='" + + specificUnitId + + "'," + + "definition='" + + definition + + "'," + + "preferredNameQuantity='" + + preferredNameQuantity + + "'," + + "quantityId='" + + quantityId + + "'," + + "classificationSystem='" + + classificationSystem + + "'," + + "classificationSystemVersion='" + + classificationSystemVersion + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash( + this.preferredName, + this.symbol, + this.specificUnitId, + this.definition, + this.preferredNameQuantity, + this.quantityId, + this.classificationSystem, + this.classificationSystemVersion); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultDataSpecificationUom other = (DefaultDataSpecificationUom) obj; + return Objects.equals(this.preferredName, other.preferredName) + && Objects.equals(this.symbol, other.symbol) + && Objects.equals(this.specificUnitId, other.specificUnitId) + && Objects.equals(this.definition, other.definition) + && Objects.equals(this.preferredNameQuantity, other.preferredNameQuantity) + && Objects.equals(this.quantityId, other.quantityId) + && Objects.equals(this.classificationSystem, other.classificationSystem) + && Objects.equals(this.classificationSystemVersion, other.classificationSystemVersion); + } + } + + @Override + public List getPreferredName() { + return preferredName; + } + + @Override + public void setPreferredName(List preferredNames) { + this.preferredName = preferredNames; + } + + @Override + public void setPreferredName(LangStringUom preferredName) { + this.preferredName.add(preferredName); + } + + @Override + public String getSymbol() { + return symbol; + } + + @Override + public void setSymbol(String symbol) { + this.symbol = symbol; + } + + @Override + public String getSpecificUnitId() { + return specificUnitId; + } + + @Override + public void setSpecificUnitId(String specificUnitId) { + this.specificUnitId = specificUnitId; + } + + @Override + public List getDefinition() { + return definition; + } + + @Override + public void setDefinition(List definitions) { + this.definition = definitions; + } + + @Override + public void setDefinition(LangStringDefinitionTypeUom definition) { + this.definition.add(definition); + } + + @Override + public List getPreferredNameQuantity() { + return preferredNameQuantity; + } + + @Override + public void setPreferredNameQuantity(List preferredNameQuantities) { + this.preferredNameQuantity = preferredNameQuantities; + } + + @Override + public void setPreferredNameQuantity(LangStringUom preferredNameQuantity) { + this.preferredNameQuantity.add(preferredNameQuantity); + } + + @Override + public String getQuantityId() { + return quantityId; + } + + @Override + public void setQuantityId(String quantityId) { + this.quantityId = quantityId; + } + + @Override + public String getClassificationSystem() { + return classificationSystem; + } + + @Override + public void setClassificationSystem(String classificationSystem) { + this.classificationSystem = classificationSystem; + } + + @Override + public String getClassificationSystemVersion() { + return classificationSystemVersion; + } + + @Override + public void setClassificationSystemVersion(String classificationSystemVersion) { + this.classificationSystemVersion = classificationSystemVersion; + } + + /** This builder class can be used to construct a DefaultDataSpecificationUom bean. */ + public static class Builder + extends DataSpecificationUomBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultDataSpecificationUom newBuildingInstance() { + return new DefaultDataSpecificationUom(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java index 98b9b9198..184715d56 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultDescriptor.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,38 +11,38 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Descriptor; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; -import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; +import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.DescriptorBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Descriptor */ @IRI("aas:Descriptor") public class DefaultDescriptor implements Descriptor { - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - protected List extensions = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); public DefaultDescriptor() {} + @Override + public String toString() { + return "DefaultDescriptor{" + "endpoints='" + endpoints + "'," + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.description, this.displayName, this.extensions); + return Objects.hash(this.endpoints); } @Override @@ -55,46 +55,23 @@ public boolean equals(Object obj) { return false; } else { DefaultDescriptor other = (DefaultDescriptor) obj; - return Objects.equals(this.description, other.description) - && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.extensions, other.extensions); + return Objects.equals(this.endpoints, other.endpoints); } } @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getDisplayName() { - return displayName; + public List getEndpoints() { + return endpoints; } @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; } @Override - public List getExtensions() { - return extensions; - } - - @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultDescriptor (" + "description=%s," + "displayName=%s," + "extensions=%s," + ")", - this.description, this.displayName, this.extensions); + public void setEndpoint(Endpoint endpoint) { + this.endpoints.add(endpoint); } /** This builder class can be used to construct a DefaultDescriptor bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java index 985c3a1e7..77ab11525 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEmbeddedDataSpecification.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,17 +11,20 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataSpecificationContent; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EmbeddedDataSpecificationBuilder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification @@ -31,14 +34,26 @@ @IRI("aas:EmbeddedDataSpecification") public class DefaultEmbeddedDataSpecification implements EmbeddedDataSpecification { - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification") + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") protected Reference dataSpecification; - @IRI("https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent") + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecificationContent") protected DataSpecificationContent dataSpecificationContent; public DefaultEmbeddedDataSpecification() {} + @Override + public String toString() { + return "DefaultEmbeddedDataSpecification{" + + "dataSpecification='" + + dataSpecification + + "'," + + "dataSpecificationContent='" + + dataSpecificationContent + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.dataSpecification, this.dataSpecificationContent); @@ -79,15 +94,6 @@ public void setDataSpecificationContent(DataSpecificationContent dataSpecificati this.dataSpecificationContent = dataSpecificationContent; } - public String toString() { - return String.format( - "DefaultEmbeddedDataSpecification (" - + "dataSpecification=%s," - + "dataSpecificationContent=%s," - + ")", - this.dataSpecification, this.dataSpecificationContent); - } - /** This builder class can be used to construct a DefaultEmbeddedDataSpecification bean. */ public static class Builder extends EmbeddedDataSpecificationBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java index 58f30f88e..25444b042 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEndpoint.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,28 +11,43 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EndpointBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Endpoint */ @IRI("aas:Endpoint") public class DefaultEndpoint implements Endpoint { - @IRI("https://admin-shell.io/aas/3/0/Endpoint/_interface") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") protected String _interface; - @IRI("https://admin-shell.io/aas/3/0/Endpoint/protocolInformation") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") protected ProtocolInformation protocolInformation; public DefaultEndpoint() {} + @Override + public String toString() { + return "DefaultEndpoint{" + + "_interface='" + + _interface + + "'," + + "protocolInformation='" + + protocolInformation + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this._interface, this.protocolInformation); @@ -73,12 +88,6 @@ public void setProtocolInformation(ProtocolInformation protocolInformation) { this.protocolInformation = protocolInformation; } - public String toString() { - return String.format( - "DefaultEndpoint (" + "_interface=%s," + "protocolInformation=%s," + ")", - this._interface, this.protocolInformation); - } - /** This builder class can be used to construct a DefaultEndpoint bean. */ public static class Builder extends EndpointBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java index d2000a980..bf3552ab0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEntity.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Entity; import org.eclipse.digitaltwin.aas4j.v3.model.EntityType; @@ -31,6 +30,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EntityBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Entity * @@ -39,47 +42,92 @@ @IRI("aas:Entity") public class DefaultEntity implements Entity { - @IRI("https://admin-shell.io/aas/3/0/Entity/entityType") + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") protected EntityType entityType; - @IRI("https://admin-shell.io/aas/3/0/Entity/globalAssetId") + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") protected String globalAssetId; - @IRI("https://admin-shell.io/aas/3/0/Entity/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") protected List specificAssetIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Entity/statements") + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") protected List statements = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultEntity() {} + @Override + public String toString() { + return "DefaultEntity{" + + "statements='" + + statements + + "'," + + "entityType='" + + entityType + + "'," + + "globalAssetId='" + + globalAssetId + + "'," + + "specificAssetIds='" + + specificAssetIds + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -134,6 +182,11 @@ public void setStatements(List statements) { this.statements = statements; } + @Override + public void setStatement(SubmodelElement statement) { + this.statements.add(statement); + } + @Override public EntityType getEntityType() { return entityType; @@ -164,6 +217,11 @@ public void setSpecificAssetIds(List specificAssetIds) { this.specificAssetIds = specificAssetIds; } + @Override + public void setSpecificAssetId(SpecificAssetId specificAssetId) { + this.specificAssetIds.add(specificAssetId); + } + @Override public String getCategory() { return category; @@ -194,6 +252,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -204,6 +267,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -214,6 +282,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -225,6 +298,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -245,6 +323,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -255,15 +338,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultEntity (" - + "statements=%s," - + "entityType=%s," - + "globalAssetId=%s," - + "specificAssetIds=%s," - + ")", - this.statements, this.entityType, this.globalAssetId, this.specificAssetIds); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultEntity bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java index 0e24ad82d..3c7da94a6 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEnvironment.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AssetAdministrationShell; import org.eclipse.digitaltwin.aas4j.v3.model.ConceptDescription; import org.eclipse.digitaltwin.aas4j.v3.model.Environment; @@ -25,6 +24,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EnvironmentBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Environment * @@ -33,20 +36,35 @@ @IRI("aas:Environment") public class DefaultEnvironment implements Environment { - @IRI("https://admin-shell.io/aas/3/0/Environment/assetAdministrationShells") + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") protected List assetAdministrationShells = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Environment/conceptDescriptions") + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") protected List conceptDescriptions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Environment/submodels") + @IRI("https://admin-shell.io/aas/3/2/Environment/submodels") protected List submodels = new ArrayList<>(); public DefaultEnvironment() {} + @Override + public String toString() { + return "DefaultEnvironment{" + + "assetAdministrationShells='" + + assetAdministrationShells + + "'," + + "conceptDescriptions='" + + conceptDescriptions + + "'," + + "submodels='" + + submodels + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + return Objects.hash(this.assetAdministrationShells, this.conceptDescriptions, this.submodels); } @Override @@ -60,8 +78,8 @@ public boolean equals(Object obj) { } else { DefaultEnvironment other = (DefaultEnvironment) obj; return Objects.equals(this.assetAdministrationShells, other.assetAdministrationShells) - && Objects.equals(this.submodels, other.submodels) - && Objects.equals(this.conceptDescriptions, other.conceptDescriptions); + && Objects.equals(this.conceptDescriptions, other.conceptDescriptions) + && Objects.equals(this.submodels, other.submodels); } } @@ -77,13 +95,8 @@ public void setAssetAdministrationShells( } @Override - public List getSubmodels() { - return submodels; - } - - @Override - public void setSubmodels(List submodels) { - this.submodels = submodels; + public void setAssetAdministrationShell(AssetAdministrationShell assetAdministrationShell) { + this.assetAdministrationShells.add(assetAdministrationShell); } @Override @@ -96,14 +109,24 @@ public void setConceptDescriptions(List conceptDescriptions) this.conceptDescriptions = conceptDescriptions; } - public String toString() { - return String.format( - "DefaultEnvironment (" - + "assetAdministrationShells=%s," - + "submodels=%s," - + "conceptDescriptions=%s," - + ")", - this.assetAdministrationShells, this.submodels, this.conceptDescriptions); + @Override + public void setConceptDescription(ConceptDescription conceptDescription) { + this.conceptDescriptions.add(conceptDescription); + } + + @Override + public List getSubmodels() { + return submodels; + } + + @Override + public void setSubmodels(List submodels) { + this.submodels = submodels; + } + + @Override + public void setSubmodel(Submodel submodel) { + this.submodels.add(submodel); } /** This builder class can be used to construct a DefaultEnvironment bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java index 847932d22..bd94ce46f 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultEventPayload.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,17 +11,20 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Arrays; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EventPayload; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.EventPayloadBuilder; +import java.util.Arrays; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.EventPayload * @@ -30,32 +33,62 @@ @IRI("aas:EventPayload") public class DefaultEventPayload implements EventPayload { - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableReference") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") protected Reference observableReference; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/observableSemanticId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") protected Reference observableSemanticId; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/payload") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") protected byte[] payload; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/source") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") protected Reference source; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/sourceSemanticId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") protected Reference sourceSemanticId; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/subjectId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") protected Reference subjectId; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/timeStamp") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") protected String timeStamp; - @IRI("https://admin-shell.io/aas/3/0/EventPayload/topic") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/topic") protected String topic; public DefaultEventPayload() {} + @Override + public String toString() { + return "DefaultEventPayload{" + + "source='" + + source + + "'," + + "sourceSemanticId='" + + sourceSemanticId + + "'," + + "observableReference='" + + observableReference + + "'," + + "observableSemanticId='" + + observableSemanticId + + "'," + + "topic='" + + topic + + "'," + + "subjectId='" + + subjectId + + "'," + + "timeStamp='" + + timeStamp + + "'," + + "payload='" + + payload + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -170,28 +203,6 @@ public void setPayload(byte[] payload) { this.payload = payload; } - public String toString() { - return String.format( - "DefaultEventPayload (" - + "source=%s," - + "sourceSemanticId=%s," - + "observableReference=%s," - + "observableSemanticId=%s," - + "topic=%s," - + "subjectId=%s," - + "timeStamp=%s," - + "payload=%s," - + ")", - this.source, - this.sourceSemanticId, - this.observableReference, - this.observableSemanticId, - this.topic, - this.subjectId, - this.timeStamp, - this.payload); - } - /** This builder class can be used to construct a DefaultEventPayload bean. */ public static class Builder extends EventPayloadBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java index d1a827c2d..9eb74196e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultExtension.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,19 +11,22 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ExtensionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Extension * @@ -32,26 +35,50 @@ @IRI("aas:Extension") public class DefaultExtension implements Extension { - @IRI("https://admin-shell.io/aas/3/0/Extension/name") + @IRI("https://admin-shell.io/aas/3/2/Extension/name") protected String name; - @IRI("https://admin-shell.io/aas/3/0/Extension/refersTo") + @IRI("https://admin-shell.io/aas/3/2/Extension/refersTo") protected List refersTo = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Extension/value") + @IRI("https://admin-shell.io/aas/3/2/Extension/value") protected String value; - @IRI("https://admin-shell.io/aas/3/0/Extension/valueType") + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") protected DataTypeDefXsd valueType; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); public DefaultExtension() {} + @Override + public String toString() { + return "DefaultExtension{" + + "name='" + + name + + "'," + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "refersTo='" + + refersTo + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -122,6 +149,11 @@ public void setRefersTo(List refersTos) { this.refersTo = refersTos; } + @Override + public void setRefersTo(Reference refersTo) { + this.refersTo.add(refersTo); + } + @Override public Reference getSemanticId() { return semanticId; @@ -142,10 +174,9 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } - public String toString() { - return String.format( - "DefaultExtension (" + "name=%s," + "valueType=%s," + "value=%s," + "refersTo=%s," + ")", - this.name, this.valueType, this.value, this.refersTo); + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); } /** This builder class can be used to construct a DefaultExtension bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java index 2e2ba7317..a34fef56b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultFile.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.File; @@ -28,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.FileBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.File * @@ -36,41 +39,80 @@ @IRI("aas:File") public class DefaultFile implements File { - @IRI("https://admin-shell.io/aas/3/0/File/contentType") + @IRI("https://admin-shell.io/aas/3/2/File/contentType") protected String contentType; - @IRI("https://admin-shell.io/aas/3/0/File/value") + @IRI("https://admin-shell.io/aas/3/2/File/value") protected String value; - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultFile() {} + @Override + public String toString() { + return "DefaultFile{" + + "value='" + + value + + "'," + + "contentType='" + + contentType + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -161,6 +203,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -171,6 +218,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -181,6 +233,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -192,6 +249,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -212,6 +274,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -222,9 +289,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultFile (" + "value=%s," + "contentType=%s," + ")", this.value, this.contentType); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultFile bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java index c404360df..3cdd3779e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultKey.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,19 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.KeyTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.KeyBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Key * @@ -29,14 +32,19 @@ @IRI("aas:Key") public class DefaultKey implements Key { - @IRI("https://admin-shell.io/aas/3/0/Key/type") + @IRI("https://admin-shell.io/aas/3/2/Key/type") protected KeyTypes type; - @IRI("https://admin-shell.io/aas/3/0/Key/value") + @IRI("https://admin-shell.io/aas/3/2/Key/value") protected String value; public DefaultKey() {} + @Override + public String toString() { + return "DefaultKey{" + "type='" + type + "'," + "value='" + value + "'," + "}"; + } + @Override public int hashCode() { return Objects.hash(this.type, this.value); @@ -76,10 +84,6 @@ public void setValue(String value) { this.value = value; } - public String toString() { - return String.format("DefaultKey (" + "type=%s," + "value=%s," + ")", this.type, this.value); - } - /** This builder class can be used to construct a DefaultKey bean. */ public static class Builder extends KeyBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java index 6db852014..6ed6b2b53 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringDefinitionTypeIec61360Builder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeIec61360 @@ -29,14 +32,26 @@ @IRI("aas:LangStringDefinitionTypeIec61360") public class DefaultLangStringDefinitionTypeIec61360 implements LangStringDefinitionTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; public DefaultLangStringDefinitionTypeIec61360() {} + @Override + public String toString() { + return "DefaultLangStringDefinitionTypeIec61360{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.language, this.text); @@ -76,10 +91,6 @@ public void setText(String text) { this.text = text; } - public String toString() { - return String.format("DefaultLangStringDefinitionTypeIec61360 (" + ")"); - } - /** This builder class can be used to construct a DefaultLangStringDefinitionTypeIec61360 bean. */ public static class Builder extends LangStringDefinitionTypeIec61360Builder< diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeUom.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeUom.java new file mode 100644 index 000000000..1bd147eeb --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringDefinitionTypeUom.java @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeUom; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringDefinitionTypeUomBuilder; + +import java.util.Objects; + +/** + * Default implementation of package + * org.eclipse.digitaltwin.aas4j.v3.model.LangStringDefinitionTypeUom + * + *

Definition string with language tag, maximum length 2048 and minimum length 1. + */ +@IRI("aas:LangStringDefinitionTypeUom") +public class DefaultLangStringDefinitionTypeUom implements LangStringDefinitionTypeUom { + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringDefinitionTypeUom() {} + + @Override + public String toString() { + return "DefaultLangStringDefinitionTypeUom{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringDefinitionTypeUom other = (DefaultLangStringDefinitionTypeUom) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + } + } + + @Override + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** This builder class can be used to construct a DefaultLangStringDefinitionTypeUom bean. */ + public static class Builder + extends LangStringDefinitionTypeUomBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringDefinitionTypeUom newBuildingInstance() { + return new DefaultLangStringDefinitionTypeUom(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java index 047bff345..e73d8aedc 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringNameType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringNameTypeBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType * @@ -28,14 +31,26 @@ @IRI("aas:LangStringNameType") public class DefaultLangStringNameType implements LangStringNameType { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; public DefaultLangStringNameType() {} + @Override + public String toString() { + return "DefaultLangStringNameType{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.language, this.text); @@ -75,10 +90,6 @@ public void setText(String text) { this.text = text; } - public String toString() { - return String.format("DefaultLangStringNameType (" + ")"); - } - /** This builder class can be used to construct a DefaultLangStringNameType bean. */ public static class Builder extends LangStringNameTypeBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java index cf7b9d7ba..dddf584cb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringPreferredNameTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringPreferredNameTypeIec61360Builder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringPreferredNameTypeIec61360 @@ -30,14 +33,26 @@ public class DefaultLangStringPreferredNameTypeIec61360 implements LangStringPreferredNameTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; public DefaultLangStringPreferredNameTypeIec61360() {} + @Override + public String toString() { + return "DefaultLangStringPreferredNameTypeIec61360{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.language, this.text); @@ -78,10 +93,6 @@ public void setText(String text) { this.text = text; } - public String toString() { - return String.format("DefaultLangStringPreferredNameTypeIec61360 (" + ")"); - } - /** * This builder class can be used to construct a DefaultLangStringPreferredNameTypeIec61360 bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java index cb25aa7c9..c279f43be 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringShortNameTypeIec61360.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringShortNameTypeIec61360Builder; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.LangStringShortNameTypeIec61360 @@ -29,14 +32,26 @@ @IRI("aas:LangStringShortNameTypeIec61360") public class DefaultLangStringShortNameTypeIec61360 implements LangStringShortNameTypeIec61360 { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; public DefaultLangStringShortNameTypeIec61360() {} + @Override + public String toString() { + return "DefaultLangStringShortNameTypeIec61360{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.language, this.text); @@ -76,10 +91,6 @@ public void setText(String text) { this.text = text; } - public String toString() { - return String.format("DefaultLangStringShortNameTypeIec61360 (" + ")"); - } - /** This builder class can be used to construct a DefaultLangStringShortNameTypeIec61360 bean. */ public static class Builder extends LangStringShortNameTypeIec61360Builder< diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java index 30b925d80..93e31dc6d 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringTextType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringTextTypeBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType * @@ -28,14 +31,26 @@ @IRI("aas:LangStringTextType") public class DefaultLangStringTextType implements LangStringTextType { - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/0/AbstractLangString/text") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") protected String text; public DefaultLangStringTextType() {} + @Override + public String toString() { + return "DefaultLangStringTextType{" + + "language='" + + language + + "'," + + "text='" + + text + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.language, this.text); @@ -75,10 +90,6 @@ public void setText(String text) { this.text = text; } - public String toString() { - return String.format("DefaultLangStringTextType (" + ")"); - } - /** This builder class can be used to construct a DefaultLangStringTextType bean. */ public static class Builder extends LangStringTextTypeBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringUom.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringUom.java new file mode 100644 index 000000000..242a8bf96 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLangStringUom.java @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. + */ + +package org.eclipse.digitaltwin.aas4j.v3.model.impl; + +import org.eclipse.digitaltwin.aas4j.v3.model.LangStringUom; +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; +import org.eclipse.digitaltwin.aas4j.v3.model.builder.LangStringUomBuilder; + +import java.util.Objects; + +/** + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LangStringUom + * + *

String with language tag, maximum length 256 and minimum length 1. + */ +@IRI("aas:LangStringUom") +public class DefaultLangStringUom implements LangStringUom { + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") + protected String language; + + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/text") + protected String text; + + public DefaultLangStringUom() {} + + @Override + public String toString() { + return "DefaultLangStringUom{" + "language='" + language + "'," + "text='" + text + "'," + "}"; + } + + @Override + public int hashCode() { + return Objects.hash(this.language, this.text); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } else if (obj == null) { + return false; + } else if (this.getClass() != obj.getClass()) { + return false; + } else { + DefaultLangStringUom other = (DefaultLangStringUom) obj; + return Objects.equals(this.language, other.language) && Objects.equals(this.text, other.text); + } + } + + @Override + public String getLanguage() { + return language; + } + + @Override + public void setLanguage(String language) { + this.language = language; + } + + @Override + public String getText() { + return text; + } + + @Override + public void setText(String text) { + this.text = text; + } + + /** This builder class can be used to construct a DefaultLangStringUom bean. */ + public static class Builder extends LangStringUomBuilder { + + @Override + protected Builder getSelf() { + return this; + } + + @Override + protected DefaultLangStringUom newBuildingInstance() { + return new DefaultLangStringUom(); + } + } +} diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java index 1ebbce64a..d161e7e9a 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultLevelType.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.LevelType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.LevelTypeBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.LevelType * @@ -29,20 +32,38 @@ @IRI("aas:LevelType") public class DefaultLevelType implements LevelType { - @IRI("https://admin-shell.io/aas/3/0/LevelType/max") + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") protected boolean max; - @IRI("https://admin-shell.io/aas/3/0/LevelType/min") + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") protected boolean min; - @IRI("https://admin-shell.io/aas/3/0/LevelType/nom") + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") protected boolean nom; - @IRI("https://admin-shell.io/aas/3/0/LevelType/typ") + @IRI("https://admin-shell.io/aas/3/2/LevelType/typ") protected boolean typ; public DefaultLevelType() {} + @Override + public String toString() { + return "DefaultLevelType{" + + "min='" + + min + + "'," + + "nom='" + + nom + + "'," + + "typ='" + + typ + + "'," + + "max='" + + max + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.min, this.nom, this.typ, this.max); @@ -105,12 +126,6 @@ public void setMax(boolean max) { this.max = max; } - public String toString() { - return String.format( - "DefaultLevelType (" + "min=%s," + "nom=%s," + "typ=%s," + "max=%s," + ")", - this.min, this.nom, this.typ, this.max); - } - /** This builder class can be used to construct a DefaultLevelType bean. */ public static class Builder extends LevelTypeBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java index 5ac62624b..ad5bcb995 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMessage.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,40 +11,58 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; -import org.eclipse.digitaltwin.aas4j.v3.model.MessageTypeEnum; +import org.eclipse.digitaltwin.aas4j.v3.model.MessageType; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MessageBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Message */ @IRI("aas:Message") public class DefaultMessage implements Message { - @IRI("https://admin-shell.io/aas/3/0/Message/code") + @IRI("https://admin-shell.io/aas/3/2/Message/code") protected String code; - @IRI("https://admin-shell.io/aas/3/0/Message/correlationId") - protected String correlationId; - - @IRI("https://admin-shell.io/aas/3/0/Message/messageType") - protected MessageTypeEnum messageType; + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") + protected MessageType messageType; - @IRI("https://admin-shell.io/aas/3/0/Message/text") + @IRI("https://admin-shell.io/aas/3/2/Message/text") protected String text; - @IRI("https://admin-shell.io/aas/3/0/Message/timestamp") + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") protected String timestamp; public DefaultMessage() {} + @Override + public String toString() { + return "DefaultMessage{" + + "code='" + + code + + "'," + + "messageType='" + + messageType + + "'," + + "text='" + + text + + "'," + + "timestamp='" + + timestamp + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.code, this.correlationId, this.messageType, this.text, this.timestamp); + return Objects.hash(this.code, this.messageType, this.text, this.timestamp); } @Override @@ -58,7 +76,6 @@ public boolean equals(Object obj) { } else { DefaultMessage other = (DefaultMessage) obj; return Objects.equals(this.code, other.code) - && Objects.equals(this.correlationId, other.correlationId) && Objects.equals(this.messageType, other.messageType) && Objects.equals(this.text, other.text) && Objects.equals(this.timestamp, other.timestamp); @@ -76,22 +93,12 @@ public void setCode(String code) { } @Override - public String getCorrelationId() { - return correlationId; - } - - @Override - public void setCorrelationId(String correlationId) { - this.correlationId = correlationId; - } - - @Override - public MessageTypeEnum getMessageType() { + public MessageType getMessageType() { return messageType; } @Override - public void setMessageType(MessageTypeEnum messageType) { + public void setMessageType(MessageType messageType) { this.messageType = messageType; } @@ -115,18 +122,6 @@ public void setTimestamp(String timestamp) { this.timestamp = timestamp; } - public String toString() { - return String.format( - "DefaultMessage (" - + "code=%s," - + "correlationId=%s," - + "messageType=%s," - + "text=%s," - + "timestamp=%s," - + ")", - this.code, this.correlationId, this.messageType, this.text, this.timestamp); - } - /** This builder class can be used to construct a DefaultMessage bean. */ public static class Builder extends MessageBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java index 0f9c68908..8baf7d108 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultMultiLanguageProperty.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.MultiLanguagePropertyBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.MultiLanguageProperty * @@ -36,41 +39,80 @@ @IRI("aas:MultiLanguageProperty") public class DefaultMultiLanguageProperty implements MultiLanguageProperty { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/value") + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") protected List value = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/MultiLanguageProperty/valueId") + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") protected Reference valueId; - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultMultiLanguageProperty() {} + @Override + public String toString() { + return "DefaultMultiLanguageProperty{" + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -121,6 +163,11 @@ public void setValue(List values) { this.value = values; } + @Override + public void setValue(LangStringTextType value) { + this.value.add(value); + } + @Override public Reference getValueId() { return valueId; @@ -161,6 +208,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -171,6 +223,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -181,6 +238,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -192,6 +254,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -212,6 +279,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -222,10 +294,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultMultiLanguageProperty (" + "value=%s," + "valueId=%s," + ")", - this.value, this.valueId); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultMultiLanguageProperty bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java index 52fde4877..831e2902e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Operation * @@ -37,44 +40,86 @@ @IRI("aas:Operation") public class DefaultOperation implements Operation { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Operation/inoutputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") protected List inoutputVariables = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Operation/inputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") protected List inputVariables = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Operation/outputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") protected List outputVariables = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultOperation() {} + @Override + public String toString() { + return "DefaultOperation{" + + "inputVariables='" + + inputVariables + + "'," + + "outputVariables='" + + outputVariables + + "'," + + "inoutputVariables='" + + inoutputVariables + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -127,6 +172,11 @@ public void setInputVariables(List inputVariables) { this.inputVariables = inputVariables; } + @Override + public void setInputVariable(OperationVariable inputVariable) { + this.inputVariables.add(inputVariable); + } + @Override public List getOutputVariables() { return outputVariables; @@ -137,6 +187,11 @@ public void setOutputVariables(List outputVariables) { this.outputVariables = outputVariables; } + @Override + public void setOutputVariable(OperationVariable outputVariable) { + this.outputVariables.add(outputVariable); + } + @Override public List getInoutputVariables() { return inoutputVariables; @@ -147,6 +202,11 @@ public void setInoutputVariables(List inoutputVariables) { this.inoutputVariables = inoutputVariables; } + @Override + public void setInoutputVariable(OperationVariable inoutputVariable) { + this.inoutputVariables.add(inoutputVariable); + } + @Override public String getCategory() { return category; @@ -177,6 +237,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -187,6 +252,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -197,6 +267,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -208,6 +283,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -228,6 +308,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -238,14 +323,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultOperation (" - + "inputVariables=%s," - + "outputVariables=%s," - + "inoutputVariables=%s," - + ")", - this.inputVariables, this.outputVariables, this.inoutputVariables); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultOperation bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java index 52a649261..3ea3b8906 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationHandle.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,27 +11,45 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationHandleBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationHandle */ @IRI("aas:OperationHandle") public class DefaultOperationHandle implements OperationHandle { - @IRI("https://admin-shell.io/aas/3/0/OperationHandle/handleId") + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") protected String handleId; + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/requestId") + protected String requestId; + public DefaultOperationHandle() {} + @Override + public String toString() { + return "DefaultOperationHandle{" + + "handleId='" + + handleId + + "'," + + "requestId='" + + requestId + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.handleId); + return Objects.hash(this.handleId, this.requestId); } @Override @@ -44,7 +62,8 @@ public boolean equals(Object obj) { return false; } else { DefaultOperationHandle other = (DefaultOperationHandle) obj; - return Objects.equals(this.handleId, other.handleId); + return Objects.equals(this.handleId, other.handleId) + && Objects.equals(this.requestId, other.requestId); } } @@ -58,8 +77,14 @@ public void setHandleId(String handleId) { this.handleId = handleId; } - public String toString() { - return String.format("DefaultOperationHandle (" + "handleId=%s," + ")", this.handleId); + @Override + public String getRequestId() { + return requestId; + } + + @Override + public void setRequestId(String requestId) { + this.requestId = requestId; } /** This builder class can be used to construct a DefaultOperationHandle bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java index 03ef1a152..c39509bd0 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationRequest.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,36 +11,59 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationRequestBuilder; +import java.math.BigInteger; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationRequest */ @IRI("aas:OperationRequest") public class DefaultOperationRequest implements OperationRequest { - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/clientTimeoutDuration") - protected String clientTimeoutDuration; + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + protected OperationVariable inoutputArguments; - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inoutputArguments") - protected List inoutputArguments = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inputArguments") + protected OperationVariable inputArguments; - @IRI("https://admin-shell.io/aas/3/0/OperationRequest/inputArguments") - protected List inputArguments = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/requestId") + protected String requestId; + + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + protected BigInteger timeout; public DefaultOperationRequest() {} + @Override + public String toString() { + return "DefaultOperationRequest{" + + "inoutputArguments='" + + inoutputArguments + + "'," + + "inputArguments='" + + inputArguments + + "'," + + "requestId='" + + requestId + + "'," + + "timeout='" + + timeout + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); + return Objects.hash(this.inoutputArguments, this.inputArguments, this.requestId, this.timeout); } @Override @@ -55,48 +78,49 @@ public boolean equals(Object obj) { DefaultOperationRequest other = (DefaultOperationRequest) obj; return Objects.equals(this.inoutputArguments, other.inoutputArguments) && Objects.equals(this.inputArguments, other.inputArguments) - && Objects.equals(this.clientTimeoutDuration, other.clientTimeoutDuration); + && Objects.equals(this.requestId, other.requestId) + && Objects.equals(this.timeout, other.timeout); } } @Override - public List getInoutputArguments() { + public OperationVariable getInoutputArguments() { return inoutputArguments; } @Override - public void setInoutputArguments(List inoutputArguments) { + public void setInoutputArguments(OperationVariable inoutputArguments) { this.inoutputArguments = inoutputArguments; } @Override - public List getInputArguments() { + public OperationVariable getInputArguments() { return inputArguments; } @Override - public void setInputArguments(List inputArguments) { + public void setInputArguments(OperationVariable inputArguments) { this.inputArguments = inputArguments; } @Override - public String getClientTimeoutDuration() { - return clientTimeoutDuration; + public String getRequestId() { + return requestId; } @Override - public void setClientTimeoutDuration(String clientTimeoutDuration) { - this.clientTimeoutDuration = clientTimeoutDuration; + public void setRequestId(String requestId) { + this.requestId = requestId; } - public String toString() { - return String.format( - "DefaultOperationRequest (" - + "inoutputArguments=%s," - + "inputArguments=%s," - + "clientTimeoutDuration=%s," - + ")", - this.inoutputArguments, this.inputArguments, this.clientTimeoutDuration); + @Override + public BigInteger getTimeout() { + return timeout; + } + + @Override + public void setTimeout(BigInteger timeout) { + this.timeout = timeout; } /** This builder class can be used to construct a DefaultOperationRequest bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java index 4871fb39f..079947818 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationResult.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,33 +11,73 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; +import org.eclipse.digitaltwin.aas4j.v3.model.ExecutionState; import org.eclipse.digitaltwin.aas4j.v3.model.OperationResult; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; +import org.eclipse.digitaltwin.aas4j.v3.model.Result; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationResultBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationResult */ @IRI("aas:OperationResult") public class DefaultOperationResult implements OperationResult { - @IRI("https://admin-shell.io/aas/3/0/OperationResult/inoutputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + protected List executionResult = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + protected List executionState = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") protected List inoutputArguments = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/OperationResult/outputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") protected List outputArguments = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/OperationResult/requestId") + protected List requestId = new ArrayList<>(); + public DefaultOperationResult() {} + @Override + public String toString() { + return "DefaultOperationResult{" + + "executionResult='" + + executionResult + + "'," + + "executionState='" + + executionState + + "'," + + "inoutputArguments='" + + inoutputArguments + + "'," + + "outputArguments='" + + outputArguments + + "'," + + "requestId='" + + requestId + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.inoutputArguments, this.outputArguments); + return Objects.hash( + this.executionResult, + this.executionState, + this.inoutputArguments, + this.outputArguments, + this.requestId); } @Override @@ -50,11 +90,44 @@ public boolean equals(Object obj) { return false; } else { DefaultOperationResult other = (DefaultOperationResult) obj; - return Objects.equals(this.inoutputArguments, other.inoutputArguments) - && Objects.equals(this.outputArguments, other.outputArguments); + return Objects.equals(this.executionResult, other.executionResult) + && Objects.equals(this.executionState, other.executionState) + && Objects.equals(this.inoutputArguments, other.inoutputArguments) + && Objects.equals(this.outputArguments, other.outputArguments) + && Objects.equals(this.requestId, other.requestId); } } + @Override + public List getExecutionResult() { + return executionResult; + } + + @Override + public void setExecutionResult(List executionResults) { + this.executionResult = executionResults; + } + + @Override + public void setExecutionResult(Result executionResult) { + this.executionResult.add(executionResult); + } + + @Override + public List getExecutionState() { + return executionState; + } + + @Override + public void setExecutionState(List executionStates) { + this.executionState = executionStates; + } + + @Override + public void setExecutionState(ExecutionState executionState) { + this.executionState.add(executionState); + } + @Override public List getInoutputArguments() { return inoutputArguments; @@ -65,6 +138,11 @@ public void setInoutputArguments(List inoutputArguments) { this.inoutputArguments = inoutputArguments; } + @Override + public void setInoutputArgument(OperationVariable inoutputArgument) { + this.inoutputArguments.add(inoutputArgument); + } + @Override public List getOutputArguments() { return outputArguments; @@ -75,10 +153,24 @@ public void setOutputArguments(List outputArguments) { this.outputArguments = outputArguments; } - public String toString() { - return String.format( - "DefaultOperationResult (" + "inoutputArguments=%s," + "outputArguments=%s," + ")", - this.inoutputArguments, this.outputArguments); + @Override + public void setOutputArgument(OperationVariable outputArgument) { + this.outputArguments.add(outputArgument); + } + + @Override + public List getRequestId() { + return requestId; + } + + @Override + public void setRequestId(List requestIds) { + this.requestId = requestIds; + } + + @Override + public void setRequestId(String requestId) { + this.requestId.add(requestId); } /** This builder class can be used to construct a DefaultOperationResult bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java index 5f0bb6e9d..697215065 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultOperationVariable.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,19 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable; import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.OperationVariableBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.OperationVariable * @@ -30,11 +33,16 @@ @IRI("aas:OperationVariable") public class DefaultOperationVariable implements OperationVariable { - @IRI("https://admin-shell.io/aas/3/0/OperationVariable/value") + @IRI("https://admin-shell.io/aas/3/2/OperationVariable/value") protected SubmodelElement value; public DefaultOperationVariable() {} + @Override + public String toString() { + return "DefaultOperationVariable{" + "value='" + value + "'," + "}"; + } + @Override public int hashCode() { return Objects.hash(this.value); @@ -64,10 +72,6 @@ public void setValue(SubmodelElement value) { this.value = value; } - public String toString() { - return String.format("DefaultOperationVariable (" + "value=%s," + ")", this.value); - } - /** This builder class can be used to construct a DefaultOperationVariable bean. */ public static class Builder extends OperationVariableBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java index cfb0d46d2..1688b9ed5 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultPackageDescription.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,29 +11,44 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PackageDescriptionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.PackageDescription */ @IRI("aas:PackageDescription") public class DefaultPackageDescription implements PackageDescription { - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/items") + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") protected List items = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/PackageDescription/packageId") + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") protected String packageId; public DefaultPackageDescription() {} + @Override + public String toString() { + return "DefaultPackageDescription{" + + "items='" + + items + + "'," + + "packageId='" + + packageId + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.items, this.packageId); @@ -64,6 +79,11 @@ public void setItems(List items) { this.items = items; } + @Override + public void setItem(String item) { + this.items.add(item); + } + @Override public String getPackageId() { return packageId; @@ -74,12 +94,6 @@ public void setPackageId(String packageId) { this.packageId = packageId; } - public String toString() { - return String.format( - "DefaultPackageDescription (" + "items=%s," + "packageId=%s," + ")", - this.items, this.packageId); - } - /** This builder class can be used to construct a DefaultPackageDescription bean. */ public static class Builder extends PackageDescriptionBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java index a26904d96..65b638dc2 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProperty.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.PropertyBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Property * @@ -37,44 +40,86 @@ @IRI("aas:Property") public class DefaultProperty implements Property { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Property/value") + @IRI("https://admin-shell.io/aas/3/2/Property/value") protected String value; - @IRI("https://admin-shell.io/aas/3/0/Property/valueId") + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") protected Reference valueId; - @IRI("https://admin-shell.io/aas/3/0/Property/valueType") + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") protected DataTypeDefXsd valueType; - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultProperty() {} + @Override + public String toString() { + return "DefaultProperty{" + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -177,6 +222,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -187,6 +237,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -197,6 +252,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -208,6 +268,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -228,6 +293,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -238,10 +308,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultProperty (" + "valueType=%s," + "value=%s," + "valueId=%s," + ")", - this.valueType, this.value, this.valueId); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultProperty bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java index 3e9105b0b..1ffc24fd4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultProtocolInformation.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,55 +11,85 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ProtocolInformationBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ProtocolInformation */ @IRI("aas:ProtocolInformation") public class DefaultProtocolInformation implements ProtocolInformation { - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocol") - protected String endpointProtocol; + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointAddress") + protected String endpointAddress; - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/endpointProtocolVersion") - protected List endpointProtocolVersion = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") + protected String endpointProtocol; - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/href") - protected String href; + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion") + protected String endpointProtocolVersion; - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/securityAttributes") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") protected List securityAttributes = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocol") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") protected String subprotocol; - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBody") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") protected String subprotocolBody; - @IRI("https://admin-shell.io/aas/3/0/ProtocolInformation/subprotocolBodyEncoding") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") protected String subprotocolBodyEncoding; public DefaultProtocolInformation() {} + @Override + public String toString() { + return "DefaultProtocolInformation{" + + "endpointAddress='" + + endpointAddress + + "'," + + "endpointProtocol='" + + endpointProtocol + + "'," + + "endpointProtocolVersion='" + + endpointProtocolVersion + + "'," + + "securityAttributes='" + + securityAttributes + + "'," + + "subprotocol='" + + subprotocol + + "'," + + "subprotocolBody='" + + subprotocolBody + + "'," + + "subprotocolBodyEncoding='" + + subprotocolBodyEncoding + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( - this.href, + this.endpointAddress, this.endpointProtocol, this.endpointProtocolVersion, + this.securityAttributes, this.subprotocol, this.subprotocolBody, - this.subprotocolBodyEncoding, - this.securityAttributes); + this.subprotocolBodyEncoding); } @Override @@ -72,24 +102,24 @@ public boolean equals(Object obj) { return false; } else { DefaultProtocolInformation other = (DefaultProtocolInformation) obj; - return Objects.equals(this.href, other.href) + return Objects.equals(this.endpointAddress, other.endpointAddress) && Objects.equals(this.endpointProtocol, other.endpointProtocol) && Objects.equals(this.endpointProtocolVersion, other.endpointProtocolVersion) + && Objects.equals(this.securityAttributes, other.securityAttributes) && Objects.equals(this.subprotocol, other.subprotocol) && Objects.equals(this.subprotocolBody, other.subprotocolBody) - && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding) - && Objects.equals(this.securityAttributes, other.securityAttributes); + && Objects.equals(this.subprotocolBodyEncoding, other.subprotocolBodyEncoding); } } @Override - public String getHref() { - return href; + public String getEndpointAddress() { + return endpointAddress; } @Override - public void setHref(String href) { - this.href = href; + public void setEndpointAddress(String endpointAddress) { + this.endpointAddress = endpointAddress; } @Override @@ -103,13 +133,28 @@ public void setEndpointProtocol(String endpointProtocol) { } @Override - public List getEndpointProtocolVersion() { + public String getEndpointProtocolVersion() { return endpointProtocolVersion; } @Override - public void setEndpointProtocolVersion(List endpointProtocolVersions) { - this.endpointProtocolVersion = endpointProtocolVersions; + public void setEndpointProtocolVersion(String endpointProtocolVersion) { + this.endpointProtocolVersion = endpointProtocolVersion; + } + + @Override + public List getSecurityAttributes() { + return securityAttributes; + } + + @Override + public void setSecurityAttributes(List securityAttributes) { + this.securityAttributes = securityAttributes; + } + + @Override + public void setSecurityAttribute(SecurityAttributeObject securityAttribute) { + this.securityAttributes.add(securityAttribute); } @Override @@ -142,36 +187,6 @@ public void setSubprotocolBodyEncoding(String subprotocolBodyEncoding) { this.subprotocolBodyEncoding = subprotocolBodyEncoding; } - @Override - public List getSecurityAttributes() { - return securityAttributes; - } - - @Override - public void setSecurityAttributes(List securityAttributes) { - this.securityAttributes = securityAttributes; - } - - public String toString() { - return String.format( - "DefaultProtocolInformation (" - + "href=%s," - + "endpointProtocol=%s," - + "endpointProtocolVersion=%s," - + "subprotocol=%s," - + "subprotocolBody=%s," - + "subprotocolBodyEncoding=%s," - + "securityAttributes=%s," - + ")", - this.href, - this.endpointProtocol, - this.endpointProtocolVersion, - this.subprotocol, - this.subprotocolBody, - this.subprotocolBodyEncoding, - this.securityAttributes); - } - /** This builder class can be used to construct a DefaultProtocolInformation bean. */ public static class Builder extends ProtocolInformationBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java index 8b03e6507..5e8baee24 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultQualifier.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.Qualifier; import org.eclipse.digitaltwin.aas4j.v3.model.QualifierKind; @@ -25,6 +24,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.QualifierBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Qualifier * @@ -34,29 +37,56 @@ @IRI("aas:Qualifier") public class DefaultQualifier implements Qualifier { - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifier/kind") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") protected QualifierKind kind; - @IRI("https://admin-shell.io/aas/3/0/Qualifier/type") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") protected String type; - @IRI("https://admin-shell.io/aas/3/0/Qualifier/value") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") protected String value; - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueId") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") protected Reference valueId; - @IRI("https://admin-shell.io/aas/3/0/Qualifier/valueType") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") protected DataTypeDefXsd valueType; public DefaultQualifier() {} + @Override + public String toString() { + return "DefaultQualifier{" + + "kind='" + + kind + + "'," + + "type='" + + type + + "'," + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -159,16 +189,9 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } - public String toString() { - return String.format( - "DefaultQualifier (" - + "kind=%s," - + "type=%s," - + "valueType=%s," - + "value=%s," - + "valueId=%s," - + ")", - this.kind, this.type, this.valueType, this.value, this.valueId); + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); } /** This builder class can be used to construct a DefaultQualifier bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java index 44d5c86d3..cd42558c3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRange.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RangeBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Range * @@ -37,44 +40,86 @@ @IRI("aas:Range") public class DefaultRange implements Range { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Range/max") + @IRI("https://admin-shell.io/aas/3/2/Range/max") protected String max; - @IRI("https://admin-shell.io/aas/3/0/Range/min") + @IRI("https://admin-shell.io/aas/3/2/Range/min") protected String min; - @IRI("https://admin-shell.io/aas/3/0/Range/valueType") + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") protected DataTypeDefXsd valueType; - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; public DefaultRange() {} + @Override + public String toString() { + return "DefaultRange{" + + "valueType='" + + valueType + + "'," + + "min='" + + min + + "'," + + "max='" + + max + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -177,6 +222,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -187,6 +237,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -197,6 +252,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -208,6 +268,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -228,6 +293,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -238,10 +308,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultRange (" + "valueType=%s," + "min=%s," + "max=%s," + ")", - this.valueType, this.min, this.max); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultRange bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java index 5953967e6..5cdb35943 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReference.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,22 +11,22 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.Collections; -import java.util.IdentityHashMap; -import java.util.List; -import java.util.Objects; -import java.util.Set; import org.eclipse.digitaltwin.aas4j.v3.model.Key; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ReferenceTypes; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Reference * @@ -35,17 +35,32 @@ @IRI("aas:Reference") public class DefaultReference implements Reference { - @IRI("https://admin-shell.io/aas/3/0/Reference/keys") + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") protected List keys = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Reference/referredSemanticId") + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") protected Reference referredSemanticId; - @IRI("https://admin-shell.io/aas/3/0/Reference/type") + @IRI("https://admin-shell.io/aas/3/2/Reference/type") protected ReferenceTypes type; public DefaultReference() {} + @Override + public String toString() { + return "DefaultReference{" + + "type='" + + type + + "'," + + "referredSemanticId='" + + referredSemanticId + + "'," + + "keys='" + + keys + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.type, this.referredSemanticId, this.keys); @@ -84,25 +99,9 @@ public Reference getReferredSemanticId() { @Override public void setReferredSemanticId(Reference referredSemanticId) { - validateReferredSemanticId(referredSemanticId); this.referredSemanticId = referredSemanticId; } - private void validateReferredSemanticId(Reference referredSemanticId) { - if (referredSemanticId == null) { - return; - } - Set visited = Collections.newSetFromMap(new IdentityHashMap<>()); - Reference current = referredSemanticId; - while (current != null) { - if (current == this || !visited.add(current)) { - throw new IllegalArgumentException( - "referredSemanticId must not create a circular Reference"); - } - current = current.getReferredSemanticId(); - } - } - @Override public List getKeys() { return keys; @@ -113,10 +112,9 @@ public void setKeys(List keys) { this.keys = keys; } - public String toString() { - return String.format( - "DefaultReference (" + "type=%s," + "referredSemanticId=%s," + "keys=%s," + ")", - this.type, this.referredSemanticId, this.keys); + @Override + public void setKey(Key key) { + this.keys.add(key); } /** This builder class can be used to construct a DefaultReference bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java index 7d9e2b244..cef75f5ed 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ReferenceElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ReferenceElement * @@ -37,38 +40,74 @@ @IRI("aas:ReferenceElement") public class DefaultReferenceElement implements ReferenceElement { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/ReferenceElement/value") + @IRI("https://admin-shell.io/aas/3/2/ReferenceElement/value") protected Reference value; public DefaultReferenceElement() {} + @Override + public String toString() { + return "DefaultReferenceElement{" + + "value='" + + value + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -147,6 +186,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -157,6 +201,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -167,6 +216,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -178,6 +232,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -198,6 +257,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -208,8 +272,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format("DefaultReferenceElement (" + "value=%s," + ")", this.value); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultReferenceElement bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java index cc4557e36..0465547e3 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultRelationshipElement.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -28,6 +27,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.RelationshipElementBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.RelationshipElement * @@ -37,41 +40,80 @@ @IRI("aas:RelationshipElement") public class DefaultRelationshipElement implements RelationshipElement { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/first") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") protected Reference first; - @IRI("https://admin-shell.io/aas/3/0/RelationshipElement/second") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/second") protected Reference second; public DefaultRelationshipElement() {} + @Override + public String toString() { + return "DefaultRelationshipElement{" + + "first='" + + first + + "'," + + "second='" + + second + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -162,6 +204,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -172,6 +219,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -182,6 +234,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -193,6 +250,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -213,6 +275,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -223,9 +290,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultRelationshipElement (" + "first=%s," + "second=%s," + ")", this.first, this.second); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultRelationshipElement bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java index f6e406593..259b79753 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResource.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Resource; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResourceBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Resource * @@ -29,14 +32,19 @@ @IRI("aas:Resource") public class DefaultResource implements Resource { - @IRI("https://admin-shell.io/aas/3/0/Resource/contentType") + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") protected String contentType; - @IRI("https://admin-shell.io/aas/3/0/Resource/path") + @IRI("https://admin-shell.io/aas/3/2/Resource/path") protected String path; public DefaultResource() {} + @Override + public String toString() { + return "DefaultResource{" + "path='" + path + "'," + "contentType='" + contentType + "'," + "}"; + } + @Override public int hashCode() { return Objects.hash(this.path, this.contentType); @@ -77,11 +85,6 @@ public void setContentType(String contentType) { this.contentType = contentType; } - public String toString() { - return String.format( - "DefaultResource (" + "path=%s," + "contentType=%s," + ")", this.path, this.contentType); - } - /** This builder class can be used to construct a DefaultResource bean. */ public static class Builder extends ResourceBuilder { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java index 687155ddb..5b2827c92 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultResult.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,30 +11,41 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Message; import org.eclipse.digitaltwin.aas4j.v3.model.Result; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ResultBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Result */ @IRI("aas:Result") public class DefaultResult implements Result { - @IRI("https://admin-shell.io/aas/3/0/Result/messages") + @IRI("https://admin-shell.io/aas/3/2/Result/messages") protected List messages = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/Result/success") + protected boolean success; + public DefaultResult() {} + @Override + public String toString() { + return "DefaultResult{" + "messages='" + messages + "'," + "success='" + success + "'," + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.messages); + return Objects.hash(this.messages, this.success); } @Override @@ -47,7 +58,8 @@ public boolean equals(Object obj) { return false; } else { DefaultResult other = (DefaultResult) obj; - return Objects.equals(this.messages, other.messages); + return Objects.equals(this.messages, other.messages) + && Objects.equals(this.success, other.success); } } @@ -61,8 +73,19 @@ public void setMessages(List messages) { this.messages = messages; } - public String toString() { - return String.format("DefaultResult (" + "messages=%s," + ")", this.messages); + @Override + public void setMessage(Message message) { + this.messages.add(message); + } + + @Override + public boolean getSuccess() { + return success; + } + + @Override + public void setSuccess(boolean success) { + this.success = success; } /** This builder class can be used to construct a DefaultResult bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java index b2538fbed..e0dd96e3e 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityAttributeObject.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,36 +11,54 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityAttributeObjectBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject */ @IRI("aas:SecurityAttributeObject") public class DefaultSecurityAttributeObject implements SecurityAttributeObject { - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/key") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") protected String key; - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/type") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") protected SecurityTypeEnum type; - @IRI("https://admin-shell.io/aas/3/0/SecurityAttributeObject/value") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") protected String value; public DefaultSecurityAttributeObject() {} + @Override + public String toString() { + return "DefaultSecurityAttributeObject{" + + "key='" + + key + + "'," + + "value='" + + value + + "'," + + "type='" + + type + + "'," + + "}"; + } + @Override public int hashCode() { - return Objects.hash(this.type, this.key, this.value); + return Objects.hash(this.key, this.value, this.type); } @Override @@ -53,22 +71,12 @@ public boolean equals(Object obj) { return false; } else { DefaultSecurityAttributeObject other = (DefaultSecurityAttributeObject) obj; - return Objects.equals(this.type, other.type) - && Objects.equals(this.key, other.key) - && Objects.equals(this.value, other.value); + return Objects.equals(this.key, other.key) + && Objects.equals(this.value, other.value) + && Objects.equals(this.type, other.type); } } - @Override - public SecurityTypeEnum getType() { - return type; - } - - @Override - public void setType(SecurityTypeEnum type) { - this.type = type; - } - @Override public String getKey() { return key; @@ -89,10 +97,14 @@ public void setValue(String value) { this.value = value; } - public String toString() { - return String.format( - "DefaultSecurityAttributeObject (" + "type=%s," + "key=%s," + "value=%s," + ")", - this.type, this.key, this.value); + @Override + public SecurityTypeEnum getType() { + return type; + } + + @Override + public void setType(SecurityTypeEnum type) { + this.type = type; } /** This builder class can be used to construct a DefaultSecurityAttributeObject bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java index e46f8d699..049471d26 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.java @@ -11,15 +11,18 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SecurityTypeEnumBuilder; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityTypeEnum */ @IRI("aas:SecurityTypeEnum") public class DefaultSecurityTypeEnum implements SecurityTypeEnum { diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java index 24839d5b0..97e468814 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSpecificAssetId.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,18 +11,21 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SpecificAssetIdBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SpecificAssetId * @@ -31,23 +34,44 @@ @IRI("aas:SpecificAssetId") public class DefaultSpecificAssetId implements SpecificAssetId { - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/externalSubjectId") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") protected Reference externalSubjectId; - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/name") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") protected String name; - @IRI("https://admin-shell.io/aas/3/0/SpecificAssetId/value") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/value") protected String value; public DefaultSpecificAssetId() {} + @Override + public String toString() { + return "DefaultSpecificAssetId{" + + "name='" + + name + + "'," + + "value='" + + value + + "'," + + "externalSubjectId='" + + externalSubjectId + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -126,10 +150,9 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } - public String toString() { - return String.format( - "DefaultSpecificAssetId (" + "name=%s," + "value=%s," + "externalSubjectId=%s," + ")", - this.name, this.value, this.externalSubjectId); + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); } /** This builder class can be used to construct a DefaultSpecificAssetId bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java index 7ea0d56d3..31fc183a4 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodel.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; @@ -31,6 +30,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.Submodel * @@ -39,47 +42,92 @@ @IRI("aas:Submodel") public class DefaultSubmodel implements Submodel { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasKind/kind") + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") protected ModellingKind kind; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/0/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") protected String id; - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/Submodel/submodelElements") + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") protected List submodelElements = new ArrayList<>(); public DefaultSubmodel() {} + @Override + public String toString() { + return "DefaultSubmodel{" + + "submodelElements='" + + submodelElements + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "kind='" + + kind + + "'," + + "administration='" + + administration + + "'," + + "id='" + + id + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -134,6 +182,11 @@ public void setSubmodelElements(List submodelElements) { this.submodelElements = submodelElements; } + @Override + public void setSubmodelElement(SubmodelElement submodelElement) { + this.submodelElements.add(submodelElement); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -145,6 +198,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -165,6 +223,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -175,6 +238,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + @Override public ModellingKind getKind() { return kind; @@ -235,6 +303,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -245,6 +318,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -255,8 +333,9 @@ public void setExtensions(List extensions) { this.extensions = extensions; } - public String toString() { - return String.format("DefaultSubmodel (" + "submodelElements=%s," + ")", this.submodelElements); + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); } /** This builder class can be used to construct a DefaultSubmodel bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java index afcaf85b7..9e1aaf968 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelDescriptor.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,14 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AdministrativeInformation; import org.eclipse.digitaltwin.aas4j.v3.model.Endpoint; -import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringTextType; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; @@ -28,51 +26,74 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelDescriptorBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelDescriptor */ @IRI("aas:SubmodelDescriptor") public class DefaultSubmodelDescriptor implements SubmodelDescriptor { - @IRI("https://admin-shell.io/aas/3/0/Descriptor/description") - protected List description = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/displayName") - protected List displayName = new ArrayList<>(); - - @IRI("https://admin-shell.io/aas/3/0/Descriptor/extensions") - protected List extensions = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/endpoints") - protected List endpoints = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/description") + protected LangStringTextType description; - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/id") - protected String id; + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/displayName") + protected LangStringNameType displayName; - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/idShort") + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/semanticId") - protected Reference semanticId; + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/identification") + protected String identification; - @IRI("https://admin-shell.io/aas/3/0/SubmodelDescriptor/supplementalSemanticId") - protected List supplementalSemanticId = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + protected Reference semanticId; public DefaultSubmodelDescriptor() {} + @Override + public String toString() { + return "DefaultSubmodelDescriptor{" + + "administration='" + + administration + + "'," + + "description='" + + description + + "'," + + "displayName='" + + displayName + + "'," + + "idShort='" + + idShort + + "'," + + "identification='" + + identification + + "'," + + "semanticId='" + + semanticId + + "'," + + "endpoints='" + + endpoints + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( this.administration, - this.endpoints, - this.idShort, - this.id, - this.semanticId, - this.supplementalSemanticId, this.description, this.displayName, - this.extensions); + this.idShort, + this.identification, + this.semanticId, + this.endpoints); } @Override @@ -86,14 +107,12 @@ public boolean equals(Object obj) { } else { DefaultSubmodelDescriptor other = (DefaultSubmodelDescriptor) obj; return Objects.equals(this.administration, other.administration) - && Objects.equals(this.endpoints, other.endpoints) - && Objects.equals(this.idShort, other.idShort) - && Objects.equals(this.id, other.id) - && Objects.equals(this.semanticId, other.semanticId) - && Objects.equals(this.supplementalSemanticId, other.supplementalSemanticId) && Objects.equals(this.description, other.description) && Objects.equals(this.displayName, other.displayName) - && Objects.equals(this.extensions, other.extensions); + && Objects.equals(this.idShort, other.idShort) + && Objects.equals(this.identification, other.identification) + && Objects.equals(this.semanticId, other.semanticId) + && Objects.equals(this.endpoints, other.endpoints); } } @@ -108,13 +127,23 @@ public void setAdministration(AdministrativeInformation administration) { } @Override - public List getEndpoints() { - return endpoints; + public LangStringTextType getDescription() { + return description; } @Override - public void setEndpoints(List endpoints) { - this.endpoints = endpoints; + public void setDescription(LangStringTextType description) { + this.description = description; + } + + @Override + public LangStringNameType getDisplayName() { + return displayName; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName = displayName; } @Override @@ -128,13 +157,13 @@ public void setIdShort(String idShort) { } @Override - public String getId() { - return id; + public String getIdentification() { + return identification; } @Override - public void setId(String id) { - this.id = id; + public void setIdentification(String identification) { + this.identification = identification; } @Override @@ -148,61 +177,18 @@ public void setSemanticId(Reference semanticId) { } @Override - public List getSupplementalSemanticId() { - return supplementalSemanticId; - } - - @Override - public void setSupplementalSemanticId(List supplementalSemanticIds) { - this.supplementalSemanticId = supplementalSemanticIds; - } - - @Override - public List getDescription() { - return description; - } - - @Override - public void setDescription(List descriptions) { - this.description = descriptions; - } - - @Override - public List getDisplayName() { - return displayName; - } - - @Override - public void setDisplayName(List displayNames) { - this.displayName = displayNames; + public List getEndpoints() { + return endpoints; } @Override - public List getExtensions() { - return extensions; + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; - } - - public String toString() { - return String.format( - "DefaultSubmodelDescriptor (" - + "administration=%s," - + "endpoints=%s," - + "idShort=%s," - + "id=%s," - + "semanticId=%s," - + "supplementalSemanticId=%s," - + ")", - this.administration, - this.endpoints, - this.idShort, - this.id, - this.semanticId, - this.supplementalSemanticId); + public void setEndpoint(Endpoint endpoint) { + this.endpoints.add(endpoint); } /** This builder class can be used to construct a DefaultSubmodelDescriptor bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java index f349fcf3d..4dbd08f31 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementAttributesBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementAttributes @@ -36,38 +39,74 @@ @IRI("aas:SubmodelElementAttributes") public class DefaultSubmodelElementAttributes implements SubmodelElementAttributes { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementAttributes/kind") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementAttributes/kind") protected ModellingKind kind; public DefaultSubmodelElementAttributes() {} + @Override + public String toString() { + return "DefaultSubmodelElementAttributes{" + + "kind='" + + kind + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -146,6 +185,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -156,6 +200,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -166,6 +215,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -177,6 +231,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -197,6 +256,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -207,8 +271,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format("DefaultSubmodelElementAttributes (" + "kind=%s," + ")", this.kind); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultSubmodelElementAttributes bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java index 9e4517e77..64d72ae73 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementCollection.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; import org.eclipse.digitaltwin.aas4j.v3.model.Extension; import org.eclipse.digitaltwin.aas4j.v3.model.LangStringNameType; @@ -29,6 +28,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementCollectionBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package * org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection @@ -39,38 +42,74 @@ @IRI("aas:SubmodelElementCollection") public class DefaultSubmodelElementCollection implements SubmodelElementCollection { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementCollection/value") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementCollection/value") protected List value = new ArrayList<>(); public DefaultSubmodelElementCollection() {} + @Override + public String toString() { + return "DefaultSubmodelElementCollection{" + + "value='" + + value + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -119,6 +158,11 @@ public void setValue(List values) { this.value = values; } + @Override + public void setValue(SubmodelElement value) { + this.value.add(value); + } + @Override public String getCategory() { return category; @@ -149,6 +193,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -159,6 +208,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -169,6 +223,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -180,6 +239,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -200,6 +264,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -210,8 +279,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format("DefaultSubmodelElementCollection (" + "value=%s," + ")", this.value); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultSubmodelElementCollection bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java index e092d110c..8a32b58bb 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementList.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,13 +11,12 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.AasSubmodelElements; import org.eclipse.digitaltwin.aas4j.v3.model.DataTypeDefXsd; import org.eclipse.digitaltwin.aas4j.v3.model.EmbeddedDataSpecification; @@ -31,6 +30,10 @@ import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.SubmodelElementListBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementList * @@ -39,50 +42,98 @@ @IRI("aas:SubmodelElementList") public class DefaultSubmodelElementList implements SubmodelElementList { - @IRI("https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/0/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/0/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/orderRelevant") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") protected boolean orderRelevant; - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/semanticIdListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") protected Reference semanticIdListElement; - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/typeValueListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") protected AasSubmodelElements typeValueListElement; - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/value") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") protected List value = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/0/SubmodelElementList/valueTypeListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/valueTypeListElement") protected DataTypeDefXsd valueTypeListElement; public DefaultSubmodelElementList() {} + @Override + public String toString() { + return "DefaultSubmodelElementList{" + + "orderRelevant='" + + orderRelevant + + "'," + + "semanticIdListElement='" + + semanticIdListElement + + "'," + + "typeValueListElement='" + + typeValueListElement + + "'," + + "valueTypeListElement='" + + valueTypeListElement + + "'," + + "value='" + + value + + "'," + + "category='" + + category + + "'," + + "idShort='" + + idShort + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash( @@ -179,6 +230,11 @@ public void setValue(List values) { this.value = values; } + @Override + public void setValue(SubmodelElement value) { + this.value.add(value); + } + @Override public String getCategory() { return category; @@ -209,6 +265,11 @@ public void setDisplayName(List displayNames) { this.displayName = displayNames; } + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + @Override public List getDescription() { return description; @@ -219,6 +280,11 @@ public void setDescription(List descriptions) { this.description = descriptions; } + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + @Override public List getExtensions() { return extensions; @@ -229,6 +295,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + @Override public List getEmbeddedDataSpecifications() { return embeddedDataSpecifications; @@ -240,6 +311,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + @Override public Reference getSemanticId() { return semanticId; @@ -260,6 +336,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + @Override public List getQualifiers() { return qualifiers; @@ -270,20 +351,9 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } - public String toString() { - return String.format( - "DefaultSubmodelElementList (" - + "orderRelevant=%s," - + "semanticIdListElement=%s," - + "typeValueListElement=%s," - + "valueTypeListElement=%s," - + "value=%s," - + ")", - this.orderRelevant, - this.semanticIdListElement, - this.typeValueListElement, - this.valueTypeListElement, - this.value); + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); } /** This builder class can be used to construct a DefaultSubmodelElementList bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java index 5e848a9c1..05bd5298b 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueList.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,18 +11,21 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.ValueList; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueListBuilder; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueList * @@ -31,11 +34,16 @@ @IRI("aas:ValueList") public class DefaultValueList implements ValueList { - @IRI("https://admin-shell.io/aas/3/0/ValueList/valueReferencePairs") + @IRI("https://admin-shell.io/aas/3/2/ValueList/valueReferencePairs") protected List valueReferencePairs = new ArrayList<>(); public DefaultValueList() {} + @Override + public String toString() { + return "DefaultValueList{" + "valueReferencePairs='" + valueReferencePairs + "'," + "}"; + } + @Override public int hashCode() { return Objects.hash(this.valueReferencePairs); @@ -65,9 +73,9 @@ public void setValueReferencePairs(List valueReferencePairs) this.valueReferencePairs = valueReferencePairs; } - public String toString() { - return String.format( - "DefaultValueList (" + "valueReferencePairs=%s," + ")", this.valueReferencePairs); + @Override + public void setValueReferencePair(ValueReferencePair valueReferencePair) { + this.valueReferencePairs.add(valueReferencePair); } /** This builder class can be used to construct a DefaultValueList bean. */ diff --git a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java index 2bff3da56..cdb34b192 100644 --- a/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultValueReferencePair.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2021 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. - * Copyright (c) 2023, SAP SE or an SAP affiliate company + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -11,16 +11,19 @@ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. + * + * AI-assisted: This file was generated or updated with assistance from AI tools. */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import java.util.Objects; import org.eclipse.digitaltwin.aas4j.v3.model.Reference; import org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair; import org.eclipse.digitaltwin.aas4j.v3.model.annotations.IRI; import org.eclipse.digitaltwin.aas4j.v3.model.builder.ValueReferencePairBuilder; +import java.util.Objects; + /** * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.ValueReferencePair * @@ -30,14 +33,26 @@ @IRI("aas:ValueReferencePair") public class DefaultValueReferencePair implements ValueReferencePair { - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/value") + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") protected String value; - @IRI("https://admin-shell.io/aas/3/0/ValueReferencePair/valueId") + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/valueId") protected Reference valueId; public DefaultValueReferencePair() {} + @Override + public String toString() { + return "DefaultValueReferencePair{" + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "}"; + } + @Override public int hashCode() { return Objects.hash(this.value, this.valueId); @@ -77,12 +92,6 @@ public void setValueId(Reference valueId) { this.valueId = valueId; } - public String toString() { - return String.format( - "DefaultValueReferencePair (" + "value=%s," + "valueId=%s," + ")", - this.value, this.valueId); - } - /** This builder class can be used to construct a DefaultValueReferencePair bean. */ public static class Builder extends ValueReferencePairBuilder { diff --git a/model/src/test/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceTest.java b/model/src/test/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceTest.java index b64e244cb..ce59f844a 100644 --- a/model/src/test/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceTest.java +++ b/model/src/test/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultReferenceTest.java @@ -16,10 +16,10 @@ */ package org.eclipse.digitaltwin.aas4j.v3.model.impl; -import static org.junit.Assert.assertSame; - import org.junit.Test; +import static org.junit.Assert.assertSame; + public class DefaultReferenceTest { @Test(expected = IllegalArgumentException.class)