public class UaVariableNode extends UaNode implements VariableNode
| Modifier and Type | Class and Description |
|---|---|
static class |
UaVariableNode.UaVariableNodeBuilder |
| Constructor and Description |
|---|
UaVariableNode(UaNodeContext context,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
UaVariableNode(UaNodeContext context,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask) |
UaVariableNode(UaNodeContext context,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
DataValue value,
NodeId dataType,
Integer valueRank,
UInteger[] arrayDimensions,
UByte accessLevel,
UByte userAccessLevel,
Double minimumSamplingInterval,
boolean historizing) |
UaVariableNode(UaNodeContext context,
NodeId nodeId,
VariableTypeNode variableTypeNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(UaNode node)
Add a 'HasComponent' reference from this Object to
node and an inverse 'ComponentOf' reference from
node back to this Object. |
static UaVariableNode |
build(UaNodeContext context,
Function<UaVariableNode.UaVariableNodeBuilder,UaVariableNode> build)
Build a
UaVariableNode using the UaVariableNode.UaVariableNodeBuilder supplied to the
build function. |
static UaVariableNode.UaVariableNodeBuilder |
builder(UaNodeContext context)
Deprecated.
use
UaVariableNodeBuilder#UaVariableNodeBuilder(UaNodeContext) or
build(UaNodeContext, Function). |
UByte |
getAccessLevel() |
@Nullable Boolean |
getAllowNulls()
Get the value of the AllowNulls Property, if it exists.
|
UInteger[] |
getArrayDimensions() |
Object |
getAttribute(AttributeId attributeId)
Direct read access to the field for
attributeId, bypassing the AttributeFilterChain. |
List<Node> |
getComponentNodes() |
NodeId |
getDataType() |
@Nullable String |
getDataTypeVersion()
Get the value of the DataTypeVersion Property, if it exists.
|
@Nullable ByteString |
getDictionaryFragment()
Get the value of the DictionaryFragment Property, if it exists.
|
@Nullable EUInformation |
getEngineeringUnits()
Get the value of the EngineeringUnits Property, if it exists.
|
Boolean |
getHistorizing() |
@Nullable TimeZoneDataType |
getLocalTime()
Get the value of the LocalTime Property, if it exists.
|
@Nullable UInteger |
getMaxArrayLength()
Get the value of the MaxArrayLength Property, if it exists.
|
@Nullable UInteger |
getMaxStringLength()
Get the value of the MaxStringLength Property, if it exists.
|
Double |
getMinimumSamplingInterval() |
Optional<ObjectNode> |
getModellingRuleNode() |
@Nullable String |
getNodeVersion()
Get the value of the NodeVersion Property, if it exists.
|
List<Node> |
getPropertyNodes() |
VariableTypeNode |
getTypeDefinitionNode() |
UByte |
getUserAccessLevel() |
DataValue |
getValue() |
Integer |
getValueRank() |
void |
removeComponent(UaNode node)
Remove the 'HasComponent' reference from this Object to
node and the inverse 'ComponentOf' reference
from node back to this Object. |
void |
setAccessLevel(UByte accessLevel) |
void |
setAllowNulls(Boolean allowNulls)
Set the value of the AllowNulls Property.
|
void |
setArrayDimensions(UInteger[] arrayDimensions) |
void |
setAttribute(AttributeId attributeId,
Object value)
Direct write access to the field for
attributeId, bypassing the AttributeFilterChain. |
void |
setDataType(NodeId dataType) |
void |
setDataTypeVersion(String dataTypeVersion)
Set the value of the DataTypeVersion Property.
|
void |
setDictionaryFragment(ByteString dictionaryFragment)
Set the value of the DictionaryFragment Property.
|
void |
setEngineeringUnits(EUInformation engineeringUnits)
Set the value of the EngineeringUnits Property.
|
void |
setHistorizing(Boolean historizing) |
void |
setLocalTime(TimeZoneDataType localTime)
Set the value of the LocalTime Property.
|
void |
setMaxArrayLength(UInteger maxArrayLength)
Set the value of the MaxArrayLength Property.
|
void |
setMaxStringLength(UInteger maxStringLength)
Set the value of the MaxStringLength Property.
|
void |
setMinimumSamplingInterval(Double minimumSamplingInterval) |
void |
setNodeVersion(String nodeVersion)
Set the value of the NodeVersion Property.
|
void |
setUserAccessLevel(UByte userAccessLevel) |
void |
setValue(DataValue value) |
void |
setValueRank(Integer valueRank) |
addAttributeObserver, addReference, delete, findNode, findNode, findNode, findNode, fireAttributeChanged, getAttribute, getAttributeDelegate, getBrowseName, getDescription, getDisplayName, getFilterChain, getManagedNode, getManagedNode, getNodeClass, getNodeContext, getNodeId, getNodeManager, getObjectComponent, getObjectComponent, getObjectComponent, getProperty, getProperty, getPropertyNode, getPropertyNode, getPropertyNode, getReferences, getUserWriteMask, getVariableComponent, getVariableComponent, getVariableComponent, getWriteMask, removeAttributeObserver, removeReference, setAttribute, setAttributeDelegate, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setProperty, setUserWriteMask, setWriteMaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMaskreadAttribute, readAttribute, readAttribute, writeAttribute, writeAttributepublic UaVariableNode(UaNodeContext context, NodeId nodeId, VariableTypeNode variableTypeNode)
public UaVariableNode(UaNodeContext context, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
public UaVariableNode(UaNodeContext context, NodeId nodeId, QualifiedName browseName, LocalizedText displayName, LocalizedText description, UInteger writeMask, UInteger userWriteMask)
public UaVariableNode(UaNodeContext context, NodeId nodeId, QualifiedName browseName, LocalizedText displayName, LocalizedText description, UInteger writeMask, UInteger userWriteMask, DataValue value, NodeId dataType, Integer valueRank, UInteger[] arrayDimensions, UByte accessLevel, UByte userAccessLevel, Double minimumSamplingInterval, boolean historizing)
public DataValue getValue()
getValue in interface VariableNodepublic NodeId getDataType()
getDataType in interface VariableNodepublic Integer getValueRank()
getValueRank in interface VariableNodepublic UInteger[] getArrayDimensions()
getArrayDimensions in interface VariableNodepublic UByte getAccessLevel()
getAccessLevel in interface VariableNodepublic UByte getUserAccessLevel()
getUserAccessLevel in interface VariableNodepublic Double getMinimumSamplingInterval()
getMinimumSamplingInterval in interface VariableNodepublic Boolean getHistorizing()
getHistorizing in interface VariableNodepublic void setValue(DataValue value)
setValue in interface VariableNodepublic void setDataType(NodeId dataType)
setDataType in interface VariableNodepublic void setValueRank(Integer valueRank)
setValueRank in interface VariableNodepublic void setArrayDimensions(UInteger[] arrayDimensions)
setArrayDimensions in interface VariableNodepublic void setAccessLevel(UByte accessLevel)
setAccessLevel in interface VariableNodepublic void setUserAccessLevel(UByte userAccessLevel)
setUserAccessLevel in interface VariableNodepublic void setMinimumSamplingInterval(Double minimumSamplingInterval)
setMinimumSamplingInterval in interface VariableNodepublic void setHistorizing(Boolean historizing)
setHistorizing in interface VariableNodepublic Object getAttribute(AttributeId attributeId)
UaNodeattributeId, bypassing the AttributeFilterChain.getAttribute in class UaNodeattributeId - the AttributeId to get the value for.attributeId.public void setAttribute(AttributeId attributeId, Object value)
UaNodeattributeId, bypassing the AttributeFilterChain.
Setting an attribute value invokes UaNode.fireAttributeChanged(AttributeId, Object), notifying any registered
AttributeObservers of the change.
setAttribute in class UaNodeattributeId - the AttributeId to set the value for.value - the value to set.public Optional<ObjectNode> getModellingRuleNode()
public VariableTypeNode getTypeDefinitionNode()
public void addComponent(UaNode node)
node and an inverse 'ComponentOf' reference from
node back to this Object.node - the node to add as a component of this Object.public void removeComponent(UaNode node)
node and the inverse 'ComponentOf' reference
from node back to this Object.node - the node to remove as a component of this Object.@Nullable public @Nullable String getNodeVersion()
VariableNodeProperties.NodeVersion@Nullable public @Nullable TimeZoneDataType getLocalTime()
VariableNodeProperties.LocalTime@Nullable public @Nullable String getDataTypeVersion()
VariableNodeProperties.DataTypeVersion@Nullable public @Nullable ByteString getDictionaryFragment()
VariableNodeProperties.DictionaryFragment@Nullable public @Nullable Boolean getAllowNulls()
VariableNodeProperties.AllowNulls@Nullable public @Nullable UInteger getMaxStringLength()
VariableNodeProperties.MaxStringLength@Nullable public @Nullable UInteger getMaxArrayLength()
VariableNodeProperties.MaxArrayLength@Nullable public @Nullable EUInformation getEngineeringUnits()
VariableNodeProperties.EngineeringUnitspublic void setNodeVersion(String nodeVersion)
A PropertyNode will be created if it does not already exist.
nodeVersion - the value to set.VariableNodeProperties.NodeVersionpublic void setLocalTime(TimeZoneDataType localTime)
A PropertyNode will be created if it does not already exist.
localTime - the value to set.VariableNodeProperties.LocalTimepublic void setDataTypeVersion(String dataTypeVersion)
A PropertyNode will be created if it does not already exist.
dataTypeVersion - the value to set.VariableNodeProperties.DataTypeVersionpublic void setDictionaryFragment(ByteString dictionaryFragment)
A PropertyNode will be created if it does not already exist.
dictionaryFragment - the value to set.VariableNodeProperties.DictionaryFragmentpublic void setAllowNulls(Boolean allowNulls)
A PropertyNode will be created if it does not already exist.
allowNulls - the value to set.VariableNodeProperties.AllowNullspublic void setMaxStringLength(UInteger maxStringLength)
A PropertyNode will be created if it does not already exist.
maxStringLength - the value to set.VariableNodeProperties.MaxStringLengthpublic void setMaxArrayLength(UInteger maxArrayLength)
A PropertyNode will be created if it does not already exist.
maxArrayLength - the value to set.VariableNodeProperties.MaxArrayLengthpublic void setEngineeringUnits(EUInformation engineeringUnits)
A PropertyNode will be created if it does not already exist.
engineeringUnits - the value to set.VariableNodeProperties.EngineeringUnits@Deprecated public static UaVariableNode.UaVariableNodeBuilder builder(UaNodeContext context)
UaVariableNodeBuilder#UaVariableNodeBuilder(UaNodeContext) or
build(UaNodeContext, Function).public static UaVariableNode build(UaNodeContext context, Function<UaVariableNode.UaVariableNodeBuilder,UaVariableNode> build)
UaVariableNode using the UaVariableNode.UaVariableNodeBuilder supplied to the
build function.context - a UaNodeContext.build - a function that accepts a UaVariableNode.UaVariableNodeBuilder and uses it to build
and return a UaVariableNode.UaVariableNode built using the supplied UaVariableNode.UaVariableNodeBuilder.Copyright © 2021. All rights reserved.