Class BaSyxProperty.BaSyxPropertyBuilder

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder, de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Property>
    Enclosing class:
    BaSyxProperty

    public static class BaSyxProperty.BaSyxPropertyBuilder
    extends java.lang.Object
    implements de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
    Builder for BaSyxProperty.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private BaSyxProperty instance  
      private BaSyxSubmodelElementContainerBuilder<?> parentBuilder  
      private org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.Property property  
      private org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.valuetype.ValueType typeDef  
      • Fields inherited from interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder

        READ_ONLY, WRITE_ONLY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bind​(java.util.function.Supplier<java.lang.Object> get, java.util.function.Consumer<java.lang.Object> set)  
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bindLazy​(java.util.function.Supplier<java.lang.Object> get, java.util.function.Consumer<java.lang.Object> set)  
      de.iip_ecosphere.platform.support.aas.Property build()  
      BaSyxSubmodelElementContainerBuilder<?> getParentBuilder()  
      java.lang.Object getValue()  
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setDescription​(de.iip_ecosphere.platform.support.aas.LangString... description)  
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setSemanticId​(java.lang.String refValue)  
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setType​(de.iip_ecosphere.platform.support.aas.Type type)  
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setValue​(de.iip_ecosphere.platform.support.aas.Type type, java.lang.Object value)  
      de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setValue​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • property

        private org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.Property property
      • typeDef

        private org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.valuetype.ValueType typeDef
    • Constructor Detail

      • BaSyxPropertyBuilder

        BaSyxPropertyBuilder​(BaSyxSubmodelElementContainerBuilder<?> parentBuilder,
                             java.lang.String idShort)
        Creates an instance. Prevents external creation.
        Parameters:
        parentBuilder - the parent builder
        idShort - the short name of the property
        Throws:
        java.lang.IllegalArgumentException - if idShort is null or empty
    • Method Detail

      • getParentBuilder

        public BaSyxSubmodelElementContainerBuilder<?> getParentBuilder()
        Specified by:
        getParentBuilder in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • setType

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setType​(de.iip_ecosphere.platform.support.aas.Type type)
        Specified by:
        setType in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • bind

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bind​(java.util.function.Supplier<java.lang.Object> get,
                                                                                   java.util.function.Consumer<java.lang.Object> set)
        Specified by:
        bind in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • bindLazy

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bindLazy​(java.util.function.Supplier<java.lang.Object> get,
                                                                                       java.util.function.Consumer<java.lang.Object> set)
        Specified by:
        bindLazy in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • setValue

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setValue​(de.iip_ecosphere.platform.support.aas.Type type,
                                                                                       java.lang.Object value)
        Specified by:
        setValue in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • setDescription

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setDescription​(de.iip_ecosphere.platform.support.aas.LangString... description)
        Specified by:
        setDescription in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • setValue

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setValue​(java.lang.Object value)
        Specified by:
        setValue in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • setSemanticId

        public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder setSemanticId​(java.lang.String refValue)
        Specified by:
        setSemanticId in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
      • build

        public de.iip_ecosphere.platform.support.aas.Property build()
        Specified by:
        build in interface de.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Property>
      • getValue

        public java.lang.Object getValue()
                                  throws java.util.concurrent.ExecutionException
        Specified by:
        getValue in interface de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
        Throws:
        java.util.concurrent.ExecutionException