use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASRangeTypeNodeBase method getValueType.
@Mandatory
@Override
public AASValueTypeDataType getValueType() {
UaVariable node = getValueTypeNode();
if (node == null) {
throw new RuntimeException("Mandatory node ValueType does not exist");
}
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 AASReferenceTypeNodeBase method getKeys.
@Mandatory
@Override
public AASKeyDataType[] getKeys() {
UaVariable node = getKeysNode();
if (node == null) {
throw new RuntimeException("Mandatory node Keys does not exist");
}
Object value = node.getValue().getValue().getValue();
return (AASKeyDataType[]) value;
}
use of com.prosysopc.ua.nodes.UaVariable in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeNodeBase method getSymbol.
@Optional
@Override
public String getSymbol() {
UaVariable node = getSymbolNode();
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 AASDataSpecificationIEC61360TypeNodeBase method getValueFormat.
@Optional
@Override
public String getValueFormat() {
UaVariable node = getValueFormatNode();
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 AASCustomConceptDescriptionTypeImplBase method setCategory.
@Mandatory
@Override
public void setCategory(String value) throws StatusException {
UaVariable node = getCategoryNode();
if (node == null) {
throw new RuntimeException("Setting Category failed, the Optional node does not exist)");
}
node.setValue(value);
}
Aggregations