Class BaSyxProperty.BaSyxPropertyBuilder
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.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 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 BaSyxPropertyinstanceprivate BaSyxSubmodelElementContainerBuilder<?>parentBuilderprivate org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.Propertypropertyprivate org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.valuetypedef.PropertyValueTypeDeftypeDef -
Constructor Summary
Constructors Constructor Description BaSyxPropertyBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort)Creates an instance. -
Method Summary
Modifier and Type Method Description de.iip_ecosphere.platform.support.aas.Property.PropertyBuilderbind(Supplier<Object> get, Consumer<Object> set)de.iip_ecosphere.platform.support.aas.Propertybuild()BaSyxSubmodelElementContainerBuilder<?>getParentBuilder()de.iip_ecosphere.platform.support.aas.Property.PropertyBuildersetType(de.iip_ecosphere.platform.support.aas.Type type)de.iip_ecosphere.platform.support.aas.Property.PropertyBuildersetValue(de.iip_ecosphere.platform.support.aas.Type type, Object value)de.iip_ecosphere.platform.support.aas.Property.PropertyBuildersetValue(Object value)
-
Field Details
-
parentBuilder
-
instance
-
property
private org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.Property property -
typeDef
private org.eclipse.basyx.submodel.metamodel.map.submodelelement.dataelement.property.valuetypedef.PropertyValueTypeDef typeDef
-
-
Constructor Details
-
BaSyxPropertyBuilder
BaSyxPropertyBuilder(BaSyxSubmodelElementContainerBuilder<?> parentBuilder, String idShort)Creates an instance. Prevents external creation.- Parameters:
parentBuilder- the parent builderidShort- the short name of the property- Throws:
IllegalArgumentException- ifidShortis null or empty
-
-
Method Details
-
getParentBuilder
- Specified by:
getParentBuilderin interfacede.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:
setTypein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
bind
public de.iip_ecosphere.platform.support.aas.Property.PropertyBuilder bind(Supplier<Object> get, Consumer<Object> set)- Specified by:
bindin interfacede.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, Object value)- Specified by:
setValuein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
setValue
- Specified by:
setValuein interfacede.iip_ecosphere.platform.support.aas.Property.PropertyBuilder
-
build
public de.iip_ecosphere.platform.support.aas.Property build()- Specified by:
buildin interfacede.iip_ecosphere.platform.support.Builder<de.iip_ecosphere.platform.support.aas.Property>
-