Search in sources :

Example 1 with Node

use of org.eclipse.milo.opcua.sdk.core.nodes.Node in project milo by eclipse.

the class AttributeReader method getEncodingId.

@Nullable
private static NodeId getEncodingId(AttributeContext context, UaServerNode node, QualifiedName encodingName) {
    // TODO avoid dynamic lookup by registering codecs with their associated DataType and Encoding name
    NodeId dataTypeId;
    if (node instanceof VariableNode) {
        dataTypeId = ((VariableNode) node).getDataType();
    } else if (node instanceof VariableTypeNode) {
        dataTypeId = ((VariableTypeNode) node).getDataType();
    } else {
        return null;
    }
    AddressSpaceManager addressSpaceManager = context.getServer().getAddressSpaceManager();
    UaNode dataTypeNode = addressSpaceManager.getManagedNode(dataTypeId).orElse(null);
    if (dataTypeNode != null) {
        return dataTypeNode.getReferences().stream().filter(r -> r.isForward() && Identifiers.HasEncoding.equals(r.getReferenceTypeId())).flatMap(r -> opt2stream(addressSpaceManager.getManagedNode(r.getTargetNodeId()))).filter(n -> encodingName.equals(n.getBrowseName())).map(Node::getNodeId).findFirst().orElse(null);
    } else {
        return null;
    }
}
Also used : DataTypeEncoding(org.eclipse.milo.opcua.stack.core.types.DataTypeEncoding) OpcUaDefaultBinaryEncoding(org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultBinaryEncoding) VariableNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) VariableTypeNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableTypeNode) ExtensionObject(org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject) AccessLevel(org.eclipse.milo.opcua.sdk.core.AccessLevel) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) AttributeUtil.getAccessLevels(org.eclipse.milo.opcua.sdk.server.util.AttributeUtil.getAccessLevels) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) OpcUaDefaultXmlEncoding(org.eclipse.milo.opcua.stack.core.types.OpcUaDefaultXmlEncoding) StatusCodes(org.eclipse.milo.opcua.stack.core.StatusCodes) TimestampsToReturn(org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) ArrayUtil(org.eclipse.milo.opcua.stack.core.util.ArrayUtil) Set(java.util.Set) NumericRange(org.eclipse.milo.opcua.sdk.core.NumericRange) UaNode(org.eclipse.milo.opcua.sdk.server.nodes.UaNode) OpcUaServer(org.eclipse.milo.opcua.sdk.server.OpcUaServer) Nullable(org.jetbrains.annotations.Nullable) AttributeUtil.getUserAccessLevels(org.eclipse.milo.opcua.sdk.server.util.AttributeUtil.getUserAccessLevels) AddressSpaceManager(org.eclipse.milo.opcua.sdk.server.api.AddressSpaceManager) AttributeContext(org.eclipse.milo.opcua.sdk.server.nodes.AttributeContext) Variant(org.eclipse.milo.opcua.stack.core.types.builtin.Variant) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) UaException(org.eclipse.milo.opcua.stack.core.UaException) Optional(java.util.Optional) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node) UaServerNode(org.eclipse.milo.opcua.sdk.server.nodes.UaServerNode) StreamUtil.opt2stream(org.eclipse.milo.opcua.sdk.core.util.StreamUtil.opt2stream) ArrayUtil.transformArray(org.eclipse.milo.opcua.stack.core.util.ArrayUtil.transformArray) Identifiers(org.eclipse.milo.opcua.stack.core.Identifiers) VariableNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableNode) VariableNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableNode) VariableTypeNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableTypeNode) UaNode(org.eclipse.milo.opcua.sdk.server.nodes.UaNode) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node) UaServerNode(org.eclipse.milo.opcua.sdk.server.nodes.UaServerNode) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) UaNode(org.eclipse.milo.opcua.sdk.server.nodes.UaNode) VariableTypeNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableTypeNode) AddressSpaceManager(org.eclipse.milo.opcua.sdk.server.api.AddressSpaceManager) Nullable(org.jetbrains.annotations.Nullable)

