java.lang.Object
org.eclipse.milo.opcua.sdk.client.nodes.UaNode
org.eclipse.milo.opcua.sdk.client.nodes.UaViewNode
All Implemented Interfaces:
org.eclipse.milo.opcua.sdk.core.nodes.Node, org.eclipse.milo.opcua.sdk.core.nodes.ViewNode

public class UaViewNode extends UaNode implements org.eclipse.milo.opcua.sdk.core.nodes.ViewNode
  • Constructor Details

    • UaViewNode

      public UaViewNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, Boolean containsNoLoops, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier)
      Construct a UaViewNode using only attributes defined prior to OPC UA 1.04.
    • UaViewNode

      public UaViewNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, Boolean containsNoLoops, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier)
      Construct a UaViewNode using all attributes, including those defined by OPC UA 1.04.
  • Method Details

    • getContainsNoLoops

      public Boolean getContainsNoLoops()

      The returned attribute is the most recently seen value; it is not read live from the server.

      Specified by:
      getContainsNoLoops in interface org.eclipse.milo.opcua.sdk.core.nodes.ViewNode
      See Also:
    • getEventNotifier

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte getEventNotifier()

      The returned attribute is the most recently seen value; it is not read live from the server.

      Specified by:
      getEventNotifier in interface org.eclipse.milo.opcua.sdk.core.nodes.ViewNode
      See Also:
    • setContainsNoLoops

      public void setContainsNoLoops(Boolean containsNoLoops)

      The attribute is only updated locally; it is not written to the server.

      Specified by:
      setContainsNoLoops in interface org.eclipse.milo.opcua.sdk.core.nodes.ViewNode
      See Also:
    • setEventNotifier

      public void setEventNotifier(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier)

      The attribute is only updated locally; it is not written to the server.

      Specified by:
      setEventNotifier in interface org.eclipse.milo.opcua.sdk.core.nodes.ViewNode
      See Also:
    • readContainsNoLoops

      public Boolean readContainsNoLoops() throws org.eclipse.milo.opcua.stack.core.UaException
      Read the ContainsNoLoops attribute for this Node from the server and update the local attribute if the operation succeeds.
      Returns:
      the Boolean read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.s
    • readEventNotifier

      public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte readEventNotifier() throws org.eclipse.milo.opcua.stack.core.UaException
      Read the EventNotifier attribute for this Node from the server and update the local attribute if the operation succeeds.
      Returns:
      the UByte read from the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.s
    • writeContainsNoLoops

      public void writeContainsNoLoops(Boolean containsNoLoops) throws org.eclipse.milo.opcua.stack.core.UaException
      Write a new ContainsNoLoops attribute for this Node to the server and update the local attribute if the operation succeeds.
      Parameters:
      containsNoLoops - the Boolean to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • writeEventNotifier

      public void writeEventNotifier(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte eventNotifier) throws org.eclipse.milo.opcua.stack.core.UaException
      Write a new EventNotifier attribute for this Node to the server and update the local attribute if the operation succeeds.
      Parameters:
      eventNotifier - the UByte to write to the server.
      Throws:
      org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.
    • readNodeVersionAsync

      public CompletableFuture<? extends String> readNodeVersionAsync()
      Get the value of the ViewNodeProperties.NodeVersion Property, if it exists.
      Returns:
      the value of the NodeVersion Property, if it exists.
      See Also:
      • ViewNodeProperties
    • readViewVersionAsync

      public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger> readViewVersionAsync()
      Get the value of the ViewNodeProperties.ViewVersion Property, if it exists.
      Returns:
      the value of the ViewVersion Property, if it exists.
      See Also:
      • ViewNodeProperties
    • writeNodeVersionAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNodeVersionAsync(String nodeVersion)
      Set the value of the ViewNodeProperties.NodeVersion Property, if it exists.
      Parameters:
      nodeVersion - the value to set.
      Returns:
      a CompletableFuture that completes with the StatusCode of the write operation.
      See Also:
      • ViewNodeProperties
    • writeViewVersionAsync

      public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeViewVersionAsync(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger viewVersion)
      Set the value of the ViewNodeProperties.ViewVersion Property, if it exists.
      Parameters:
      viewVersion - the value to set.
      Returns:
      a CompletableFuture that completes with the StatusCode of the write operation.
      See Also:
      • ViewNodeProperties
    • getAttributeValue

      protected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue getAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId)
      Overrides:
      getAttributeValue in class UaNode
    • setAttributeValue

      protected void setAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId, org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
      Overrides:
      setAttributeValue in class UaNode