OpcUaConverter { public static NodeId toNodeId(ExpandedNodeId node) { if (node == null || node.isNull() || !node.isLocal()) { return NodeId.NULL_VALUE; } return node.local().get(); } private  OpcUaConverter(); static NodeId toNodeId(ExpandedNodeId node); static String toString(Variant variant); static String toString(NodeId node); static String toString(ExpandedNodeId node); static Object toWritableDataTypeObject(NodeId node, String value); static ZonedDateTime toZonedDateTime(DateTime time); static String toString(LocalizedText value); static String toString(DateTime time); static String toString(ByteString bs); static String toRangeString(ByteString bs); static String toEUInformationString(ByteString bs); static String toString(double d); static String toString(QualifiedName qname); static String toString(XmlElement xml); static String toString(Object[] data); static String toString(byte[] data); static String toString(ExtensionObject ext); static String toString(StatusCode statusCode); static String toString(EnumSet<AccessLevel> al); static String valueRankToString(int rank); static ResourceBundle datatypes; }
@Test public void toNodeId() throws XMLStreamException { ExpandedNodeId eni = new ExpandedNodeId(0, 0, "test", 0); assertEquals(new NodeId(0, 0), OpcUaConverter.toNodeId(eni)); }