Example 2 with Node

use of org.eclipse.milo.opcua.sdk.core.nodes.Node in project milo by eclipse.

the class UaObjectNode method findMethodDeclarationId.

/**
 * Find the NodeId of the MethodNode on the type definition with the same name as {@code methodName}.
 *
 * @param methodName the name of the MethodNode to search for.
 * @return the NodeId of the MethodNode on the type definition with the same name as {@code methodName}. Will be
 * {@link NodeId#NULL_VALUE} if not found.
 */
private NodeId findMethodDeclarationId(NodeId typeDefinitionId, QualifiedName methodName) {
    AddressSpaceManager asm = getNodeContext().getServer().getAddressSpaceManager();
    NamespaceTable namespaceTable = getNodeContext().getServer().getNamespaceTable();
    NodeId nodeId = asm.getManagedReferences(typeDefinitionId).stream().filter(HAS_COMPONENT_PREDICATE.or(HAS_ORDERED_COMPONENT_PREDICATE)).flatMap(r -> opt2stream(getManagedNode(r.getTargetNodeId()))).filter(n -> (n instanceof UaMethodNode) && Objects.equals(n.getBrowseName(), methodName)).findFirst().map(Node::getNodeId).orElse(NodeId.NULL_VALUE);
    if (nodeId.isNull()) {
        NodeId parentTypeId = asm.getManagedReferences(typeDefinitionId).stream().filter(Reference.SUBTYPE_OF).flatMap(r -> opt2stream(r.getTargetNodeId().toNodeId(namespaceTable))).findFirst().orElse(null);
        if (parentTypeId != null) {
            return findMethodDeclarationId(parentTypeId, methodName);
        } else {
            return nodeId;
        }
    } else {
        return nodeId;
    }
}
Also used : HAS_EVENT_SOURCE_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_EVENT_SOURCE_PREDICATE) ORGANIZES_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.ORGANIZES_PREDICATE) ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) NodeManager(org.eclipse.milo.opcua.sdk.server.api.NodeManager) AttributeFilterChain(org.eclipse.milo.opcua.sdk.server.nodes.filters.AttributeFilterChain) ByteString(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString) ObjectNodeProperties(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNodeProperties) Function(java.util.function.Function) Supplier(java.util.function.Supplier) ArrayList(java.util.ArrayList) NamespaceTable(org.eclipse.milo.opcua.stack.core.NamespaceTable) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) AttributeFilter(org.eclipse.milo.opcua.sdk.server.nodes.filters.AttributeFilter) HAS_NOTIFIER_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_NOTIFIER_PREDICATE) HAS_TYPE_DEFINITION_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_TYPE_DEFINITION_PREDICATE) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) Reference(org.eclipse.milo.opcua.sdk.core.Reference) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) UByte(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte) HAS_COMPONENT_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_COMPONENT_PREDICATE) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText) Collectors(java.util.stream.Collectors) Unsigned.ubyte(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.ubyte) NamingRuleType(org.eclipse.milo.opcua.stack.core.types.enumerated.NamingRuleType) HAS_ORDERED_COMPONENT_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_ORDERED_COMPONENT_PREDICATE) Objects(java.util.Objects) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) AddressSpaceManager(org.eclipse.milo.opcua.sdk.server.api.AddressSpaceManager) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) HAS_PROPERTY_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_PROPERTY_PREDICATE) ObjectTypeNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectTypeNode) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node) StreamUtil.opt2stream(org.eclipse.milo.opcua.sdk.core.util.StreamUtil.opt2stream) Preconditions(com.google.common.base.Preconditions) Identifiers(org.eclipse.milo.opcua.stack.core.Identifiers) NamespaceTable(org.eclipse.milo.opcua.stack.core.NamespaceTable) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) AddressSpaceManager(org.eclipse.milo.opcua.sdk.server.api.AddressSpaceManager)

Example 3 with Node

