use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase method getDefinition.
@Optional
@Override
public LocalizedText[] getDefinition() {
UaVariable node = getDefinitionNode();
if (node == null) {
return null;
}
Object value = node.getValue().getValue().getValue();
return (LocalizedText[]) value;
}
use of com.prosysopc.ua.nodes.Optional in project FAAAST-Service by FraunhoferIOSB.
the class AASDataSpecificationIEC61360TypeImplBase method setSourceOfDefinition.
@Optional
@Override
public void setSourceOfDefinition(String value) throws StatusException {
UaVariable node = getSourceOfDefinitionNode();
if (node == null) {
throw new RuntimeException("Setting SourceOfDefinition 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 setUnit.
@Optional
@Override
public void setUnit(String value) throws StatusException {
UaVariable node = getUnitNode();
if (node == null) {
throw new RuntimeException("Setting Unit 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 setSymbol.
@Optional
@Override
public void setSymbol(String value) throws StatusException {
UaVariable node = getSymbolNode();
if (node == null) {
throw new RuntimeException("Setting Symbol 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 setValueFormat.
@Optional
@Override
public void setValueFormat(String value) throws StatusException {
UaVariable node = getValueFormatNode();
if (node == null) {
throw new RuntimeException("Setting ValueFormat failed, the Optional node does not exist)");
}
node.setValue(value);
}
Aggregations