Im browsing with Milo OPCUA Client the Nodes:
//get my baseNodes
List<ReferenceDescription> references = toList(browseResult.getReferences());
for (ReferenceDescription rd : references) {
//check all nodes under Basenodes
rd.getNodeId().local().ifPresent(nodeId -> browseNode(indent + " ", client, nodeId));
if ((rd.getNodeClass().getValue() == 2)){
referencesChilds.add(rd);
}
}
I would like hier to check this Variable, if it ist an Array, then add to my referencesChilds List.
if ((rd.getNodeClass().getValue() == 2)){
referencesChilds.add(rd);
}
How can i do it, any Idea, the ReferenceDescription Object have no Method to check the Datatype.