ExpandedNodeId { @Deprecated public Optional<NodeId> local(NamespaceTable namespaceTable) { return toNodeId(namespaceTable); } ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        UInteger identifier
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        UInteger identifier,
        UInteger serverIndex
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        String identifier
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        String identifier,
        UInteger serverIndex
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        ByteString identifier
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        ByteString identifier,
        UInteger serverIndex
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        UUID identifier
    );  ExpandedNodeId(
        UShort namespaceIndex,
        String namespaceUri,
        UUID identifier,
        UInteger serverIndex
    );  ExpandedNodeId(
        @Nonnull UShort namespaceIndex,
        @Nullable String namespaceUri,
        @Nullable Object identifier,
        @Nonnull UInteger serverIndex
    ); Object getIdentifier(); IdType getType(); UShort getNamespaceIndex(); @Nullable String getNamespaceUri(); UInteger getServerIndex(); boolean isAbsolute(); boolean isRelative(); boolean isLocal(); boolean isNull(); boolean isNotNull(); Optional<ExpandedNodeId> absolute(NamespaceTable namespaceTable); Optional<ExpandedNodeId> relative(NamespaceTable namespaceTable); ExpandedNodeId reindex(NamespaceTable namespaceTable, String namespaceUri); @Deprecated Optional<NodeId> local(NamespaceTable namespaceTable); @Deprecated NodeId localOrThrow(NamespaceTable namespaceTable); Optional<NodeId> toNodeId(NamespaceTable namespaceTable); NodeId toNodeIdOrThrow(NamespaceTable namespaceTable); @Override boolean equals(Object o); boolean equals(NodeId nodeId); boolean equals(NodeId nodeId, NamespaceTable namespaceTable); @Override int hashCode(); @Override String toString(); String toParseableString(); static ExpandedNodeId parse(String s); @Nullable static ExpandedNodeId parseOrNull(@Nonnull String s); static Optional<ExpandedNodeId> parseSafe(@Nonnull String s); static Builder newBuilder(); static final ExpandedNodeId NULL_VALUE; }
@Test public void testLocal() { namespaceTable.addUri("uri:test"); ExpandedNodeId xni0 = new ExpandedNodeId(ushort(0), null, "test"); assertTrue(xni0.local(namespaceTable).isPresent()); ExpandedNodeId xni1 = new ExpandedNodeId(ushort(1), null, "test"); assertTrue(xni1.local(namespaceTable).isPresent()); ExpandedNodeId xni2 = new ExpandedNodeId(ushort(99), namespaceTable.getUri(0), "test"); assertTrue(xni2.local(namespaceTable).isPresent()); ExpandedNodeId xni3 = new ExpandedNodeId(ushort(99), namespaceTable.getUri(1), "test"); assertTrue(xni3.local(namespaceTable).isPresent()); ExpandedNodeId xni4 = new ExpandedNodeId(ushort(99), "uri:notpresent", "test"); assertFalse(xni4.local(namespaceTable).isPresent()); }