use of org.eclipse.milo.opcua.stack.core.types.enumerated.RedundancySupport in project milo by eclipse.
the class ServerRedundancyTypeNode method getRedundancySupport.
@Override
public RedundancySupport getRedundancySupport() throws UaException {
PropertyTypeNode node = getRedundancySupportNode();
Object value = node.getValue().getValue().getValue();
if (value instanceof Integer) {
return RedundancySupport.from((Integer) value);
} else if (value instanceof RedundancySupport) {
return (RedundancySupport) value;
} else {
return null;
}
}
Aggregations