Search in sources :

Example 1 with PerformUpdateType

use of org.eclipse.milo.opcua.stack.core.types.enumerated.PerformUpdateType in project milo by eclipse.

the class AuditHistoryValueUpdateEventTypeNode method getPerformInsertReplace.

@Override
public PerformUpdateType getPerformInsertReplace() throws UaException {
    PropertyTypeNode node = getPerformInsertReplaceNode();
    Object value = node.getValue().getValue().getValue();
    if (value instanceof Integer) {
        return PerformUpdateType.from((Integer) value);
    } else if (value instanceof PerformUpdateType) {
        return (PerformUpdateType) value;
    } else {
        return null;
    }
}
Also used : UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) PerformUpdateType(org.eclipse.milo.opcua.stack.core.types.enumerated.PerformUpdateType) PropertyTypeNode(org.eclipse.milo.opcua.sdk.client.model.nodes.variables.PropertyTypeNode)

Example 2 with PerformUpdateType

use of org.eclipse.milo.opcua.stack.core.types.enumerated.PerformUpdateType in project milo by eclipse.

the class AuditHistoryEventUpdateEventTypeNode method getPerformInsertReplace.

@Override
public PerformUpdateType getPerformInsertReplace() throws UaException {
    PropertyTypeNode node = getPerformInsertReplaceNode();
    Object value = node.getValue().getValue().getValue();
    if (value instanceof Integer) {
        return PerformUpdateType.from((Integer) value);
    } else if (value instanceof PerformUpdateType) {
        return (PerformUpdateType) value;
    } else {
        return null;
    }
}
Also used : UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) ExtensionObject(org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject) PerformUpdateType(org.eclipse.milo.opcua.stack.core.types.enumerated.PerformUpdateType) PropertyTypeNode(org.eclipse.milo.opcua.sdk.client.model.nodes.variables.PropertyTypeNode)

Aggregations

PropertyTypeNode (org.eclipse.milo.opcua.sdk.client.model.nodes.variables.PropertyTypeNode)2 UInteger (org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger)2 PerformUpdateType (org.eclipse.milo.opcua.stack.core.types.enumerated.PerformUpdateType)2 ExtensionObject (org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject)1