use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASFileTypeImplBase method getValue.
@Optional
@Override
public String getValue() {
UaVariable node = getValueNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASFileTypeImplBase method setValue.
@Optional
@Override
public void setValue(String 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