public abstract class UaNode extends Object implements UaServerNode
| Modifier | Constructor and Description |
|---|---|
protected |
UaNode(UaNodeContext context,
NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName) |
protected |
UaNode(UaNodeContext context,
NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAttribute, readAttribute, readAttribute, writeAttribute, writeAttributeprotected UaNode(UaNodeContext context, NodeId nodeId, NodeClass nodeClass, QualifiedName browseName, LocalizedText displayName)
protected UaNode(UaNodeContext context, NodeId nodeId, NodeClass nodeClass, QualifiedName browseName, LocalizedText displayName, LocalizedText description, UInteger writeMask, UInteger userWriteMask)
public NodeClass getNodeClass()
getNodeClass in interface Nodepublic QualifiedName getBrowseName()
getBrowseName in interface Nodepublic LocalizedText getDisplayName()
getDisplayName in interface Nodepublic LocalizedText getDescription()
getDescription in interface Nodepublic UInteger getWriteMask()
getWriteMask in interface Nodepublic UInteger getUserWriteMask()
getUserWriteMask in interface Nodepublic void setNodeClass(NodeClass nodeClass)
setNodeClass in interface Nodepublic void setBrowseName(QualifiedName browseName)
setBrowseName in interface Nodepublic void setDisplayName(LocalizedText displayName)
setDisplayName in interface Nodepublic void setDescription(LocalizedText description)
setDescription in interface Nodepublic void setWriteMask(UInteger writeMask)
setWriteMask in interface Nodepublic void setUserWriteMask(UInteger userWriteMask)
setUserWriteMask in interface Nodepublic Object getAttribute(AttributeId attributeId)
attributeId, bypassing the AttributeFilterChain.attributeId - the AttributeId to get the value for.attributeId.public void setAttribute(AttributeId attributeId, Object value)
attributeId, bypassing the AttributeFilterChain.
Setting an attribute value invokes fireAttributeChanged(AttributeId, Object), notifying any registered
AttributeObservers of the change.
attributeId - the AttributeId to set the value for.value - the value to set.public final void delete()
public final UaNodeContext getNodeContext()
getNodeContext in interface UaServerNodeUaNodeContext for this UaServerNode.public final NodeManager<UaNode> getNodeManager()
protected Optional<UaNode> getManagedNode(ExpandedNodeId nodeId)
public com.google.common.collect.ImmutableList<Reference> getReferences()
getReferences in interface UaServerNodeReferences.public void addReference(Reference reference)
reference and its inverse.addReference in interface UaServerNodereference - the Reference to add.public void removeReference(Reference reference)
reference and its inverse.removeReference in interface UaServerNodereference - the Reference to remove.public <T> Optional<T> getProperty(QualifiedProperty<T> property)
public Optional<Object> getProperty(QualifiedName browseName)
public <T> void setProperty(QualifiedProperty<T> property, T value)
public Optional<VariableNode> getPropertyNode(QualifiedProperty<?> property)
public Optional<VariableNode> getPropertyNode(String browseName)
public Optional<VariableNode> getPropertyNode(QualifiedName browseName)
public Optional<UaNode> findNode(QualifiedName browseName)
UaNode with the specified browseName referenced by this node.browseName - the Browse Name of the target node.public Optional<UaNode> findNode(QualifiedName browseName, Predicate<Reference> references)
UaNode with the specified browseName referenced by this node.browseName - the Browse Name of the target node.references - a Predicate used to include/exclude references to follow.public Optional<UaNode> findNode(QualifiedName browseName, Predicate<UaNode> nodePredicate, Predicate<Reference> referencePredicate)
UaNode with the specified browseName referenced by this node.public Optional<UaNode> findNode(String namespaceUri, String browseName, Predicate<UaNode> nodePredicate, Predicate<Reference> referencePredicate)
protected Optional<ObjectNode> getObjectComponent(String namespaceUri, String name)
protected Optional<ObjectNode> getObjectComponent(String browseName)
protected Optional<ObjectNode> getObjectComponent(QualifiedName browseName)
protected Optional<VariableNode> getVariableComponent(String namespaceUri, String name)
protected Optional<VariableNode> getVariableComponent(String browseName)
protected Optional<VariableNode> getVariableComponent(QualifiedName browseName)
public void addAttributeObserver(AttributeObserver observer)
public void removeAttributeObserver(AttributeObserver observer)
public void fireAttributeChanged(AttributeId attributeId, Object attributeValue)
public AttributeFilterChain getFilterChain()
AttributeFilterChain for this Node.AttributeFilterChain for this Node.public void setAttributeDelegate(AttributeDelegate attributeDelegate)
AttributeDelegate for this node.attributeDelegate - the AttributeDelegate.@Nullable public @Nullable AttributeDelegate getAttributeDelegate()
AttributeDelegate for this node.AttributeDelegate for this node.public DataValue getAttribute(AttributeContext context, AttributeId attributeId)
UaServerNodeAttributeContext into account and respecting any
AttributeDelegate this node may have.getAttribute in interface UaServerNodecontext - the AttributeContext to get the attribute in.attributeId - the AttributeId to get.DataValue containing the attribute value or a StatusCode describing any failure.public void setAttribute(AttributeContext context, AttributeId attributeId, DataValue value) throws UaException
UaServerNodeAttributeContext into account and respecting any
AttributeDelegate this node may have.setAttribute in interface UaServerNodecontext - the AttributeContext to set the attribute in.attributeId - the AttributeId to set.value - the new DataValue to set for the attribute.UaException - if setting the attribute failed for any reason.Copyright © 2021. All rights reserved.