use of org.eclipse.milo.opcua.sdk.core.nodes.Node in project milo by eclipse.

the class UaMethodNode method getModellingRuleNode.

public Optional<ObjectNode> getModellingRuleNode() {
    Node node = getReferences().stream().filter(HAS_MODELLING_RULE_PREDICATE).findFirst().flatMap(r -> getManagedNode(r.getTargetNodeId())).orElse(null);
    ObjectNode objectNode = (node instanceof ObjectNode) ? (ObjectNode) node : null;
    return Optional.ofNullable(objectNode);
}
Also used : ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) NodeManager(org.eclipse.milo.opcua.sdk.server.api.NodeManager) AttributeFilterChain(org.eclipse.milo.opcua.sdk.server.nodes.filters.AttributeFilterChain) MethodNode(org.eclipse.milo.opcua.sdk.core.nodes.MethodNode) Function(java.util.function.Function) Supplier(java.util.function.Supplier) ArrayList(java.util.ArrayList) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) Argument(org.eclipse.milo.opcua.stack.core.types.structured.Argument) AttributeFilter(org.eclipse.milo.opcua.sdk.server.nodes.filters.AttributeFilter) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) Reference(org.eclipse.milo.opcua.sdk.core.Reference) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText) ALWAYS_GENERATES_EVENT_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.ALWAYS_GENERATES_EVENT_PREDICATE) Collectors(java.util.stream.Collectors) MethodInvocationHandler(org.eclipse.milo.opcua.sdk.server.api.methods.MethodInvocationHandler) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) HAS_PROPERTY_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_PROPERTY_PREDICATE) Optional(java.util.Optional) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node) StreamUtil.opt2stream(org.eclipse.milo.opcua.sdk.core.util.StreamUtil.opt2stream) Preconditions(com.google.common.base.Preconditions) MethodNodeProperties(org.eclipse.milo.opcua.sdk.core.nodes.MethodNodeProperties) HAS_MODELLING_RULE_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_MODELLING_RULE_PREDICATE) ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) MethodNode(org.eclipse.milo.opcua.sdk.core.nodes.MethodNode) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node)

Example 4 with Node

use of org.eclipse.milo.opcua.sdk.core.nodes.Node in project milo by eclipse.

the class UaVariableNode method getModellingRuleNode.

public Optional<ObjectNode> getModellingRuleNode() {
    Node node = getReferences().stream().filter(HAS_MODELLING_RULE_PREDICATE).findFirst().flatMap(r -> getManagedNode(r.getTargetNodeId())).orElse(null);
    ObjectNode objectNode = (node instanceof ObjectNode) ? (ObjectNode) node : null;
    return Optional.ofNullable(objectNode);
}
Also used : ValueRanks(org.eclipse.milo.opcua.sdk.core.ValueRanks) ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) NodeManager(org.eclipse.milo.opcua.sdk.server.api.NodeManager) VariableNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableNode) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) AttributeFilterChain(org.eclipse.milo.opcua.sdk.server.nodes.filters.AttributeFilterChain) ByteString(org.eclipse.milo.opcua.stack.core.types.builtin.ByteString) VariableTypeNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableTypeNode) DateTime(org.eclipse.milo.opcua.stack.core.types.builtin.DateTime) Function(java.util.function.Function) Supplier(java.util.function.Supplier) ArrayList(java.util.ArrayList) AccessLevel(org.eclipse.milo.opcua.sdk.core.AccessLevel) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) AttributeFilter(org.eclipse.milo.opcua.sdk.server.nodes.filters.AttributeFilter) HAS_TYPE_DEFINITION_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_TYPE_DEFINITION_PREDICATE) VariableNodeProperties(org.eclipse.milo.opcua.sdk.core.nodes.VariableNodeProperties) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) Reference(org.eclipse.milo.opcua.sdk.core.Reference) StatusCodes(org.eclipse.milo.opcua.stack.core.StatusCodes) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) UByte(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UByte) HAS_COMPONENT_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_COMPONENT_PREDICATE) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) EUInformation(org.eclipse.milo.opcua.stack.core.types.structured.EUInformation) Set(java.util.Set) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText) Collectors(java.util.stream.Collectors) Objects(java.util.Objects) Nullable(org.jetbrains.annotations.Nullable) List(java.util.List) Variant(org.eclipse.milo.opcua.stack.core.types.builtin.Variant) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) HAS_PROPERTY_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_PROPERTY_PREDICATE) StatusCode(org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode) TimeZoneDataType(org.eclipse.milo.opcua.stack.core.types.structured.TimeZoneDataType) Optional(java.util.Optional) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node) StreamUtil.opt2stream(org.eclipse.milo.opcua.sdk.core.util.StreamUtil.opt2stream) Preconditions(com.google.common.base.Preconditions) HAS_MODELLING_RULE_PREDICATE(org.eclipse.milo.opcua.sdk.core.Reference.HAS_MODELLING_RULE_PREDICATE) Identifiers(org.eclipse.milo.opcua.stack.core.Identifiers) ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) ObjectNode(org.eclipse.milo.opcua.sdk.core.nodes.ObjectNode) VariableNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableNode) VariableTypeNode(org.eclipse.milo.opcua.sdk.core.nodes.VariableTypeNode) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node)

