diff --git a/README.md b/README.md index 22e422cd2..c0502cc54 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Eclipse AAS4J -> :newspaper: The _`Eclipse AAS4J 2.0.2`_ 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/external/admin-shell-io/examples b/external/admin-shell-io/examples index 9d65d395a..6fd399cd6 160000 --- a/external/admin-shell-io/examples +++ b/external/admin-shell-io/examples @@ -1 +1 @@ -Subproject commit 9d65d395a93893afe7b488a8a31a3fd97c2cd6e9 +Subproject commit 6fd399cd64ea7793a9c7c71ca4cfbd065ae81a00 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..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/1/AasSubmodelElements/AnnotatedRelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/BasicEventElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/BasicEventElement") BASIC_EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Blob") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Blob") BLOB, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Capability") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Capability") CAPABILITY, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/DataElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/DataElement") DATA_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Entity") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Entity") ENTITY, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/EventElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/EventElement") EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/File") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/File") FILE, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/MultiLanguageProperty") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Operation") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Operation") OPERATION, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Property") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Property") PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/Range") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/Range") RANGE, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/ReferenceElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/ReferenceElement") REFERENCE_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/RelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/RelationshipElement") RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/SubmodelElement") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElement") SUBMODEL_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/AasSubmodelElements/SubmodelElementCollection") + @IRI("https://admin-shell.io/aas/3/2/AasSubmodelElements/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, /** */ - @IRI("https://admin-shell.io/aas/3/1/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 a3c668b93..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/1/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/1/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/1/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/1/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/1/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/1/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 4d3f539f9..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 47c48c079..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/1/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/1/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/1/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 6cda2e6fa..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 78cd5133d..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/1/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/1/AssetAdministrationShellDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/administration") AdministrativeInformation getAdministration(); /** * More information under - * https://admin-shell.io/aas/3/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/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 + * 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/1/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/1/AssetAdministrationShellDescriptor/idShort") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/idShort") String getIdShort(); /** * More information under - * https://admin-shell.io/aas/3/1/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/1/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/1/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/1/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/1/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/1/AssetAdministrationShellDescriptor/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/specificAssetIds") List getSpecificAssetIds(); /** * More information under - * https://admin-shell.io/aas/3/1/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/1/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/1/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/1/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 6f6fd34a3..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 4c24c0843..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,29 +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/1/AssetKind/Instance") + @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/1/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/1/AssetKind/Role") + @IRI("https://admin-shell.io/aas/3/2/AssetKind/Role") ROLE, /** Type asset */ - @IRI("https://admin-shell.io/aas/3/1/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 780a3ecf3..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; @@ -20,37 +22,34 @@ 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 { +@KnownSubtypes({@KnownSubtypes.Type(value = DefaultBaseOperationResult.class)}) +public interface BaseOperationResult { /** - * More information under https://admin-shell.io/aas/3/1/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/1/BaseOperationResult/executionState") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") ExecutionState getExecutionState(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/BaseOperationResult/success") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") boolean getSuccess(); /** - * More information under https://admin-shell.io/aas/3/1/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 42a77a00e..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 4dd85abf3..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/1/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/1/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/1/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/1/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/1/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/1/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 f81df8901..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/1/ConceptDescription/isCaseOf + *

More information under https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf * - * @return Returns the List of References for the property isCaseOfs. + * @return Returns the List of References for the property isCaseOf. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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 for the property isCaseOfs. + * @param isCaseOf desired value to be added to the property isCaseOf. */ - void setIsCaseOf(List isCaseOf); + void setIsCaseOf(Reference 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 6cfb21b9d..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 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2023 SAP SE or an SAP affiliate company. + * 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. 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 bcbc67bbc..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; @@ -24,6 +26,6 @@ */ @KnownSubtypes({ @KnownSubtypes.Type(value = DataSpecificationIec61360.class), - @KnownSubtypes.Type(value = CustomDataSpecification.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 cc3c097c1..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,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; -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)}) @@ -31,57 +34,71 @@ public interface DataSpecificationIec61360 extends DataSpecificationContent { * Preferred name * *

More information under - * https://admin-shell.io/aas/3/1/DataSpecificationIec61360/preferredName + * https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName * * @return Returns the List of LangStringPreferredNameTypeIec61360s for the property - * preferredNames. + * preferredName. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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 for the property preferredNames. + * @param preferredName desired value to be added to the property preferredName. */ - void setPreferredName(List preferredName); + void setPreferredName(LangStringPreferredNameTypeIec61360 preferredName); /** * Short name * - *

More information under https://admin-shell.io/aas/3/1/DataSpecificationIec61360/shortName + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * - * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortNames. + * @return Returns the List of LangStringShortNameTypeIec61360s for the property shortName. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/DataSpecificationIec61360/shortName + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName * - * @param shortName desired value for the property shortName. + * @param shortNames desired value for the property shortName. */ - void setShortName(List 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/1/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/1/DataSpecificationIec61360/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 + *

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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/DataSpecificationIec61360/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 + *

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/1/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/1/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/1/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/1/DataSpecificationIec61360/definition + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * - * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definitions. + * @return Returns the List of LangStringDefinitionTypeIec61360s for the property definition. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/DataSpecificationIec61360/definition + *

More information under https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition * - * @param definitions desired value for the property definitions. + * @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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/DataSpecificationIec61360/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 + *

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/1/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/1/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/1/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 4ec555dfc..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/1/DataTypeDefXsd/AnyUri") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/AnyUri") ANY_URI, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Base64Binary") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Base64Binary") BASE64BINARY, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Boolean") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Boolean") BOOLEAN, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Byte") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Byte") BYTE, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Date") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Date") DATE, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/DateTime") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/DateTime") DATE_TIME, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Decimal") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Decimal") DECIMAL, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Double") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Double") DOUBLE, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Duration") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Duration") DURATION, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Float") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Float") FLOAT, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GDay") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GDay") GDAY, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GMonth") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonth") GMONTH, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GMonthDay") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GMonthDay") GMONTH_DAY, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GYear") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYear") GYEAR, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/GYearMonth") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/GYearMonth") GYEAR_MONTH, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/HexBinary") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/HexBinary") HEX_BINARY, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Int") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Int") INT, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Integer") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Integer") INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Long") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Long") LONG, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/NegativeInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NegativeInteger") NEGATIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/NonNegativeInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonNegativeInteger") NON_NEGATIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/NonPositiveInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/NonPositiveInteger") NON_POSITIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/PositiveInteger") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/PositiveInteger") POSITIVE_INTEGER, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Short") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Short") SHORT, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/String") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/String") STRING, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/Time") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/Time") TIME, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedByte") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedByte") UNSIGNED_BYTE, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedInt") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedInt") UNSIGNED_INT, /** */ - @IRI("https://admin-shell.io/aas/3/1/DataTypeDefXsd/UnsignedLong") + @IRI("https://admin-shell.io/aas/3/2/DataTypeDefXsd/UnsignedLong") UNSIGNED_LONG, /** */ - @IRI("https://admin-shell.io/aas/3/1/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 841dc80d6..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 d78d3c8e2..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/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 + * More information under https://admin-shell.io/aas/3/2/Descriptor/endpoints * - * @param displayName desired value for the property displayName. + * @return Returns the List of Endpoints for the property endpoints. */ - void setDisplayName(List displayName); + @IRI("https://admin-shell.io/aas/3/2/Descriptor/endpoints") + List getEndpoints(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/Descriptor/extensions") - List getExtensions(); + void setEndpoints(List endpoints); /** - * More information under https://admin-shell.io/aas/3/1/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 f2b8676fb..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/1/Direction/Input") + @IRI("https://admin-shell.io/aas/3/2/Direction/Input") INPUT, /** Output direction */ - @IRI("https://admin-shell.io/aas/3/1/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 830181427..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/1/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/1/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/1/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/1/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/1/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/1/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 35465dedc..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/1/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/1/Endpoint/_interface") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") String get_interface(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/Endpoint/protocolInformation") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/protocolInformation") ProtocolInformation getProtocolInformation(); /** - * More information under https://admin-shell.io/aas/3/1/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 d4163d33e..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 933e5edfc..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/1/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/1/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 bb2f9a298..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/1/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/1/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/1/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/1/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/1/Environment/submodels") - List getSubmodels(); - - /** - * Submodel - * - *

More information under https://admin-shell.io/aas/3/1/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/1/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/1/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/1/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 7c59cecc2..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 b871833eb..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/1/ExecutionState/Canceled") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Canceled") CANCELED, /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Completed") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Completed") COMPLETED, /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Failed") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Failed") FAILED, /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Initiated") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Initiated") INITIATED, /** */ - @IRI("https://admin-shell.io/aas/3/1/ExecutionState/Running") + @IRI("https://admin-shell.io/aas/3/2/ExecutionState/Running") RUNNING, /** */ - @IRI("https://admin-shell.io/aas/3/1/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 e73e41f6a..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/Extension/refersTo + *

More information under https://admin-shell.io/aas/3/2/Extension/refersTo * - * @return Returns the List of References for the property refersTos. + * @return Returns the List of References for the property refersTo. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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 for the property refersTos. + * @param refersTo desired value to be added to the property refersTo. */ - void setRefersTo(List 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 732d7e2c5..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/1/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/1/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/1/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/1/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/1/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/1/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 7a5a7bad0..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,20 +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 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) }) public interface HasDataSpecification { @@ -33,21 +37,30 @@ public interface HasDataSpecification { * Embedded data specification. * *

