public class SubmodelClient extends Object
| Modifier and Type | Field and Description |
|---|---|
private de.iip_ecosphere.platform.support.aas.Submodel |
submodel |
| Modifier | Constructor and Description |
|---|---|
protected |
SubmodelClient(de.iip_ecosphere.platform.support.aas.Submodel submodel)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
checkNotNull(T obj)
Checks for that
result is not null. |
static String |
checkString(Object obj)
Checks for that
obj is a non-empty string. |
protected de.iip_ecosphere.platform.support.aas.Operation |
getOperation(String idShort)
Returns the operation for the given
idShort defined on submodel. |
static de.iip_ecosphere.platform.support.aas.Operation |
getOperation(de.iip_ecosphere.platform.support.aas.Submodel submodel,
String idShort)
Returns the operation for the given
idShort defined on submodel. |
protected de.iip_ecosphere.platform.support.aas.Property |
getProperty(String idShort)
Returns the property for the given
idShort defined on submodel. |
static de.iip_ecosphere.platform.support.aas.Property |
getProperty(de.iip_ecosphere.platform.support.aas.Submodel submodel,
String idShort)
Returns the property for the given
idShort defined on submodel. |
protected String |
getPropertyStringValue(String name,
String dflt)
Returns the value of the property
name from submodel as String. |
de.iip_ecosphere.platform.support.aas.Submodel |
getSubmodel()
Returns the submodel.
|
protected SubmodelClient(de.iip_ecosphere.platform.support.aas.Submodel submodel)
submodel - defines the submodel for querying/executionpublic de.iip_ecosphere.platform.support.aas.Submodel getSubmodel()
protected de.iip_ecosphere.platform.support.aas.Operation getOperation(String idShort) throws ExecutionException
idShort defined on submodel.idShort - the short idExecutionException - if the operation was not foundgetOperation(Submodel, String)protected de.iip_ecosphere.platform.support.aas.Property getProperty(String idShort) throws ExecutionException
idShort defined on submodel.idShort - the short idExecutionException - if the property was not foundgetProperty(Submodel, String)public static de.iip_ecosphere.platform.support.aas.Operation getOperation(de.iip_ecosphere.platform.support.aas.Submodel submodel,
String idShort)
throws ExecutionException
idShort defined on submodel.submodel - the submodel to queryidShort - the short idExecutionException - if the operation was not foundpublic static de.iip_ecosphere.platform.support.aas.Property getProperty(de.iip_ecosphere.platform.support.aas.Submodel submodel,
String idShort)
throws ExecutionException
idShort defined on submodel.submodel - the submodel to queryidShort - the short idExecutionException - if the property was not foundprotected String getPropertyStringValue(String name, String dflt)
name from submodel as String.name - the namedflt - the default value to be used if reading the value failspublic static String checkString(Object obj)
obj is a non-empty string.obj - the object representing the stringIllegalArgumentException - if there is no valid stringpublic static <T> T checkNotNull(T obj)
result is not null.T - the type of objectobj - the object to checkobjIllegalArgumentException - if obj is nullCopyright © 2021. All rights reserved.