use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASReferableTypeNodeBase 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 AASAdministrativeInformationTypeImplBase method getVersion.
@Optional
@Override
public String getVersion() {
UaVariable node = getVersionNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASAssetInformationTypeImplBase method getAssetKind.
@Mandatory
@Override
public AASAssetKindDataType getAssetKind() {
UaVariable node = getAssetKindNode();
if (node == null) {
return null;
}
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 AASBlobTypeImplBase method getValue.
@Optional
@Override
public ByteString getValue() {
UaVariable node = getValueNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (ByteString) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASBlobTypeImplBase method setValue.
@Optional
@Override
public void setValue(ByteString value) throws StatusException {
UaVariable node = getValueNode();
if (node == null) {
throw new RuntimeException("Setting Value failed, the Optional node does not exist)");
}
node.setValue(value);
}
Aggregations