/** * Get the {@link QualifiedName} of this property. * <p> * The {@code namespaceUri} must be present in {@code namespaceTable} or an empty {@link Optional} will be returned. * * @param namespaceTable the {@link NamespaceTable} containing the namespace URIs and their indices. * @return the {@link QualifiedName} of this property, or an empty {@link Optional} if the namespace URI is not * present in {@code namespaceTable}. */ public Optional<QualifiedName> getQualifiedName(NamespaceTable namespaceTable) { UShort namespaceIndex = namespaceTable.getIndex(namespaceUri); if (namespaceIndex != null) { return Optional.of(new QualifiedName(namespaceIndex, browseName)); } else { return Optional.empty(); } }
public CompletableFuture<? extends VariableNode> getVariableComponent(String namespaceUri, String name) { UShort namespaceIndex = client.getNamespaceTable().getIndex(namespaceUri); if (namespaceIndex != null) { return getVariableComponent(new QualifiedName(namespaceIndex, name)); } else { return failedUaFuture(StatusCodes.Bad_NotFound); } }
public CompletableFuture<? extends VariableNode> getVariableComponent(String namespaceUri, String name) { UShort namespaceIndex = client.getNamespaceTable().getIndex(namespaceUri); if (namespaceIndex != null) { return getVariableComponent(new QualifiedName(namespaceIndex, name)); } else { return failedUaFuture(StatusCodes.Bad_NotFound); } }
public CompletableFuture<? extends ObjectNode> getObjectComponent(String namespaceUri, String name) { UShort namespaceIndex = client.getNamespaceTable().getIndex(namespaceUri); if (namespaceIndex != null) { return getObjectComponent(new QualifiedName(namespaceIndex, name)); } else { return failedUaFuture(StatusCodes.Bad_NotFound); } }