public class UaVariableTypeNode extends UaTypeNode implements UaVariableType
UaVariableType.
It keeps all attributes in memory.
UaNode.ParametersNODE_VERSION_PROPERTY_NAME, useQuickPropertyLookupeventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
|
UaVariableTypeNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
|
UaVariableTypeNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
String name,
Locale locale)
Create a new node with name to be used for browseName and displayName.
|
protected |
UaVariableTypeNode(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
UnsignedInteger[] |
getArrayDimensions()
This Attribute specifies the length of each dimension for an array value.
|
NodeAttributes |
getAttributes()
Returns the current attribute values of the node in a NodeAttributes structure.
|
protected VariableTypeAttributes |
getAttributes(VariableTypeAttributes attributes) |
protected void |
getAttributesMap(Map<UnsignedInteger,Object> map) |
UaDataType |
getDataType() |
NodeId |
getDataTypeId() |
NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node.
|
DataValue |
getValue() |
Integer |
getValueRank()
This Attribute indicates whether the Value Attribute of the Variable is an array and how many
dimensions the array has.
|
protected void |
initSupportedAttributes(List<UnsignedInteger> l) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
setArrayDimensions(UnsignedInteger[] ArrayDimensions)
This Attribute specifies the length of each dimension for an array value.
|
void |
setAttributes(NodeAttributes nodeAttributes)
Sets the attributes of the node.
|
void |
setDataType(UaDataType dataType)
Set the Data Type node.
|
void |
setDataTypeId(NodeId dataTypeId)
Set the Data Type.
|
void |
setValue(DataValue value)
The default Value for instances of this type.
|
void |
setValue(Object value)
Set value.
|
void |
setValueRank(int valueRank)
This Attribute indicates whether the Value Attribute of the VariableType is an array and how
many dimensions the array has.
|
String |
toString() |
protected void |
writeAttributeValue(UnsignedInteger attributeId,
Object value,
StatusCode statusCode,
DateTime sourceTime,
UnsignedShort sourcePicoseconds) |
addSubType, afterAddReference, beforeAddReference, getComponent, getInstanceDeclarationHierarchy, getIsAbstract, getSuperType, hasSuperType, inheritsFrom, inheritsFrom, resetInstanceDeclarationHierarchy, setIsAbstract, setSuperTypeaddPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getAttributesMap, getBrowseName, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyReference, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setUserWriteMask, setWriteMask, writeAttributeaddComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getNodeSetExtensions, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, getUaNodeId, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setNodeSetExtensions, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChaingetForwardReferences, getInverseReferences, getReferences, getReferences, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddSubType, getIsAbstract, getSuperType, getSuperTypeId, hasSuperType, inheritsFrom, inheritsFrom, inheritsFromAny, inheritsFromAny, setIsAbstract, setSuperTypeaddComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributesMap, getBrowseName, getBrowsePaths, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeId, getNodeVersionNode, getOrganizedNode, getOrganizedNodes, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUaBrowsePaths, getUaNodeId, getUserData, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic UaVariableTypeNode(NodeManagerUaNode nodeManager, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
public UaVariableTypeNode(NodeManagerUaNode nodeManager, NodeId nodeId, String name, Locale locale)
nodeId - name - locale - protected UaVariableTypeNode(UaNode.Parameters parameters)
public UnsignedInteger[] getArrayDimensions()
UaValueNodeThe number of elements shall be equal to the value of the ValueRank Attribute. Shall be null if ValueRank <= 0.
A value of 0 for an individual dimension indicates that the dimension has a variable length.
For example, if a Variable is defined by the following C array: Int32 myArray[346];
then this Variable's DataType would point to an Int32, the Variable's ValueRank has the value 1 and the ArrayDimensions is an array with one entry having the value 346.
getArrayDimensions in interface UaValueNodeUaValueNode.setArrayDimensions(com.prosysopc.ua.stack.builtintypes.UnsignedInteger[])public NodeAttributes getAttributes()
UaNodegetAttributes in interface UaNodegetAttributes in class BaseNodepublic UaDataType getDataType()
getDataType in interface UaValueNodeUaValueNode.getDataTypeId()public NodeId getDataTypeId()
getDataTypeId in interface UaValueNodepublic final NodeClass getNodeClass()
UaNodegetNodeClass in interface UaNodegetNodeClass in class BaseNodepublic DataValue getValue()
getValue in interface UaValueNodepublic Integer getValueRank()
UaValueNodeIt may have the following values:
getValueRank in interface UaValueNodeUaValueNode.setValueRank(int)public void setArrayDimensions(UnsignedInteger[] ArrayDimensions)
UaValueNodeThe number of elements shall be equal to the value of the ValueRank Attribute. Shall be null if ValueRank <= 0.
A value of 0 for an individual dimension indicates that the dimension has a variable length.
For example, if a VariableType is defined by the following array:
Integer[] myArray = new Integer[346];
then this VariableType's DataType would point to the Int32 data type node, the VariableType's ValueRank has the value 1 and the ArrayDimensions is an array with one entry having the value 346.
setArrayDimensions in interface UaValueNodepublic void setAttributes(NodeAttributes nodeAttributes)
UaNodesetAttributes in interface UaNodesetAttributes in class BaseNodepublic void setDataType(UaDataType dataType)
UaValueNodesetDataType in interface UaValueNodeUaValueNode.setDataTypeId(NodeId)public void setDataTypeId(NodeId dataTypeId)
UaValueNodesetDataTypeId in interface UaValueNodeUaValueNode.setDataTypeId(NodeId)public void setValue(DataValue value)
UaValueNodesetValue in interface UaValueNodevalue - the default value to setpublic void setValue(Object value) throws StatusException
setValue in interface UaValueNodevalue - a new value. The value may be a DataValue, Variant or any "OPC UA compliant"
value, i.e. value which can be used to initialize a Variant.StatusException - if the value is invalid for the Value attributepublic void setValueRank(int valueRank)
UaValueNodeIt may have the following values:
setValueRank in interface UaValueNodevalueRank - the value rank to setpublic String toString()
toString in class UaTypeNodeprotected VariableTypeAttributes getAttributes(VariableTypeAttributes attributes)
protected void getAttributesMap(Map<UnsignedInteger,Object> map)
getAttributesMap in class BaseNodeprotected void initSupportedAttributes(List<UnsignedInteger> l)
initSupportedAttributes in class UaTypeNodeprotected void readAttributeValue(UnsignedInteger attributeId, DataValue dataValue) throws StatusException
BaseNodereadAttributeValue in class UaTypeNodeattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.StatusException - if the attributeId is not valid for this (base) node implementation.protected void writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class UaTypeNodeStatusExceptionCopyright © 2026. All rights reserved.