use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASSubmodelElementTypeNodeBase method getCategory.
@Mandatory
@Override
public String getCategory() {
UaVariable node = getCategoryNode();
if (node == null) {
throw new RuntimeException("Mandatory node Category does not exist");
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASSubmodelTypeNodeBase method getModelingKind.
@Mandatory
@Override
public AASModelingKindDataType getModelingKind() {
UaVariable node = getModelingKindNode();
if (node == null) {
throw new RuntimeException("Mandatory node ModelingKind does not exist");
}
Variant value = node.getValue().getValue();
return (AASModelingKindDataType) value.asEnum(AASModelingKindDataType.class);
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class IAASReferableTypeNodeBase method getCategory.
@Mandatory
@Override
public String getCategory() {
UaVariable node = getCategoryNode();
if (node == null) {
throw new RuntimeException("Mandatory node Category does not exist");
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASAssetInformationTypeNodeBase method getAssetKind.
@Mandatory
@Override
public AASAssetKindDataType getAssetKind() {
UaVariable node = getAssetKindNode();
if (node == null) {
throw new RuntimeException("Mandatory node AssetKind does not exist");
}
Variant value = node.getValue().getValue();
return (AASAssetKindDataType) value.asEnum(AASAssetKindDataType.class);
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASBlobTypeNodeBase method getValue.
@Optional
@Override
public ByteString getValue() {
UaVariable node = getValueNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (ByteString) value;
}
Aggregations