Example 5 with Node

use of org.eclipse.milo.opcua.sdk.core.nodes.Node in project milo by eclipse.

the class UaNode method getComponentAsync.

protected CompletableFuture<? extends UaNode> getComponentAsync(QualifiedName browseName, NodeClass nodeClass) {
    UInteger nodeClassMask = uint(nodeClass.getValue());
    UInteger resultMask = uint(BrowseResultMask.All.getValue());
    CompletableFuture<BrowseResult> future = client.browse(new BrowseDescription(getNodeId(), BrowseDirection.Forward, Identifiers.HasComponent, false, nodeClassMask, resultMask));
    return future.thenCompose(result -> {
        List<ReferenceDescription> references = l(result.getReferences());
        Optional<CompletableFuture<? extends UaNode>> node = references.stream().filter(r -> browseName.equals(r.getBrowseName())).flatMap(r -> {
            Optional<CompletableFuture<? extends UaNode>> opt = r.getNodeId().toNodeId(client.getNamespaceTable()).map(id -> client.getAddressSpace().getNodeAsync(id));
            return opt2stream(opt);
        }).findFirst();
        return node.orElse(failedUaFuture(StatusCodes.Bad_NotFound));
    });
}
Also used : QualifiedProperty(org.eclipse.milo.opcua.sdk.core.QualifiedProperty) Arrays(java.util.Arrays) Array(java.lang.reflect.Array) WriteValue(org.eclipse.milo.opcua.stack.core.types.structured.WriteValue) CompletableFuture.completedFuture(java.util.concurrent.CompletableFuture.completedFuture) ExtensionObject(org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject) AddressSpace(org.eclipse.milo.opcua.sdk.client.AddressSpace) WriteResponse(org.eclipse.milo.opcua.stack.core.types.structured.WriteResponse) QualifiedName(org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName) Unsigned.uint(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.Unsigned.uint) BrowseDescription(org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription) AttributeId(org.eclipse.milo.opcua.stack.core.AttributeId) TimestampsToReturn(org.eclipse.milo.opcua.stack.core.types.enumerated.TimestampsToReturn) NodeId(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId) BrowseResult(org.eclipse.milo.opcua.stack.core.types.structured.BrowseResult) ReferenceDescription(org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription) BrowseDirection(org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseDirection) BrowsePath(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePath) ExpandedNodeId(org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId) Set(java.util.Set) UaEnumeration(org.eclipse.milo.opcua.stack.core.serialization.UaEnumeration) Collectors(java.util.stream.Collectors) ReadValueId(org.eclipse.milo.opcua.stack.core.types.structured.ReadValueId) InvocationTargetException(java.lang.reflect.InvocationTargetException) List(java.util.List) Lists.newArrayList(com.google.common.collect.Lists.newArrayList) Variant(org.eclipse.milo.opcua.stack.core.types.builtin.Variant) NodeClass(org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass) StatusCode(org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode) Optional(java.util.Optional) Node(org.eclipse.milo.opcua.sdk.core.nodes.Node) StreamUtil.opt2stream(org.eclipse.milo.opcua.sdk.core.util.StreamUtil.opt2stream) Identifiers(org.eclipse.milo.opcua.stack.core.Identifiers) BrowseOptions(org.eclipse.milo.opcua.sdk.client.AddressSpace.BrowseOptions) UaStructure(org.eclipse.milo.opcua.stack.core.serialization.UaStructure) DataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue) OpcUaClient(org.eclipse.milo.opcua.sdk.client.OpcUaClient) CompletableFuture(java.util.concurrent.CompletableFuture) ArrayList(java.util.ArrayList) ConversionUtil.l(org.eclipse.milo.opcua.stack.core.util.ConversionUtil.l) UShort(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort) ReadResponse(org.eclipse.milo.opcua.stack.core.types.structured.ReadResponse) StatusCodes(org.eclipse.milo.opcua.stack.core.StatusCodes) FutureUtils.failedUaFuture(org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedUaFuture) Iterator(java.util.Iterator) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) LocalizedText(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText) RelativePathElement(org.eclipse.milo.opcua.stack.core.types.structured.RelativePathElement) PropertyTypeNode(org.eclipse.milo.opcua.sdk.client.model.nodes.variables.PropertyTypeNode) ExecutionException(java.util.concurrent.ExecutionException) Consumer(java.util.function.Consumer) BrowsePathResult(org.eclipse.milo.opcua.stack.core.types.structured.BrowsePathResult) RelativePath(org.eclipse.milo.opcua.stack.core.types.structured.RelativePath) BrowseResultMask(org.eclipse.milo.opcua.stack.core.types.enumerated.BrowseResultMask) FutureUtils.failedFuture(org.eclipse.milo.opcua.stack.core.util.FutureUtils.failedFuture) UaException(org.eclipse.milo.opcua.stack.core.UaException) CompletableFuture(java.util.concurrent.CompletableFuture) Optional(java.util.Optional) ReferenceDescription(org.eclipse.milo.opcua.stack.core.types.structured.ReferenceDescription) UInteger(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger) BrowseResult(org.eclipse.milo.opcua.stack.core.types.structured.BrowseResult) BrowseDescription(org.eclipse.milo.opcua.stack.core.types.structured.BrowseDescription)

