public abstract class UaNode extends Object implements ServerNode
| Modifier | Constructor and Description |
|---|---|
protected |
UaNode(ServerNodeMap nodeMap,
NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName) |
protected |
UaNode(ServerNodeMap nodeMap,
NodeId nodeId,
NodeClass nodeClass,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeObserver(AttributeObserver observer) |
void |
addProperty(UaVariableNode node) |
void |
addReference(Reference reference)
Add a
Reference to this node. |
void |
addReferences(Collection<Reference> c)
Add
References to this node. |
protected void |
deallocate() |
protected void |
fireAttributeChanged(AttributeId attributeId,
Object attributeValue) |
DataValue |
getAttribute(AttributeContext context,
AttributeId attributeId)
Get an attribute of this node, taking the
AttributeContext into account and respecting any
AttributeDelegate this node may have. |
QualifiedName |
getBrowseName()
See OPC-UA Part 3, section 5.2.4.
|
LocalizedText |
getDescription()
See OPC-UA Part 3, section 5.2.6.
|
LocalizedText |
getDisplayName()
See OPC-UA Part 3, section 5.2.5.
|
protected Optional<ServerNode> |
getNode(ExpandedNodeId nodeId) |
protected Optional<ServerNode> |
getNode(NodeId nodeId) |
NodeClass |
getNodeClass()
See OPC-UA Part 3, section 5.2.3.
|
NodeId |
getNodeId()
See OPC-UA Part 3, section 5.2.2.
|
ServerNodeMap |
getNodeMap() |
protected Optional<ObjectNode> |
getObjectComponent(QualifiedName browseName) |
protected Optional<ObjectNode> |
getObjectComponent(String browseName) |
protected Optional<ObjectNode> |
getObjectComponent(String namespaceUri,
String name) |
<T> Optional<T> |
getProperty(Property<T> property) |
<T> Optional<T> |
getProperty(QualifiedName browseName) |
<T> Optional<T> |
getProperty(QualifiedProperty<T> property) |
<T> Optional<T> |
getProperty(String browseName) |
Optional<VariableNode> |
getPropertyNode(Property<?> property) |
Optional<VariableNode> |
getPropertyNode(QualifiedName browseName) |
Optional<VariableNode> |
getPropertyNode(QualifiedProperty<?> property) |
Optional<VariableNode> |
getPropertyNode(String browseName) |
com.google.common.collect.ImmutableList<Reference> |
getReferences() |
UInteger |
getUserWriteMask()
See OPC-UA Part 3, section 5.2.8.
|
protected Optional<VariableNode> |
getVariableComponent(QualifiedName browseName) |
protected Optional<VariableNode> |
getVariableComponent(String browseName) |
protected Optional<VariableNode> |
getVariableComponent(String namespaceUri,
String name) |
UInteger |
getWriteMask()
See OPC-UA Part 3, section 5.2.7.
|
void |
removeAttributeObserver(AttributeObserver observer) |
void |
removeProperty(UaVariableNode node) |
void |
removeReference(Reference reference)
Remove a
Reference from this node. |
void |
removeReferences(Collection<Reference> c)
Remove
References from this node. |
void |
setAttribute(AttributeContext context,
AttributeId attributeId,
DataValue value)
Set an attribute of this node, taking the
AttributeContext into account and respecting any
AttributeDelegate this node may have. |
void |
setAttributeDelegate(AttributeDelegate attributeDelegate)
Set the
AttributeDelegate for this node. |
void |
setBrowseName(QualifiedName browseName)
Set the BrowseName attribute of this Node.
|
void |
setDescription(LocalizedText description)
Set the Description attribute of this Node.
|
void |
setDisplayName(LocalizedText displayName)
Set the DisplayName attribute of this Node.
|
void |
setNodeClass(NodeClass nodeClass)
Set the NodeClass attribute of this Node.
|
void |
setNodeId(NodeId nodeId)
Set the NodeId attribute of this Node.
|
<T> void |
setProperty(Property<T> property,
T value) |
<T> void |
setProperty(QualifiedProperty<T> property,
T value) |
void |
setUserWriteMask(UInteger userWriteMask)
Set the UserWriteMask attribute of this Node.
|
void |
setWriteMask(UInteger writeMask)
Set the WriteMask attribute of this Node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAttribute, readAttribute, readAttribute, writeAttribute, writeAttributeprotected UaNode(ServerNodeMap nodeMap, NodeId nodeId, NodeClass nodeClass, QualifiedName browseName, LocalizedText displayName)
protected UaNode(ServerNodeMap nodeMap, NodeId nodeId, NodeClass nodeClass, QualifiedName browseName, LocalizedText displayName, LocalizedText description, UInteger writeMask, UInteger userWriteMask)
public NodeId getNodeId()
Nodepublic NodeClass getNodeClass()
NodegetNodeClass in interface NodeNodeClass) of this node.public QualifiedName getBrowseName()
NodegetBrowseName in interface NodeQualifiedName) of this node.public LocalizedText getDisplayName()
NodegetDisplayName in interface NodeQualifiedName) of this node.public LocalizedText getDescription()
NodegetDescription in interface NodeLocalizedText).public UInteger getWriteMask()
NodegetWriteMask in interface NodeUInteger).public UInteger getUserWriteMask()
NodegetUserWriteMask in interface NodeUInteger).public void setNodeId(NodeId nodeId)
Nodepublic void setNodeClass(NodeClass nodeClass)
NodesetNodeClass in interface NodenodeClass - the NodeClass to set.public void setBrowseName(QualifiedName browseName)
NodesetBrowseName in interface NodebrowseName - the BrowseName to set.public void setDisplayName(LocalizedText displayName)
NodesetDisplayName in interface NodedisplayName - the DisplayName to set.public void setDescription(LocalizedText description)
NodesetDescription in interface Nodedescription - the Description to set.public void setWriteMask(UInteger writeMask)
NodesetWriteMask in interface NodewriteMask - the WriteMask to set.public void setUserWriteMask(UInteger userWriteMask)
NodesetUserWriteMask in interface NodeuserWriteMask - the UserWriteMask to set.public ServerNodeMap getNodeMap()
protected Optional<ServerNode> getNode(NodeId nodeId)
protected Optional<ServerNode> getNode(ExpandedNodeId nodeId)
public com.google.common.collect.ImmutableList<Reference> getReferences()
getReferences in interface ServerNodeReferences.public void addReference(Reference reference)
ServerNodeReference to this node.addReference in interface ServerNodereference - the Reference to add.public void addReferences(Collection<Reference> c)
ServerNodeReferences to this node.addReferences in interface ServerNodec - the References to add.public void removeReference(Reference reference)
ServerNodeReference from this node.removeReference in interface ServerNodereference - to remove.public void removeReferences(Collection<Reference> c)
ServerNodeReferences from this node.removeReferences in interface ServerNodec - the References to remove.protected void deallocate()
public <T> Optional<T> getProperty(QualifiedProperty<T> property)
public <T> Optional<T> getProperty(QualifiedName browseName)
public <T> void setProperty(Property<T> property, T value)
public <T> void setProperty(QualifiedProperty<T> property, T value)
public Optional<VariableNode> getPropertyNode(Property<?> property)
public Optional<VariableNode> getPropertyNode(QualifiedProperty<?> property)
public Optional<VariableNode> getPropertyNode(String browseName)
public Optional<VariableNode> getPropertyNode(QualifiedName browseName)
public void addProperty(UaVariableNode node)
public void removeProperty(UaVariableNode node)
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)
protected void fireAttributeChanged(AttributeId attributeId, Object attributeValue)
public void setAttributeDelegate(@Nonnull AttributeDelegate attributeDelegate)
AttributeDelegate for this node.
Shall be non-null. To revert from a custom delegate to default behavior set AttributeDelegate.DEFAULT.
attributeDelegate - the AttributeDelegate.public DataValue getAttribute(AttributeContext context, AttributeId attributeId)
ServerNodeAttributeContext into account and respecting any
AttributeDelegate this node may have.getAttribute in interface ServerNodecontext - 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
ServerNodeAttributeContext into account and respecting any
AttributeDelegate this node may have.setAttribute in interface ServerNodecontext - 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 © 2018. All rights reserved.