More information under - * https://admin-shell.io/aas/3/1/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/1/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/1/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 f54fde6cf..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/1/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/1/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/1/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 caf012af1..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; @@ -25,17 +27,17 @@ public interface HasKind { /** * Kind of the element: either template or instance. * - *

More information under https://admin-shell.io/aas/3/1/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/1/HasKind/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/1/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 8be93f6c9..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,20 +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 = Submodel.class), - @KnownSubtypes.Type(value = Extension.class), + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Extension.class), @KnownSubtypes.Type(value = Qualifier.class) }) public interface HasSemantics { @@ -33,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/1/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/1/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/1/HasSemantics/semanticId + *

More information under https://admin-shell.io/aas/3/2/HasSemantics/semanticId * * @param semanticId desired value for the property semanticId. */ @@ -54,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/1/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/1/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/1/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 fdc27f3f0..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/1/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/1/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/1/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/1/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/1/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/1/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 88c50eda2..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/1/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/1/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/1/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/1/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/1/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/1/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 fc1a84600..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/1/KeyTypes/AnnotatedRelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/AssetAdministrationShell") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/BasicEventElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/BasicEventElement") BASIC_EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Blob") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Blob") BLOB, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Capability") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Capability") CAPABILITY, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/ConceptDescription") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ConceptDescription") CONCEPT_DESCRIPTION, /** Data element. */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/DataElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/DataElement") DATA_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Entity") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Entity") ENTITY, /** Event. */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/EventElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/EventElement") EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/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/1/KeyTypes/FragmentReference") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/FragmentReference") FRAGMENT_REFERENCE, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/GlobalReference") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/GlobalReference") GLOBAL_REFERENCE, /** Identifiable. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/KeyTypes/MultiLanguageProperty") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Operation") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Operation") OPERATION, /** */ - @IRI("https://admin-shell.io/aas/3/1/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/1/KeyTypes/Range") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Range") RANGE, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Referable") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Referable") REFERABLE, /** Reference */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/ReferenceElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/ReferenceElement") REFERENCE_ELEMENT, /** Relationship */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/RelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/RelationshipElement") RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/KeyTypes/Submodel") + @IRI("https://admin-shell.io/aas/3/2/KeyTypes/Submodel") SUBMODEL, /** Submodel Element */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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/1/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 new file mode 100644 index 000000000..fa604363c --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/LangString.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. + * + * 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; + +@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..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 f9c43eb26..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 ab677098b..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/1/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/1/Message/code") + @IRI("https://admin-shell.io/aas/3/2/Message/code") String getCode(); /** - * More information under https://admin-shell.io/aas/3/1/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/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 + * 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/1/Message/messageType") + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") MessageType getMessageType(); /** - * More information under https://admin-shell.io/aas/3/1/Message/messageType + * 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/1/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/1/Message/text") + @IRI("https://admin-shell.io/aas/3/2/Message/text") String getText(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/Message/timestamp") + @IRI("https://admin-shell.io/aas/3/2/Message/timestamp") String getTimestamp(); /** - * More information under https://admin-shell.io/aas/3/1/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 555c8790f..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 @@ -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,22 +24,22 @@ public enum MessageType { /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Error") + @IRI("https://admin-shell.io/aas/3/2/MessageType/Error") ERROR, /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Exception") + @IRI("https://admin-shell.io/aas/3/2/MessageType/Exception") EXCEPTION, /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Info") + @IRI("https://admin-shell.io/aas/3/2/MessageType/Info") INFO, /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Undefined") + @IRI("https://admin-shell.io/aas/3/2/MessageType/Undefined") UNDEFINED, /** */ - @IRI("https://admin-shell.io/aas/3/1/MessageType/Warning") + @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 c13eb0038..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/1/ModelType/AnnotatedRelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/AnnotatedRelationshipElement") ANNOTATED_RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/AssetAdministrationShell") + @IRI("https://admin-shell.io/aas/3/2/ModelType/AssetAdministrationShell") ASSET_ADMINISTRATION_SHELL, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/BasicEventElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/BasicEventElement") BASIC_EVENT_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Blob") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Blob") BLOB, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Capability") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Capability") CAPABILITY, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/ConceptDescription") + @IRI("https://admin-shell.io/aas/3/2/ModelType/ConceptDescription") CONCEPT_DESCRIPTION, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Entity") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Entity") ENTITY, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/File") + @IRI("https://admin-shell.io/aas/3/2/ModelType/File") FILE, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/MultiLanguageProperty") + @IRI("https://admin-shell.io/aas/3/2/ModelType/MultiLanguageProperty") MULTI_LANGUAGE_PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Operation") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Operation") OPERATION, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Property") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Property") PROPERTY, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Qualifier") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Qualifier") QUALIFIER, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Range") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Range") RANGE, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Reference") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Reference") REFERENCE, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/ReferenceElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/ReferenceElement") REFERENCE_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/RelationshipElement") + @IRI("https://admin-shell.io/aas/3/2/ModelType/RelationshipElement") RELATIONSHIP_ELEMENT, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/Submodel") + @IRI("https://admin-shell.io/aas/3/2/ModelType/Submodel") SUBMODEL, /** */ - @IRI("https://admin-shell.io/aas/3/1/ModelType/SubmodelElementCollection") + @IRI("https://admin-shell.io/aas/3/2/ModelType/SubmodelElementCollection") SUBMODEL_ELEMENT_COLLECTION, /** */ - @IRI("https://admin-shell.io/aas/3/1/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 571303af1..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/1/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/1/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 327b003f2..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/1/MultiLanguageProperty/value + *

More information under https://admin-shell.io/aas/3/2/MultiLanguageProperty/value * - * @return Returns the List of LangStringTextTypes for the property values. + * @return Returns the List of LangStringTextTypes for the property value. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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 for the property values. + * @param value desired value to be added to the property value. */ - void setValue(List value); + void setValue(LangStringTextType value); /** * Reference to the global unique ID of a coded value. * - *

