use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASQualifierTypeImplBase method getValue.
@Optional
@Override
public Object getValue() {
UaVariable node = getValueNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (Object) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASQualifierTypeImplBase method setType.
@Mandatory
@Override
public void setType(String value) throws StatusException {
UaVariable node = getTypeNode();
if (node == null) {
throw new RuntimeException("Setting Type failed, the Optional node does not exist)");
}
node.setValue(value);
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASQualifierTypeImplBase method getType.
@Mandatory
@Override
public String getType() {
UaVariable node = getTypeNode();
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 AASQualifierTypeImplBase method getValueType.
@Mandatory
@Override
public AASValueTypeDataType getValueType() {
UaVariable node = getValueTypeNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASValueTypeDataType) value.asEnum(AASValueTypeDataType.class);
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASRangeTypeImplBase method setValueType.
@Mandatory
@Override
public void setValueType(AASValueTypeDataType value) throws StatusException {
UaVariable node = getValueTypeNode();
if (node == null) {
throw new RuntimeException("Setting ValueType failed, the Optional node does not exist)");
}
node.setValue(value);
}
Aggregations