Aggregations

Node (org.eclipse.milo.opcua.sdk.core.nodes.Node)9 AttributeId (org.eclipse.milo.opcua.stack.core.AttributeId)9 NodeId (org.eclipse.milo.opcua.stack.core.types.builtin.NodeId)9 QualifiedName (org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName)9 StreamUtil.opt2stream (org.eclipse.milo.opcua.sdk.core.util.StreamUtil.opt2stream)8 UInteger (org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger)8 NodeClass (org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass)8 ArrayList (java.util.ArrayList)7 List (java.util.List)7 Optional (java.util.Optional)7 Identifiers (org.eclipse.milo.opcua.stack.core.Identifiers)7 StatusCodes (org.eclipse.milo.opcua.stack.core.StatusCodes)6 DataValue (org.eclipse.milo.opcua.stack.core.types.builtin.DataValue)6 Variant (org.eclipse.milo.opcua.stack.core.types.builtin.Variant)6 Reference (org.eclipse.milo.opcua.sdk.core.Reference)5 VariableNode (org.eclipse.milo.opcua.sdk.core.nodes.VariableNode)5 UaException (org.eclipse.milo.opcua.stack.core.UaException)5 ExtensionObject (org.eclipse.milo.opcua.stack.core.types.builtin.ExtensionObject)5 StatusCode (org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode)5 Objects (java.util.Objects)4