More information under https://admin-shell.io/aas/3/1/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/1/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/1/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 1806faba2..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 7932560ed..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/1/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/1/OperationHandle/handleId") + @IRI("https://admin-shell.io/aas/3/2/OperationHandle/handleId") String getHandleId(); /** - * More information under https://admin-shell.io/aas/3/1/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 ef3dd4343..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,62 +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 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; +import java.math.BigInteger; + /** */ @KnownSubtypes({@KnownSubtypes.Type(value = DefaultOperationRequest.class)}) public interface OperationRequest { /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/OperationRequest/clientTimeoutDuration") - Duration getClientTimeoutDuration(); + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/timeout") + BigInteger getTimeout(); /** - * More information under https://admin-shell.io/aas/3/1/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(Duration 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 83831360b..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 extends BaseOperationResult { +public interface OperationResult { + + /** + * 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/1/OperationResult/inoutputArguments + * 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/1/OperationResult/inoutputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") List getInoutputArguments(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/OperationResult/outputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") List getOutputArguments(); /** - * More information under https://admin-shell.io/aas/3/1/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 5b1b2b0e3..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/1/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/1/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/1/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 6a7798231..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/1/PackageDescription/aasIds + * 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 * - * @return Returns the List of Strings for the property aasIds. + * @param items desired value for the property items. */ - @IRI("https://admin-shell.io/aas/3/1/PackageDescription/aasIds") - List getAasIds(); + void setItems(List items); /** - * More information under https://admin-shell.io/aas/3/1/PackageDescription/aasIds + * More information under https://admin-shell.io/aas/3/2/PackageDescription/items * - * @param aasIds desired value for the property aasIds. + * @param item desired value to be added to the property items. */ - void setAasIds(List aasIds); + void setItem(String item); /** - * More information under https://admin-shell.io/aas/3/1/PackageDescription/packageId + * 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/1/PackageDescription/packageId") + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/packageId") String getPackageId(); /** - * More information under https://admin-shell.io/aas/3/1/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 3e4252829..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/1/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/1/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/1/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/1/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/1/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 + *

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/1/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/1/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 + *

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 70e4783af..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/1/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/1/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/1/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/1/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/1/ProtocolInformation/endpointProtocol") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") String getEndpointProtocol(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/ProtocolInformation/endpointProtocolVersion + * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion * - * @return Returns the List of Strings for the property endpointProtocolVersions. + * @return Returns the String for the property endpointProtocolVersion. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/ProtocolInformation/endpointProtocolVersion + * https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocolVersion * * @param endpointProtocolVersion desired value for the property endpointProtocolVersion. */ - void setEndpointProtocolVersion(List 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 securityAttribute desired value to be added to the property securityAttributes. + */ + void setSecurityAttribute(SecurityAttributeObject securityAttribute); /** - * More information under https://admin-shell.io/aas/3/1/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/1/ProtocolInformation/subprotocol") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") String getSubprotocol(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/ProtocolInformation/subprotocolBody") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") String getSubprotocolBody(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/ProtocolInformation/subprotocolBodyEncoding") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBodyEncoding") String getSubprotocolBodyEncoding(); /** * More information under - * https://admin-shell.io/aas/3/1/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/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..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,17 +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; -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) }) public interface Qualifiable { @@ -29,19 +33,26 @@ public interface Qualifiable { /** * Additional qualification of a qualifiable element. * - *

More information under https://admin-shell.io/aas/3/1/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/1/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/1/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 fe321164d..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 464a261ff..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/1/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/1/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/1/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 7fc9f8965..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 a9b09265d..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,18 +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; -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 = Identifiable.class), - @KnownSubtypes.Type(value = SubmodelElement.class) + @KnownSubtypes.Type(value = SubmodelElementAttributes.class), + @KnownSubtypes.Type(value = SubmodelElement.class), + @KnownSubtypes.Type(value = Identifiable.class) }) public interface Referable extends HasExtensions { @@ -30,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/1/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/1/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/1/Referable/category + *

More information under https://admin-shell.io/aas/3/2/Referable/category * * @param category desired value for the property category. */ @@ -51,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/1/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/1/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/1/Referable/idShort + *

More information under https://admin-shell.io/aas/3/2/Referable/idShort * * @param idShort desired value for the property idShort. */ @@ -71,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/1/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/1/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/1/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 for the property displayName. + * @param displayName desired value to be added to the property displayName. */ - void setDisplayName(List displayName); + void setDisplayName(LangStringNameType displayName); /** * Description or comments on the element. * - *

More information under https://admin-shell.io/aas/3/1/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/1/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/1/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 for the property description. + * @param description desired value to be added to the property description. */ - void setDescription(List 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 209112c03..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 6c3177733..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/1/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/1/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/1/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 8789944e0..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/1/ReferenceTypes/ExternalReference") + @IRI("https://admin-shell.io/aas/3/2/ReferenceTypes/ExternalReference") EXTERNAL_REFERENCE, /** Model reference. */ - @IRI("https://admin-shell.io/aas/3/1/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 9d40fc944..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/1/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/1/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/1/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/1/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/1/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/1/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 ff0a2046f..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/1/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/1/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/1/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/1/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/1/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/1/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 5ff30623d..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/1/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/1/Result/messages") + @IRI("https://admin-shell.io/aas/3/2/Result/messages") List getMessages(); /** - * More information under https://admin-shell.io/aas/3/1/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 d860b3f18..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; @@ -19,64 +21,52 @@ 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 + * 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/1/SecurityAttribute/key") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") String getKey(); /** - * The key of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/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); /** - * The value of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/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/1/SecurityAttribute/value") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/value") String getValue(); /** - * The value of the security attribute. - * - *

More information under https://admin-shell.io/aas/3/1/SecurityAttribute/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 ea990f4e6..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; - -/** 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, +import org.eclipse.digitaltwin.aas4j.v3.model.annotations.KnownSubtypes; +import org.eclipse.digitaltwin.aas4j.v3.model.impl.DefaultSecurityTypeEnum; - /** 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; -} +/** */ +@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 a9fdcb023..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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 97fb234ff..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/1/StateOfEvent/Off") + @IRI("https://admin-shell.io/aas/3/2/StateOfEvent/Off") OFF, /** Event is on */ - @IRI("https://admin-shell.io/aas/3/1/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 f3072be49..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/1/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/1/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/1/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 b52801421..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/1/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/1/SubmodelDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/administration") AdministrativeInformation getAdministration(); /** - * More information under https://admin-shell.io/aas/3/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/SubmodelDescriptor/supplementalSemanticId + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId * - * @return Returns the List of References for the property supplementalSemanticIds. + * @return Returns the Reference for the property semanticId. */ - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId") - List getSupplementalSemanticIds(); + @IRI("https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId") + Reference getSemanticId(); /** - * More information under https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId + * More information under https://admin-shell.io/aas/3/2/SubmodelDescriptor/semanticId * - * @param supplementalSemanticIds desired value for the property supplementalSemanticIds. + * @param semanticId desired value for the property semanticId. */ - void setSupplementalSemanticIds(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 new file mode 100644 index 000000000..719cb2945 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/SubmodelElementAttributes.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT 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.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 0b7d09863..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/1/SubmodelElementCollection/value + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementCollection/value * - * @return Returns the List of SubmodelElements for the property values. + * @return Returns the List of SubmodelElements for the property value. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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 for the property values. + * @param value desired value to be added to the property value. */ - void setValue(List 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 248e02247..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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/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/1/SubmodelElementList/value + *

More information under https://admin-shell.io/aas/3/2/SubmodelElementList/value * - * @return Returns the List of SubmodelElements for the property values. + * @return Returns the List of SubmodelElements for the property value. */ - @IRI("https://admin-shell.io/aas/3/1/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/1/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 for the property values. + * @param value desired value to be added to the property value. */ - void setValue(List 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 4525daa33..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/1/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/1/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/1/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 41707768c..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/1/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/1/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/1/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/1/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/1/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/1/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 565f8366b..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(); } @@ -98,11 +101,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -120,11 +123,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); 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 15518b74c..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(); } @@ -142,11 +145,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -164,11 +167,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); 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 b128fc10a..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 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); + 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 90320991a..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 { @@ -143,11 +146,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -165,11 +168,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 a8165833b..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 { @@ -74,11 +77,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -96,11 +99,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 a7fa6d0c9..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 { @@ -52,11 +55,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -74,11 +77,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 436328e5c..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,15 +25,17 @@ 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 { /** - * This function allows setting a value for isCaseOfs + * This function allows setting a value for isCaseOf * * @param isCaseOfs desired value to be set - * @return Builder object with new value for isCaseOfs + * @return Builder object with new value for isCaseOf */ public B isCaseOf(List isCaseOfs) { getBuildingInstance().setIsCaseOf(isCaseOfs); @@ -40,10 +43,10 @@ public B isCaseOf(List isCaseOfs) { } /** - * This function allows adding a value to the 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 isCaseOfs + * @return Builder object with new value for isCaseOf */ public B isCaseOf(Reference isCaseOf) { getBuildingInstance().getIsCaseOf().add(isCaseOf); @@ -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(); } @@ -119,11 +122,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -141,11 +144,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); 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/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/builder/DataSpecificationIec61360Builder.java b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/DataSpecificationIec61360Builder.java index 97f8789cf..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,26 +26,28 @@ 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 { /** - * This function allows setting a value for preferredNames + * This function allows setting a value for preferredName * - * @param preferredName desired value to be set + * @param preferredNames desired value to be set * @return Builder object with new value for preferredName */ - public B preferredName(List preferredName) { - getBuildingInstance().setPreferredName(preferredName); + public B preferredName(List preferredNames) { + getBuildingInstance().setPreferredName(preferredNames); return getSelf(); } /** - * This function allows adding a value to the 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 preferredNames + * @return Builder object with new value for preferredName */ public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { getBuildingInstance().getPreferredName().add(preferredName); @@ -52,21 +55,21 @@ public B preferredName(LangStringPreferredNameTypeIec61360 preferredName) { } /** - * This function allows setting a value for shortNames + * This function allows setting a value for shortName * - * @param shortName desired value to be set - * @return Builder object with new value for shortNames + * @param shortNames desired value to be set + * @return Builder object with new value for shortName */ - public B shortName(List shortName) { - getBuildingInstance().setShortName(shortName); + public B shortName(List shortNames) { + getBuildingInstance().setShortName(shortNames); return getSelf(); } /** - * This function allows adding a value to the 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 shortNames + * @return Builder object with new value for shortName */ public B shortName(LangStringShortNameTypeIec61360 shortName) { getBuildingInstance().getShortName().add(shortName); @@ -129,21 +132,21 @@ public B dataType(DataTypeIec61360 dataType) { } /** - * This function allows setting a value for definitions + * This function allows setting a value for definition * - * @param definition desired value to be set + * @param definitions desired value to be set * @return Builder object with new value for definition */ - public B definition(List definition) { - getBuildingInstance().setDefinition(definition); + public B definition(List definitions) { + getBuildingInstance().setDefinition(definitions); return getSelf(); } /** - * This function allows adding a value to the 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 definitions + * @return Builder object with new value for definition */ public B definition(LangStringDefinitionTypeIec61360 definition) { getBuildingInstance().getDefinition().add(definition); 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 4d5d9b083..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 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 + * 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 7238f2692..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(); } @@ -121,11 +124,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -143,11 +146,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); 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 bf9b6e967..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 { @@ -57,21 +60,21 @@ public B value(String value) { } /** - * This function allows setting a value for refersTos + * This function allows setting a value for refersTo * * @param refersTos desired value to be set - * @return Builder object with new value for refersTos + * @return Builder object with new value for refersTo */ - public B refersTos(List refersTos) { + public B refersTo(List refersTos) { getBuildingInstance().setRefersTo(refersTos); return getSelf(); } /** - * This function allows adding a value to the List 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 refersTos + * @return Builder object with new value for refersTo */ public B refersTo(Reference refersTo) { getBuildingInstance().getRefersTo().add(refersTo); @@ -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 585dd2884..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 { @@ -74,11 +77,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -96,11 +99,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 0bf3f48bd..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,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; @@ -32,17 +34,6 @@ 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 * 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..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,26 +25,28 @@ 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 { /** - * This function allows setting a value for values + * This function allows setting a value for value * - * @param value desired value to be set - * @return Builder object with new value for values + * @param values desired value to be set + * @return Builder object with new value for value */ - public B value(List value) { - getBuildingInstance().setValue(value); + public B value(List values) { + getBuildingInstance().setValue(values); return getSelf(); } /** - * This function allows adding a value to the 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 values + * @return Builder object with new value for value */ public B value(LangStringTextType value) { getBuildingInstance().getValue().add(value); @@ -86,11 +89,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -108,11 +111,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 683b8d643..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(); } @@ -119,11 +122,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -141,11 +144,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); 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 77cef3227..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,15 +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 javax.xml.datatype.Duration; 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 { @@ -30,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(); } @@ -52,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(Duration 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 96c17802c..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,5 +1,6 @@ /* - * 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 @@ -10,20 +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.Message; 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 * @@ -38,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(); } @@ -60,55 +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); - 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); + public B outputArgument(OperationVariable outputArgument) { + getBuildingInstance().getOutputArguments().add(outputArgument); return getSelf(); } /** - * This function allows setting a value for messages + * This function allows setting a value for requestId * - * @param messages desired value to be set - * @return Builder object with new value for messages + * @param requestIds desired value to be set + * @return Builder object with new value for requestId */ - public B messages(List messages) { - getBuildingInstance().setMessages(messages); + public B requestId(List requestIds) { + getBuildingInstance().setRequestId(requestIds); return getSelf(); } /** - * This function allows adding a value to the List messages + * This function allows adding a value to the List requestId * - * @param messages desired value to be added - * @return Builder object with new value for messages + * @param requestId desired value to be added + * @return Builder object with new value for requestId */ - public B messages(Message messages) { - getBuildingInstance().getMessages().add(messages); + 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 931fbc3c3..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,36 +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.PackageDescription; +import java.util.List; + public abstract class PackageDescriptionBuilder< T extends PackageDescription, B extends PackageDescriptionBuilder> extends ExtendableBuilder { /** - * This function allows setting a value for aasIds + * This function allows setting a value for items * - * @param aasIds desired value to be set - * @return Builder object with new value for aasIds + * @param items desired value to be set + * @return Builder object with new value for items */ - public B aasIds(List aasIds) { - getBuildingInstance().setAasIds(aasIds); + public B items(List items) { + getBuildingInstance().setItems(items); return getSelf(); } /** - * This function allows adding a value to the List aasIds + * This function allows adding a value to the List items * - * @param aasIds desired value to be added - * @return Builder object with new value for aasIds + * @param item desired value to be added + * @return Builder object with new value for items */ - public B aasIds(String aasIds) { - getBuildingInstance().getAasIds().add(aasIds); + 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 f7a582aae..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 { @@ -86,11 +89,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -108,11 +111,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 e3a99cfd5..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(); } @@ -51,19 +54,30 @@ public B endpointProtocol(String endpointProtocol) { * @param endpointProtocolVersion desired value to be set * @return Builder object with new value for endpointProtocolVersion */ - public B endpointProtocolVersion(List endpointProtocolVersion) { + public B endpointProtocolVersion(String endpointProtocolVersion) { getBuildingInstance().setEndpointProtocolVersion(endpointProtocolVersion); return getSelf(); } /** - * This function allows adding a value to the List endpointProtocolVersions + * This function allows setting a value for securityAttributes * - * @param endpointProtocolVersion desired value to be added - * @return Builder object with new value for endpointProtocolVersions + * @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 3913c1e36..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 { @@ -86,11 +89,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -108,11 +111,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 dfc5421bb..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 { @@ -64,11 +67,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -86,11 +89,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 f140cfc09..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 { @@ -75,11 +78,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -97,11 +100,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 new file mode 100644 index 000000000..3b70f4182 --- /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. + * + * 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.SecurityTypeEnum; + +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 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 2543ab2de..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(); } @@ -187,11 +190,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -209,11 +212,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); 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 f68c424f1..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 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 + * 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 new file mode 100644 index 000000000..7f4cf9a97 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/builder/SubmodelElementAttributesBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT 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.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< + 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 extension desired value to be added + * @return Builder object with new value for extensions + */ + public B extension(Extension extension) { + getBuildingInstance().getExtensions().add(extension); + 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 embeddedDataSpecification desired value to be added + * @return Builder object with new value for embeddedDataSpecifications + */ + public B embeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + getBuildingInstance().getEmbeddedDataSpecifications().add(embeddedDataSpecification); + 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 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 qualifier desired value to be added + * @return Builder object with new value for 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 556fc1a71..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,26 +26,28 @@ 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 { /** - * This function allows setting a value for values + * This function allows setting a value for value * - * @param value desired value to be set - * @return Builder object with new value for values + * @param values desired value to be set + * @return Builder object with new value for value */ - public B value(List value) { - getBuildingInstance().setValue(value); + public B value(List values) { + getBuildingInstance().setValue(values); return getSelf(); } /** - * This function allows adding a value to the 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 values + * @return Builder object with new value for value */ public B value(SubmodelElement value) { getBuildingInstance().getValue().add(value); @@ -76,11 +79,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -98,11 +101,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 b66f7e17e..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 { @@ -76,21 +79,21 @@ public B valueTypeListElement(DataTypeDefXsd valueTypeListElement) { } /** - * This function allows setting a value for values + * This function allows setting a value for value * - * @param value desired value to be set - * @return Builder object with new value for values + * @param values desired value to be set + * @return Builder object with new value for value */ - public B value(List value) { - getBuildingInstance().setValue(value); + public B value(List values) { + getBuildingInstance().setValue(values); return getSelf(); } /** - * This function allows adding a value to the 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 values + * @return Builder object with new value for value */ public B value(SubmodelElement value) { getBuildingInstance().getValue().add(value); @@ -122,11 +125,11 @@ public B idShort(String idShort) { /** * This function allows setting a value for displayName * - * @param displayName desired value to be set + * @param displayNames desired value to be set * @return Builder object with new value for displayName */ - public B displayName(List displayName) { - getBuildingInstance().setDisplayName(displayName); + public B displayName(List displayNames) { + getBuildingInstance().setDisplayName(displayNames); return getSelf(); } @@ -144,11 +147,11 @@ public B displayName(LangStringNameType displayName) { /** * This function allows setting a value for description * - * @param description desired value to be set + * @param descriptions desired value to be set * @return Builder object with new value for description */ - public B description(List description) { - getBuildingInstance().setDescription(description); + public B description(List descriptions) { + getBuildingInstance().setDescription(descriptions); return getSelf(); } @@ -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 d8d6764ac..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,19 +36,25 @@ @IRI("aas:AdministrativeInformation") public class DefaultAdministrativeInformation implements AdministrativeInformation { - @IRI("https://admin-shell.io/aas/3/1/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/1/AdministrativeInformation/revision") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/revision") protected String revision; - @IRI("https://admin-shell.io/aas/3/1/AdministrativeInformation/templateId") + @IRI("https://admin-shell.io/aas/3/2/AdministrativeInformation/templateId") protected String templateId; - @IRI("https://admin-shell.io/aas/3/1/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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); public DefaultAdministrativeInformation() {} @@ -53,20 +62,28 @@ public DefaultAdministrativeInformation() {} @Override public String toString() { return "DefaultAdministrativeInformation{" - + "creator=" - + creator - + ", revision='" + + "version='" + + version + + "'," + + "revision='" + revision - + '\'' - + ", templateId='" + + "'," + + "creator='" + + creator + + "'," + + "createdAt='" + + createdAt + + "'," + + "updatedAt='" + + updatedAt + + "'," + + "templateId='" + templateId - + '\'' - + ", version='" - + version - + '\'' - + ", embeddedDataSpecifications=" + + "'," + + "embeddedDataSpecifications='" + embeddedDataSpecifications - + '}'; + + "'," + + "}"; } @Override @@ -75,6 +92,8 @@ public int hashCode() { this.version, this.revision, this.creator, + this.createdAt, + this.updatedAt, this.templateId, this.embeddedDataSpecifications); } @@ -92,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); } @@ -127,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; @@ -148,6 +189,11 @@ public void setEmbeddedDataSpecifications( this.embeddedDataSpecifications = embeddedDataSpecifications; } + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + /** This builder class can be used to construct a DefaultAdministrativeInformation bean. */ public static class Builder extends AdministrativeInformationBuilder { 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..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/1/AnnotatedRelationshipElement/annotations") + @IRI("https://admin-shell.io/aas/3/2/AnnotatedRelationshipElement/annotations") protected List annotations = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/first") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") protected Reference first; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -119,38 +164,6 @@ public boolean equals(Object obj) { } } - @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; @@ -161,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; @@ -207,8 +225,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -217,8 +240,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -231,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; @@ -242,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; @@ -262,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; @@ -272,6 +315,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultAnnotatedRelationshipElement bean. */ public static class Builder extends AnnotatedRelationshipElementBuilder { 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..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/1/AssetAdministrationShell/assetInformation") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/assetInformation") protected AssetInformation assetInformation; - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/derivedFrom") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/derivedFrom") protected Reference derivedFrom; - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShell/submodels") + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShell/submodels") protected List submodels = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") protected String id; - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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; @@ -199,8 +251,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -209,8 +266,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -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 effd2fa54..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/1/AssetAdministrationShellDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/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/2/AssetAdministrationShellDescriptor/description") + protected LangStringTextType description; - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/globalAssetId") - protected String globalAssetId; + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/displayName") + protected LangStringNameType displayName; - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/id") - protected String id; + @IRI("https://admin-shell.io/aas/3/2/AssetAdministrationShellDescriptor/globalAssetId") + protected Reference globalAssetId; - @IRI("https://admin-shell.io/aas/3/1/AssetAdministrationShellDescriptor/idShort") + @IRI("https://admin-shell.io/aas/3/2/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/2/AssetAdministrationShellDescriptor/identification") + protected String identification; - @IRI("https://admin-shell.io/aas/3/1/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/1/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/1/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,54 +128,17 @@ 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); } } - @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; @@ -164,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; } @@ -214,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 @@ -234,43 +210,33 @@ public void setSpecificAssetIds(List specificAssetIds) { } @Override - public List getSubmodelDescriptors() { - return submodelDescriptors; - } - - @Override - public void setSubmodelDescriptors(List submodelDescriptors) { - this.submodelDescriptors = submodelDescriptors; - } - - @Override - public List getDescription() { - return description; + public void setSpecificAssetId(SpecificAssetId specificAssetId) { + this.specificAssetIds.add(specificAssetId); } @Override - public void setDescription(List description) { - this.description = description; + public SubmodelDescriptor getSubmodelDescriptors() { + return submodelDescriptors; } @Override - public List getDisplayName() { - return displayName; + public void setSubmodelDescriptors(SubmodelDescriptor submodelDescriptors) { + this.submodelDescriptors = submodelDescriptors; } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + 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 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 84a60bbfe..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/1/AssetInformation/assetKind") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetKind") protected AssetKind assetKind; - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/assetType") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/assetType") protected String assetType; - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/defaultThumbnail") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/defaultThumbnail") protected Resource defaultThumbnail; - @IRI("https://admin-shell.io/aas/3/1/AssetInformation/globalAssetId") + @IRI("https://admin-shell.io/aas/3/2/AssetInformation/globalAssetId") protected String globalAssetId; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -79,24 +103,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultAssetInformation{" - + "assetKind=" - + assetKind - + ", assetType='" - + assetType - + '\'' - + ", defaultThumbnail=" - + defaultThumbnail - + ", globalAssetId='" - + globalAssetId - + '\'' - + ", specificAssetIds=" - + specificAssetIds - + '}'; - } - @Override public AssetKind getAssetKind() { return assetKind; @@ -127,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; 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 31184f752..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,44 +1,56 @@ /* - * 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 + * * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT 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/1/BaseOperationResult/executionState") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/executionState") protected ExecutionState executionState; - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/success") + @IRI("https://admin-shell.io/aas/3/2/BaseOperationResult/success") protected boolean success; - @IRI("https://admin-shell.io/aas/3/1/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 @@ -52,23 +64,10 @@ 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); } } - @Override - public String toString() { - return "DefaultBaseOperationResult{" - + "executionState=" - + executionState - + ", success=" - + success - + ", messages=" - + messages - + '}'; - } - @Override public ExecutionState getExecutionState() { return executionState; @@ -89,16 +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; - } - /** 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 5fd52fe76..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/1/BasicEventElement/direction") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/direction") protected Direction direction; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/lastUpdate") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/lastUpdate") protected String lastUpdate; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/maxInterval") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/maxInterval") protected String maxInterval; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/messageBroker") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageBroker") protected Reference messageBroker; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/messageTopic") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/messageTopic") protected String messageTopic; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/minInterval") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/minInterval") protected String minInterval; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/observed") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/observed") protected Reference observed; - @IRI("https://admin-shell.io/aas/3/1/BasicEventElement/state") + @IRI("https://admin-shell.io/aas/3/2/BasicEventElement/state") protected StateOfEvent state; - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -143,52 +203,6 @@ public boolean equals(Object obj) { } } - @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; @@ -295,8 +309,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -305,8 +324,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -319,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; @@ -330,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; @@ -350,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; @@ -360,6 +399,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultBasicEventElement bean. */ public static class Builder extends BasicEventElementBuilder { 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..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/1/Blob/contentType") + @IRI("https://admin-shell.io/aas/3/2/Blob/contentType") protected String contentType; - @IRI("https://admin-shell.io/aas/3/1/Blob/value") + @IRI("https://admin-shell.io/aas/3/2/Blob/value") protected byte[] value; - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -113,37 +155,6 @@ public boolean equals(Object obj) { } } - @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; @@ -190,8 +201,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -200,8 +216,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -214,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; @@ -225,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; @@ -245,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; @@ -255,6 +291,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultBlob bean. */ public static class Builder extends BlobBuilder { 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..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -102,32 +138,6 @@ public boolean equals(Object obj) { } } - @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; @@ -154,8 +164,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -164,8 +179,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -178,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; @@ -189,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; @@ -209,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; @@ -219,6 +254,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultCapability bean. */ public static class Builder extends CapabilityBuilder { 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..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/1/ConceptDescription/isCaseOf") + @IRI("https://admin-shell.io/aas/3/2/ConceptDescription/isCaseOf") protected List isCaseOf = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") protected String id; - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -103,40 +139,18 @@ public boolean equals(Object obj) { } @Override - public String toString() { - return "DefaultConceptDescription{" - + "isCaseOf=" - + isCaseOf - + ", embeddedDataSpecifications=" - + embeddedDataSpecifications - + ", extensions=" - + extensions - + ", administration=" - + administration - + ", id='" - + id - + '\'' - + ", category='" - + category - + '\'' - + ", description=" - + description - + ", displayName=" - + displayName - + ", idShort='" - + idShort - + '\'' - + '}'; + public List getIsCaseOf() { + return isCaseOf; } @Override - public List getIsCaseOf() { - return isCaseOf; + public void setIsCaseOf(List isCaseOfs) { + this.isCaseOf = isCaseOfs; } @Override - public void setIsCaseOf(List isCaseOf) { - this.isCaseOf = isCaseOf; + public void setIsCaseOf(Reference isCaseOf) { + this.isCaseOf.add(isCaseOf); } @Override @@ -150,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; @@ -196,8 +215,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -206,8 +230,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -220,6 +249,11 @@ public void setExtensions(List extensions) { this.extensions = extensions; } + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + /** This builder class can be used to construct a DefaultConceptDescription bean. */ public static class Builder extends ConceptDescriptionBuilder { 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..770a96d80 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultCustomDataSpecification.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.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; + +/** + * 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(); + } + } +} 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..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,54 +28,100 @@ 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 + *

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") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/dataType") protected DataTypeIec61360 dataType; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/definition") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/definition") protected List definition = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/levelType") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/levelType") protected LevelType levelType; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/preferredName") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/preferredName") protected List preferredName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/shortName") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/shortName") protected List shortName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/sourceOfDefinition") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/sourceOfDefinition") protected String sourceOfDefinition; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/symbol") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/symbol") protected String symbol; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unit") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unit") protected String unit; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/unitId") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/unitId") protected Reference unitId; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/value") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/value") protected String value; - @IRI("https://admin-shell.io/aas/3/1/DataSpecificationIec61360/valueFormat") + @IRI("https://admin-shell.io/aas/3/2/DataSpecificationIec61360/valueFormat") protected String valueFormat; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -120,48 +165,18 @@ public boolean equals(Object obj) { } @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 - + '}'; + public List getPreferredName() { + return preferredName; } @Override - public List getPreferredName() { - return preferredName; + public void setPreferredName(List preferredNames) { + this.preferredName = preferredNames; } @Override - public void setPreferredName(List preferredName) { - this.preferredName = preferredName; + public void setPreferredName(LangStringPreferredNameTypeIec61360 preferredName) { + this.preferredName.add(preferredName); } @Override @@ -170,8 +185,13 @@ public List getShortName() { } @Override - public void setShortName(List shortName) { - this.shortName = shortName; + public void setShortName(List shortNames) { + this.shortName = shortNames; + } + + @Override + public void setShortName(LangStringShortNameTypeIec61360 shortName) { + this.shortName.add(shortName); } @Override @@ -230,8 +250,13 @@ public List getDefinition() { } @Override - public void setDefinition(List definition) { - this.definition = definition; + public void setDefinition(List definitions) { + this.definition = definitions; + } + + @Override + public void setDefinition(LangStringDefinitionTypeIec61360 definition) { + this.definition.add(definition); } @Override 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 1b5b74d0b..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/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/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,52 +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 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; + 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 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 b46e0858e..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/1/EmbeddedDataSpecification/dataSpecification") + @IRI("https://admin-shell.io/aas/3/2/EmbeddedDataSpecification/dataSpecification") protected Reference dataSpecification; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -59,16 +74,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultEmbeddedDataSpecification{" - + "dataSpecification=" - + dataSpecification - + ", dataSpecificationContent=" - + dataSpecificationContent - + '}'; - } - @Override public Reference getDataSpecification() { return dataSpecification; 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 0caeb6ab6..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/1/Endpoint/_interface") + @IRI("https://admin-shell.io/aas/3/2/Endpoint/_interface") protected String _interface; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -53,17 +68,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultEndpoint{" - + "_interface='" - + _interface - + '\'' - + ", protocolInformation=" - + protocolInformation - + '}'; - } - @Override public String get_interface() { return _interface; 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..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/1/Entity/entityType") + @IRI("https://admin-shell.io/aas/3/2/Entity/entityType") protected EntityType entityType; - @IRI("https://admin-shell.io/aas/3/1/Entity/globalAssetId") + @IRI("https://admin-shell.io/aas/3/2/Entity/globalAssetId") protected String globalAssetId; - @IRI("https://admin-shell.io/aas/3/1/Entity/specificAssetIds") + @IRI("https://admin-shell.io/aas/3/2/Entity/specificAssetIds") protected List specificAssetIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Entity/statements") + @IRI("https://admin-shell.io/aas/3/2/Entity/statements") protected List statements = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -124,41 +172,6 @@ public boolean equals(Object obj) { } } - @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; @@ -169,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; @@ -199,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; @@ -225,8 +248,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -235,8 +263,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -249,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; @@ -260,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; @@ -280,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; @@ -290,6 +338,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultEntity bean. */ public static class Builder extends EntityBuilder { 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..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/1/Environment/assetAdministrationShells") + @IRI("https://admin-shell.io/aas/3/2/Environment/assetAdministrationShells") protected List assetAdministrationShells = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Environment/conceptDescriptions") + @IRI("https://admin-shell.io/aas/3/2/Environment/conceptDescriptions") protected List conceptDescriptions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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 014257a87..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/1/EventPayload/observableReference") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableReference") protected Reference observableReference; - @IRI("https://admin-shell.io/aas/3/1/EventPayload/observableSemanticId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/observableSemanticId") protected Reference observableSemanticId; - @IRI("https://admin-shell.io/aas/3/1/EventPayload/payload") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/payload") protected byte[] payload; - @IRI("https://admin-shell.io/aas/3/1/EventPayload/source") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/source") protected Reference source; - @IRI("https://admin-shell.io/aas/3/1/EventPayload/sourceSemanticId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/sourceSemanticId") protected Reference sourceSemanticId; - @IRI("https://admin-shell.io/aas/3/1/EventPayload/subjectId") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/subjectId") protected Reference subjectId; - @IRI("https://admin-shell.io/aas/3/1/EventPayload/timeStamp") + @IRI("https://admin-shell.io/aas/3/2/EventPayload/timeStamp") protected String timeStamp; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -90,30 +123,6 @@ public boolean equals(Object obj) { } } - @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; 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..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,33 +35,57 @@ @IRI("aas:Extension") public class DefaultExtension implements Extension { - @IRI("https://admin-shell.io/aas/3/1/Extension/name") + @IRI("https://admin-shell.io/aas/3/2/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/2/Extension/refersTo") + protected List refersTo = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Extension/value") + @IRI("https://admin-shell.io/aas/3/2/Extension/value") protected String value; - @IRI("https://admin-shell.io/aas/3/1/Extension/valueType") + @IRI("https://admin-shell.io/aas/3/2/Extension/valueType") protected DataTypeDefXsd valueType; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/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( this.name, this.valueType, this.value, - this.refersTos, + this.refersTo, this.semanticId, this.supplementalSemanticIds); } @@ -76,32 +103,12 @@ public boolean equals(Object 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.refersTo, other.refersTo) && 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; @@ -134,12 +141,17 @@ public void setValue(String value) { @Override public List getRefersTo() { - return refersTos; + return refersTo; } @Override public void setRefersTo(List refersTos) { - this.refersTos = refersTos; + this.refersTo = refersTos; + } + + @Override + public void setRefersTo(Reference refersTo) { + this.refersTo.add(refersTo); } @Override @@ -162,6 +174,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + /** This builder class can be used to construct a DefaultExtension bean. */ public static class Builder extends ExtensionBuilder { 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..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/1/File/contentType") + @IRI("https://admin-shell.io/aas/3/2/File/contentType") protected String contentType; - @IRI("https://admin-shell.io/aas/3/1/File/value") + @IRI("https://admin-shell.io/aas/3/2/File/value") protected String value; - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -111,38 +153,6 @@ public boolean equals(Object obj) { } } - @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; @@ -189,8 +199,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -199,8 +214,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -213,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; @@ -224,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; @@ -244,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; @@ -254,6 +289,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultFile bean. */ public static class Builder extends FileBuilder { 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..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/1/Key/type") + @IRI("https://admin-shell.io/aas/3/2/Key/type") protected KeyTypes type; - @IRI("https://admin-shell.io/aas/3/1/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 788e3aa03..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/1/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/1/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,18 +91,6 @@ 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< 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 42ee10b67..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/1/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -55,18 +70,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultLangStringNameType{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - @Override public String getLanguage() { return language; 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..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/1/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -58,18 +73,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultLangStringPreferredNameTypeIec61360{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - @Override public String getLanguage() { return language; 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..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/1/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -56,18 +71,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultLangStringShortNameTypeIec61360{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - @Override public String getLanguage() { return language; 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..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/1/AbstractLangString/language") + @IRI("https://admin-shell.io/aas/3/2/AbstractLangString/language") protected String language; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -55,18 +70,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultLangStringTextType{" - + "language='" - + language - + '\'' - + ", text='" - + text - + '\'' - + '}'; - } - @Override public String getLanguage() { return language; 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 4ff262727..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/1/LevelType/max") + @IRI("https://admin-shell.io/aas/3/2/LevelType/max") protected boolean max; - @IRI("https://admin-shell.io/aas/3/1/LevelType/min") + @IRI("https://admin-shell.io/aas/3/2/LevelType/min") protected boolean min; - @IRI("https://admin-shell.io/aas/3/1/LevelType/nom") + @IRI("https://admin-shell.io/aas/3/2/LevelType/nom") protected boolean nom; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -65,20 +86,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultLevelType{" - + "max=" - + max - + ", min=" - + min - + ", nom=" - + nom - + ", typ=" - + typ - + '}'; - } - @Override public boolean getMin() { return min; 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 46354baf7..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.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/1/Message/code") + @IRI("https://admin-shell.io/aas/3/2/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") + @IRI("https://admin-shell.io/aas/3/2/Message/messageType") protected MessageType messageType; - @IRI("https://admin-shell.io/aas/3/1/Message/text") + @IRI("https://admin-shell.io/aas/3/2/Message/text") protected String text; - @IRI("https://admin-shell.io/aas/3/1/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,33 +76,12 @@ 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); } } - @Override - public String toString() { - return "DefaultMessage{" - + "code='" - + code - + '\'' - + ", correlationId='" - + correlationId - + '\'' - + ", messageType=" - + messageType - + ", text='" - + text - + '\'' - + ", timestamp='" - + timestamp - + '\'' - + '}'; - } - @Override public String getCode() { return code; @@ -95,16 +92,6 @@ 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; 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..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/MultiLanguageProperty/value") + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/value") protected List value = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/MultiLanguageProperty/valueId") + @IRI("https://admin-shell.io/aas/3/2/MultiLanguageProperty/valueId") protected Reference valueId; - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -112,43 +154,18 @@ public boolean equals(Object obj) { } @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 - + '\'' - + '}'; + public List getValue() { + return value; } @Override - public List getValue() { - return value; + public void setValue(List values) { + this.value = values; } @Override - public void setValue(List value) { - this.value = value; + public void setValue(LangStringTextType value) { + this.value.add(value); } @Override @@ -187,8 +204,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -197,8 +219,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -211,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; @@ -222,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; @@ -242,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; @@ -252,6 +294,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultMultiLanguageProperty bean. */ public static class Builder extends MultiLanguagePropertyBuilder { 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..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Operation/inoutputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/inoutputVariables") protected List inoutputVariables = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Operation/inputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/inputVariables") protected List inputVariables = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Operation/outputVariables") + @IRI("https://admin-shell.io/aas/3/2/Operation/outputVariables") protected List outputVariables = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -117,38 +162,6 @@ public boolean equals(Object obj) { } } - @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; @@ -159,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; @@ -169,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; @@ -179,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; @@ -205,8 +233,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -215,8 +248,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -229,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; @@ -240,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; @@ -260,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; @@ -270,6 +323,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultOperation bean. */ public static class Builder extends OperationBuilder { 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 d2f150ba7..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/1/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,15 +62,11 @@ 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); } } - @Override - public String toString() { - return "DefaultOperationHandle{" + "handleId='" + handleId + '\'' + '}'; - } - @Override public String getHandleId() { return handleId; @@ -63,6 +77,16 @@ 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 { 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 5d2e7735b..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,37 +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 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; +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/1/OperationRequest/clientTimeoutDuration") - protected Duration clientTimeoutDuration; + @IRI("https://admin-shell.io/aas/3/2/OperationRequest/inoutputArguments") + protected OperationVariable inoutputArguments; - @IRI("https://admin-shell.io/aas/3/1/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/1/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 @@ -56,38 +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 Duration getClientTimeoutDuration() { - return clientTimeoutDuration; + public String getRequestId() { + return requestId; + } + + @Override + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public BigInteger getTimeout() { + return timeout; } @Override - public void setClientTimeoutDuration(Duration clientTimeoutDuration) { - this.clientTimeoutDuration = clientTimeoutDuration; + 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 d506738d6..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,49 +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.Message; 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/1/BaseOperationResult/executionState") - protected ExecutionState executionState; + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionResult") + protected List executionResult = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/BaseOperationResult/success") - protected boolean success; + @IRI("https://admin-shell.io/aas/3/2/OperationResult/executionState") + protected List executionState = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/OperationResult/inoutputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/inoutputArguments") protected List inoutputArguments = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/OperationResult/outputArguments") + @IRI("https://admin-shell.io/aas/3/2/OperationResult/outputArguments") protected List outputArguments = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Result/messages") - protected List messages = 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.executionResult, + this.executionState, this.inoutputArguments, this.outputArguments, - this.executionState, - this.success, - this.messages); + this.requestId); } @Override @@ -66,28 +90,42 @@ 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.success, other.success) - && Objects.equals(this.messages, other.messages); + && Objects.equals(this.inoutputArguments, other.inoutputArguments) + && Objects.equals(this.outputArguments, other.outputArguments) + && Objects.equals(this.requestId, other.requestId); } } @Override - public String toString() { - return "DefaultOperationResult{" - + "executionState=" - + executionState - + ", success=" - + success - + ", inoutputArguments=" - + inoutputArguments - + ", outputArguments=" - + outputArguments - + ", messages=" - + messages - + '}'; + 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 @@ -100,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; @@ -111,33 +154,23 @@ public void setOutputArguments(List outputArguments) { } @Override - public ExecutionState getExecutionState() { - return executionState; - } - - @Override - public void setExecutionState(ExecutionState executionState) { - this.executionState = executionState; - } - - @Override - public boolean getSuccess() { - return success; + public void setOutputArgument(OperationVariable outputArgument) { + this.outputArguments.add(outputArgument); } @Override - public void setSuccess(boolean success) { - this.success = success; + public List getRequestId() { + return requestId; } @Override - public List getMessages() { - return messages; + public void setRequestId(List requestIds) { + this.requestId = requestIds; } @Override - public void setMessages(List messages) { - this.messages = messages; + 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 56907a1bf..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/1/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); @@ -54,11 +62,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultOperationVariable{" + "value=" + value + '}'; - } - @Override public SubmodelElement getValue() { return 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 99cd91439..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,32 +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.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/1/PackageDescription/aasIds") - protected List aasIds = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/PackageDescription/items") + protected List items = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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.aasIds, this.packageId); + return Objects.hash(this.items, this.packageId); } @Override @@ -49,30 +64,24 @@ public boolean equals(Object obj) { return false; } else { DefaultPackageDescription other = (DefaultPackageDescription) obj; - return Objects.equals(this.aasIds, other.aasIds) + return Objects.equals(this.items, other.items) && Objects.equals(this.packageId, other.packageId); } } @Override - public String toString() { - return "DefaultPackageDescription{" - + "aasIds=" - + aasIds - + ", packageId='" - + packageId - + '\'' - + '}'; + public List getItems() { + return items; } @Override - public List getAasIds() { - return aasIds; + public void setItems(List items) { + this.items = items; } @Override - public void setAasIds(List aasIds) { - this.aasIds = aasIds; + public void setItem(String item) { + this.items.add(item); } @Override 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..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Property/value") + @IRI("https://admin-shell.io/aas/3/2/Property/value") protected String value; - @IRI("https://admin-shell.io/aas/3/1/Property/valueId") + @IRI("https://admin-shell.io/aas/3/2/Property/valueId") protected Reference valueId; - @IRI("https://admin-shell.io/aas/3/1/Property/valueType") + @IRI("https://admin-shell.io/aas/3/2/Property/valueType") protected DataTypeDefXsd valueType; - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -117,39 +162,6 @@ public boolean equals(Object obj) { } } - @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; @@ -206,8 +218,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -216,8 +233,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -230,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; @@ -241,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; @@ -261,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; @@ -271,6 +308,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultProperty bean. */ public static class Builder extends PropertyBuilder { 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 f5c4b2c20..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/1/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/1/ProtocolInformation/endpointProtocolVersion") - protected List endpointProtocolVersions = new ArrayList<>(); + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/endpointProtocol") + protected String endpointProtocol; - @IRI("https://admin-shell.io/aas/3/1/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/1/ProtocolInformation/securityAttributes") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/securityAttributes") protected List securityAttributes = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocol") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocol") protected String subprotocol; - @IRI("https://admin-shell.io/aas/3/1/ProtocolInformation/subprotocolBody") + @IRI("https://admin-shell.io/aas/3/2/ProtocolInformation/subprotocolBody") protected String subprotocolBody; - @IRI("https://admin-shell.io/aas/3/1/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.endpointProtocolVersions, + 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.endpointProtocolVersions, other.endpointProtocolVersions) + && 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() { - return endpointProtocolVersions; + public String getEndpointProtocolVersion() { + return endpointProtocolVersion; + } + + @Override + public void setEndpointProtocolVersion(String endpointProtocolVersion) { + this.endpointProtocolVersion = endpointProtocolVersion; + } + + @Override + public List getSecurityAttributes() { + return securityAttributes; } @Override - public void setEndpointProtocolVersion(List endpointProtocolVersion) { - this.endpointProtocolVersions = endpointProtocolVersion; + public void setSecurityAttributes(List securityAttributes) { + this.securityAttributes = securityAttributes; + } + + @Override + public void setSecurityAttribute(SecurityAttributeObject securityAttribute) { + this.securityAttributes.add(securityAttribute); } @Override @@ -142,16 +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; - } - /** 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 6f9bcc4ed..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,54 @@ @IRI("aas:Qualifier") public class DefaultQualifier implements Qualifier { - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifier/kind") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/kind") protected QualifierKind kind; - @IRI("https://admin-shell.io/aas/3/1/Qualifier/type") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/type") protected String type; - @IRI("https://admin-shell.io/aas/3/1/Qualifier/value") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/value") protected String value; - @IRI("https://admin-shell.io/aas/3/1/Qualifier/valueId") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueId") protected Reference valueId; - @IRI("https://admin-shell.io/aas/3/1/Qualifier/valueType") + @IRI("https://admin-shell.io/aas/3/2/Qualifier/valueType") protected DataTypeDefXsd valueType; - public DefaultQualifier() { - this.kind = QualifierKind.CONCEPT_QUALIFIER; + public DefaultQualifier() {} + + @Override + public String toString() { + return "DefaultQualifier{" + + "kind='" + + kind + + "'," + + "type='" + + type + + "'," + + "valueType='" + + valueType + + "'," + + "value='" + + value + + "'," + + "valueId='" + + valueId + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "}"; } @Override @@ -91,28 +119,6 @@ public boolean equals(Object obj) { } } - @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; @@ -183,6 +189,11 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) this.supplementalSemanticIds = supplementalSemanticIds; } + @Override + public void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + /** This builder class can be used to construct a DefaultQualifier bean. */ public static class Builder extends QualifierBuilder { 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..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Range/max") + @IRI("https://admin-shell.io/aas/3/2/Range/max") protected String max; - @IRI("https://admin-shell.io/aas/3/1/Range/min") + @IRI("https://admin-shell.io/aas/3/2/Range/min") protected String min; - @IRI("https://admin-shell.io/aas/3/1/Range/valueType") + @IRI("https://admin-shell.io/aas/3/2/Range/valueType") protected DataTypeDefXsd valueType; - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -117,40 +162,6 @@ public boolean equals(Object obj) { } } - @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; @@ -207,8 +218,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -217,8 +233,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -231,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; @@ -242,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; @@ -262,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; @@ -272,6 +308,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultRange bean. */ public static class Builder extends RangeBuilder { 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 e5ab804fd..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/1/Reference/keys") + @IRI("https://admin-shell.io/aas/3/2/Reference/keys") protected List keys = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Reference/referredSemanticId") + @IRI("https://admin-shell.io/aas/3/2/Reference/referredSemanticId") protected Reference referredSemanticId; - @IRI("https://admin-shell.io/aas/3/1/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); @@ -67,18 +82,6 @@ public boolean equals(Object obj) { } } - @Override - public String toString() { - return "DefaultReference{" - + "keys=" - + keys - + ", referredSemanticId=" - + referredSemanticId - + ", type=" - + type - + '}'; - } - @Override public ReferenceTypes getType() { return type; @@ -96,7 +99,6 @@ public Reference getReferredSemanticId() { @Override public void setReferredSemanticId(Reference referredSemanticId) { - validateReferredSemanticId(referredSemanticId); this.referredSemanticId = referredSemanticId; } @@ -110,6 +112,11 @@ public void setKeys(List keys) { this.keys = keys; } + @Override + public void setKey(Key key) { + this.keys.add(key); + } + /** This builder class can be used to construct a DefaultReference bean. */ public static class Builder extends ReferenceBuilder { @@ -123,19 +130,4 @@ protected DefaultReference newBuildingInstance() { return new DefaultReference(); } } - - 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 b6b01bbf3..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -107,34 +146,6 @@ public boolean equals(Object obj) { } } - @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; @@ -171,8 +182,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -181,8 +197,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -195,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; @@ -206,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; @@ -226,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; @@ -236,6 +272,11 @@ public void setQualifiers(List qualifiers) { this.qualifiers = qualifiers; } + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + /** This builder class can be used to construct a DefaultReferenceElement bean. */ public static class Builder extends ReferenceElementBuilder { 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..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/1/RelationshipElement/first") + @IRI("https://admin-shell.io/aas/3/2/RelationshipElement/first") protected Reference first; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -158,8 +200,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -168,8 +215,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -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; @@ -224,33 +291,8 @@ public void setQualifiers(List 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 - + '}'; + 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 302086f28..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/1/Resource/contentType") + @IRI("https://admin-shell.io/aas/3/2/Resource/contentType") protected String contentType; - @IRI("https://admin-shell.io/aas/3/1/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,18 +85,6 @@ 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 { 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 e1958dd86..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/1/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); } } @@ -62,8 +74,18 @@ public void setMessages(List messages) { } @Override - public String toString() { - return "DefaultResult{" + "messages=" + messages + '}'; + 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 b58e24042..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,38 +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.SecurityAttribute - * - *

Represents security attributes in the Asset Administration Shell. + * Default implementation of package org.eclipse.digitaltwin.aas4j.v3.model.SecurityAttributeObject */ -@IRI("aas:SecurityAttribute") +@IRI("aas:SecurityAttributeObject") public class DefaultSecurityAttributeObject implements SecurityAttributeObject { - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/key") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/key") protected String key; - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/type") + @IRI("https://admin-shell.io/aas/3/2/SecurityAttributeObject/type") protected SecurityTypeEnum type; - @IRI("https://admin-shell.io/aas/3/1/SecurityAttribute/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.type, this.key, this.value); + return Objects.hash(this.key, this.value, this.type); } @Override @@ -55,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; @@ -91,7 +97,17 @@ public void setValue(String value) { this.value = value; } - /** This builder class can be used to construct a DefaultSecurityAttribute bean. */ + @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 { 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..049471d26 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSecurityTypeEnum.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. + * + * 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.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(); + } + } +} 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..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/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/externalSubjectId") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/externalSubjectId") protected Reference externalSubjectId; - @IRI("https://admin-shell.io/aas/3/1/SpecificAssetId/name") + @IRI("https://admin-shell.io/aas/3/2/SpecificAssetId/name") protected String name; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -127,21 +151,8 @@ public void setSupplementalSemanticIds(List supplementalSemanticIds) } @Override - public String toString() { - return "DefaultSpecificAssetId{" - + "semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + ", externalSubjectId=" - + externalSubjectId - + ", name='" - + name - + '\'' - + ", value='" - + value - + '\'' - + '}'; + 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 55b5a3a97..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,90 @@ @IRI("aas:Submodel") public class DefaultSubmodel implements Submodel { - @IRI("https://admin-shell.io/aas/3/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasKind/kind") + @IRI("https://admin-shell.io/aas/3/2/HasKind/kind") protected ModellingKind kind; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Identifiable/administration") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/administration") protected AdministrativeInformation administration; - @IRI("https://admin-shell.io/aas/3/1/Identifiable/id") + @IRI("https://admin-shell.io/aas/3/2/Identifiable/id") protected String id; - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/1/Submodel/submodelElements") + @IRI("https://admin-shell.io/aas/3/2/Submodel/submodelElements") protected List submodelElements = new ArrayList<>(); - public DefaultSubmodel() { - this.kind = ModellingKind.INSTANCE; + 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 @@ -136,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; @@ -147,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; @@ -167,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; @@ -177,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; @@ -233,8 +299,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -243,8 +314,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -258,38 +334,8 @@ public void setExtensions(List 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 - + '}'; + 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 3c655daed..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/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/2/Descriptor/endpoints") + protected List endpoints = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/administration") + @IRI("https://admin-shell.io/aas/3/2/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/2/SubmodelDescriptor/description") + protected LangStringTextType description; - @IRI("https://admin-shell.io/aas/3/1/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/1/SubmodelDescriptor/idShort") + @IRI("https://admin-shell.io/aas/3/2/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/2/SubmodelDescriptor/identification") + protected String identification; - @IRI("https://admin-shell.io/aas/3/1/SubmodelDescriptor/supplementalSemanticId") - protected List supplementalSemanticIds = 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.supplementalSemanticIds, 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.supplementalSemanticIds, other.supplementalSemanticIds) && 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,69 +177,18 @@ public void setSemanticId(Reference 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; + public List getEndpoints() { + return endpoints; } @Override - public void setExtensions(List extensions) { - this.extensions = extensions; + public void setEndpoints(List endpoints) { + this.endpoints = endpoints; } @Override - public String toString() { - return "DefaultSubmodelDescriptor{" - + "description=" - + description - + ", displayName=" - + displayName - + ", extensions=" - + extensions - + ", administration=" - + administration - + ", endpoints=" - + endpoints - + ", id='" - + id - + '\'' - + ", idShort='" - + idShort - + '\'' - + ", semanticId=" - + semanticId - + ", supplementalSemanticIds=" - + supplementalSemanticIds - + '}'; + 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 new file mode 100644 index 000000000..4dbd08f31 --- /dev/null +++ b/model/src/main/java/org/eclipse/digitaltwin/aas4j/v3/model/impl/DefaultSubmodelElementAttributes.java @@ -0,0 +1,293 @@ +/* + * Copyright (c) 2026 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e. V. + * Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT 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.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 description = new ArrayList<>(); + + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") + protected List displayName = 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 + + "'," + + "displayName='" + + displayName + + "'," + + "description='" + + description + + "'," + + "extensions='" + + extensions + + "'," + + "embeddedDataSpecifications='" + + embeddedDataSpecifications + + "'," + + "semanticId='" + + semanticId + + "'," + + "supplementalSemanticIds='" + + supplementalSemanticIds + + "'," + + "qualifiers='" + + qualifiers + + "'," + + "}"; + } + + @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 void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); + } + + @Override + public List getDescription() { + return description; + } + + @Override + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); + } + + @Override + public List getExtensions() { + return extensions; + } + + @Override + public void setExtensions(List extensions) { + this.extensions = extensions; + } + + @Override + public void setExtension(Extension extension) { + this.extensions.add(extension); + } + + @Override + public List getEmbeddedDataSpecifications() { + return embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecifications( + List embeddedDataSpecifications) { + this.embeddedDataSpecifications = embeddedDataSpecifications; + } + + @Override + public void setEmbeddedDataSpecification(EmbeddedDataSpecification embeddedDataSpecification) { + this.embeddedDataSpecifications.add(embeddedDataSpecification); + } + + @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 void setSupplementalSemanticId(Reference supplementalSemanticId) { + this.supplementalSemanticIds.add(supplementalSemanticId); + } + + @Override + public List getQualifiers() { + return qualifiers; + } + + @Override + public void setQualifiers(List qualifiers) { + this.qualifiers = qualifiers; + } + + @Override + public void setQualifier(Qualifier qualifier) { + this.qualifiers.add(qualifier); + } + + /** 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 f24f70e88..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/1/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( @@ -115,8 +154,13 @@ public List getValue() { } @Override - public void setValue(List value) { - this.value = value; + public void setValue(List values) { + this.value = values; + } + + @Override + public void setValue(SubmodelElement value) { + this.value.add(value); } @Override @@ -145,8 +189,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -155,8 +204,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -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; @@ -211,31 +280,8 @@ public void setQualifiers(List 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 - + '}'; + 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 28bc6cef3..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/1/HasDataSpecification/embeddedDataSpecifications") + @IRI("https://admin-shell.io/aas/3/2/HasDataSpecification/embeddedDataSpecifications") protected List embeddedDataSpecifications = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasExtensions/extensions") + @IRI("https://admin-shell.io/aas/3/2/HasExtensions/extensions") protected List extensions = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/semanticId") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/semanticId") protected Reference semanticId; - @IRI("https://admin-shell.io/aas/3/1/HasSemantics/supplementalSemanticIds") + @IRI("https://admin-shell.io/aas/3/2/HasSemantics/supplementalSemanticIds") protected List supplementalSemanticIds = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Qualifiable/qualifiers") + @IRI("https://admin-shell.io/aas/3/2/Qualifiable/qualifiers") protected List qualifiers = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/category") + @IRI("https://admin-shell.io/aas/3/2/Referable/category") protected String category; - @IRI("https://admin-shell.io/aas/3/1/Referable/description") + @IRI("https://admin-shell.io/aas/3/2/Referable/description") protected List description = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/displayName") + @IRI("https://admin-shell.io/aas/3/2/Referable/displayName") protected List displayName = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/Referable/idShort") + @IRI("https://admin-shell.io/aas/3/2/Referable/idShort") protected String idShort; - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/orderRelevant") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/orderRelevant") protected boolean orderRelevant; - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/semanticIdListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/semanticIdListElement") protected Reference semanticIdListElement; - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/typeValueListElement") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/typeValueListElement") protected AasSubmodelElements typeValueListElement; - @IRI("https://admin-shell.io/aas/3/1/SubmodelElementList/value") + @IRI("https://admin-shell.io/aas/3/2/SubmodelElementList/value") protected List value = new ArrayList<>(); - @IRI("https://admin-shell.io/aas/3/1/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( @@ -175,8 +226,13 @@ public List getValue() { } @Override - public void setValue(List value) { - this.value = value; + public void setValue(List values) { + this.value = values; + } + + @Override + public void setValue(SubmodelElement value) { + this.value.add(value); } @Override @@ -205,8 +261,13 @@ public List getDisplayName() { } @Override - public void setDisplayName(List displayName) { - this.displayName = displayName; + public void setDisplayName(List displayNames) { + this.displayName = displayNames; + } + + @Override + public void setDisplayName(LangStringNameType displayName) { + this.displayName.add(displayName); } @Override @@ -215,8 +276,13 @@ public List getDescription() { } @Override - public void setDescription(List description) { - this.description = description; + public void setDescription(List descriptions) { + this.description = descriptions; + } + + @Override + public void setDescription(LangStringTextType description) { + this.description.add(description); } @Override @@ -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; @@ -271,39 +352,8 @@ public void setQualifiers(List 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 - + '}'; + 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 18928118b..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/1/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); @@ -66,8 +74,8 @@ public void setValueReferencePairs(List valueReferencePairs) } @Override - public String toString() { - return "DefaultValueList{" + "valueReferencePairs=" + valueReferencePairs + '}'; + 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 11ec9c95a..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/1/ValueReferencePair/value") + @IRI("https://admin-shell.io/aas/3/2/ValueReferencePair/value") protected String value; - @IRI("https://admin-shell.io/aas/3/1/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,11 +92,6 @@ public void setValueId(Reference valueId) { this.valueId = valueId; } - @Override - public String toString() { - return "DefaultValueReferencePair{" + "value='" + value + '\'' + ", valueId=" + 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)