use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase method getDataType.
@Optional
@Override
public AASDataTypeIEC61360DataType getDataType() {
UaVariable node = getDataTypeNode();
if (node == null) {
return null;
}
Variant value = node.getValue().getValue();
return (AASDataTypeIEC61360DataType) value.asEnum(AASDataTypeIEC61360DataType.class);
}
use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase method setDataType.
@Optional
@Override
public void setDataType(AASDataTypeIEC61360DataType value) throws StatusException {
UaVariable node = getDataTypeNode();
if (node == null) {
throw new RuntimeException("Setting DataType failed, the Optional node does not exist)");
}
node.setValue(value);
}
use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase 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.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase method setValue.
@Optional
@Override
public void setValue(Object value) throws StatusException {
UaVariable node = getValueNode();
if (node == null) {
throw new RuntimeException("Setting Value failed, the Optional node does not exist)");
}
node.setValue(value);
}
use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase method getUnit.
@Optional
@Override
public String getUnit() {
UaVariable node = getUnitNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (String) value;
}
Aggregations