public class UaVariableTypeNode extends UaNode implements VariableTypeNode
| Constructor and Description |
|---|
UaVariableTypeNode(OpcUaClient client,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId,
org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass,
org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName,
org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName,
org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value,
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType,
Integer valueRank,
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions,
Boolean isAbstract) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] |
getArrayDimensions() |
protected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue |
getAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId) |
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId |
getDataType() |
Boolean |
getIsAbstract() |
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue |
getValue() |
Integer |
getValueRank() |
@Nullable org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] |
readArrayDimensions()
Read the ArrayDimensions attribute for this Node from the server and update the local
attribute if the operation succeeds.
|
org.eclipse.milo.opcua.stack.core.types.builtin.NodeId |
readDataType()
Read the DataType attribute for this Node from the server and update the local attribute if
the operation succeeds.
|
Boolean |
readIsAbstract()
Read the IsAbstract attribute for this Node from the server and update the local attribute
if the operation succeeds.
|
CompletableFuture<? extends String> |
readNodeVersionAsync()
Get the value of the
VariableTypeNodeProperties.NodeVersion Property, if it exists. |
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue |
readValue()
Read the Value attribute for this Node from the server and update the local attribute.
|
Integer |
readValueRank()
Read the ValueRank attribute for this Node from the server and update the local attribute if
the operation succeeds.
|
void |
setArrayDimensions(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions) |
protected void |
setAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value) |
void |
setDataType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType) |
void |
setIsAbstract(Boolean isAbstract) |
void |
setValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value) |
void |
setValue(org.eclipse.milo.opcua.stack.core.types.builtin.Variant variant)
Set the local Value attribute to a
DataValue containing variant with no
StatusCode or timestamp values. |
void |
setValueRank(Integer valueRank) |
void |
writeArrayDimensions(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions)
Write a new ArrayDimensions attribute for this Node to the server and update the local
attribute if the operation succeeds.
|
void |
writeDataType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType)
Write a new DataType attribute for this Node to the server and update the local attribute if
the operation succeeds.
|
void |
writeIsAbstract(Boolean isAbstract)
Write a new IsAbstract attribute for this Node to the server and update the local
attribute if the operation succeeds.
|
CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> |
writeNodeVersionAsync(String nodeVersion)
Set the value of the
VariableTypeNodeProperties.NodeVersion Property, if it exists. |
void |
writeValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
Write a new Value attribute for this Node to the server and update the local attribute if
the operation succeeds.
|
void |
writeValue(org.eclipse.milo.opcua.stack.core.types.builtin.Variant variant)
Write a new Value attribute for this Node to the server and update the local attribute if
the operation succeeds.
|
void |
writeValueRank(Integer valueRank)
Write a new ValueRank attribute for this Node to the server and update the local attribute
if the operation succeeds.
|
browse, browse, browseAsync, browseAsync, browseNodes, browseNodes, browseNodesAsync, browseNodesAsync, canonicalize, cast, findMemberNodeId, getBrowseName, getComponentAsync, getDescription, getDisplayName, getMemberNodeAsync, getNodeClass, getNodeId, getProperty, getPropertyNodeAsync, getPropertyNodeAsync, getUserWriteMask, getWriteMask, invalidate, readAttribute, readAttributeAsync, readBrowseName, readDescription, readDisplayName, readNamespaceIndex, readNodeClass, readNodeId, readProperty, readUserWriteMask, readWriteMask, refresh, refreshAsync, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setProperty, setUserWriteMask, setWriteMask, synchronize, synchronizeAsync, writeAttribute, writeAttributeAsync, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeProperty, writeUserWriteMask, writeWriteMaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMaskpublic UaVariableTypeNode(OpcUaClient client, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId nodeId, org.eclipse.milo.opcua.stack.core.types.enumerated.NodeClass nodeClass, org.eclipse.milo.opcua.stack.core.types.builtin.QualifiedName browseName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText displayName, org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText description, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger writeMask, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger userWriteMask, org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value, org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType, Integer valueRank, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions, Boolean isAbstract)
public org.eclipse.milo.opcua.stack.core.types.builtin.DataValue getValue()
The returned attribute is the most recently seen value; it is not read live from the server.
getValue in interface VariableTypeNodereadValue()public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId getDataType()
The returned attribute is the most recently seen value; it is not read live from the server.
getDataType in interface VariableTypeNodereadDataType()public Integer getValueRank()
The returned attribute is the most recently seen value; it is not read live from the server.
getValueRank in interface VariableTypeNodereadValueRank()public org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] getArrayDimensions()
The returned attribute is the most recently seen value; it is not read live from the server.
getArrayDimensions in interface VariableTypeNodereadArrayDimensions()public Boolean getIsAbstract()
The returned attribute is the most recently seen value; it is not read live from the server.
getIsAbstract in interface VariableTypeNodereadIsAbstract()public void setValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
The attribute is only updated locally; it is not written to the server.
setValue in interface VariableTypeNodewriteValue(DataValue)public void setValue(org.eclipse.milo.opcua.stack.core.types.builtin.Variant variant)
DataValue containing variant with no
StatusCode or timestamp values.variant - the Variant to set.setValue(DataValue)public void setDataType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType)
The attribute is only updated locally; it is not written to the server.
setDataType in interface VariableTypeNodewriteDataType(NodeId)public void setValueRank(Integer valueRank)
The attribute is only updated locally; it is not written to the server.
setValueRank in interface VariableTypeNodewriteValueRank(Integer)public void setArrayDimensions(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions)
The attribute is only updated locally; it is not written to the server.
setArrayDimensions in interface VariableTypeNodewriteArrayDimensions(UInteger[])public void setIsAbstract(Boolean isAbstract)
The attribute is only updated locally; it is not written to the server.
setIsAbstract in interface VariableTypeNodewriteIsAbstract(Boolean)public org.eclipse.milo.opcua.stack.core.types.builtin.DataValue readValue()
throws org.eclipse.milo.opcua.stack.core.UaException
Unlike reads for other attributes this call does not fail if the resulting DataValue
is not good quality and the local attribute value is updated without regard for status.
DataValue read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service-level error occurs.public org.eclipse.milo.opcua.stack.core.types.builtin.NodeId readDataType()
throws org.eclipse.milo.opcua.stack.core.UaException
NodeId read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public Integer readValueRank() throws org.eclipse.milo.opcua.stack.core.UaException
Integer read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.@Nullable
public @Nullable org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] readArrayDimensions()
throws org.eclipse.milo.opcua.stack.core.UaException
ArrayDimensions is an optional attribute. If the operation fails with
StatusCodes.Bad_AttributeIdInvalid a null value is returned instead.
Note that null is an expected value for the ArrayDimensions attribute in some cases
and this call does not distinguish between the attribute existing with a null value and the
attribute not existing.
UInteger array read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public Boolean readIsAbstract() throws org.eclipse.milo.opcua.stack.core.UaException
Boolean read from the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
throws org.eclipse.milo.opcua.stack.core.UaException
value - the DataValue to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeValue(org.eclipse.milo.opcua.stack.core.types.builtin.Variant variant)
throws org.eclipse.milo.opcua.stack.core.UaException
This overload creates a DataValue with no StatusCode or timestamp values.
variant - the Variant to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeDataType(org.eclipse.milo.opcua.stack.core.types.builtin.NodeId dataType)
throws org.eclipse.milo.opcua.stack.core.UaException
dataType - the NodeId to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeValueRank(Integer valueRank) throws org.eclipse.milo.opcua.stack.core.UaException
valueRank - the Integer to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeArrayDimensions(org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger[] arrayDimensions)
throws org.eclipse.milo.opcua.stack.core.UaException
arrayDimensions - the UInteger array to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public void writeIsAbstract(Boolean isAbstract) throws org.eclipse.milo.opcua.stack.core.UaException
isAbstract - the Boolean to write to the server.org.eclipse.milo.opcua.stack.core.UaException - if a service- or operation-level error occurs.public CompletableFuture<? extends String> readNodeVersionAsync()
VariableTypeNodeProperties.NodeVersion Property, if it exists.VariableTypeNodePropertiespublic CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNodeVersionAsync(String nodeVersion)
VariableTypeNodeProperties.NodeVersion Property, if it exists.nodeVersion - the value to set.CompletableFuture that completes with the StatusCode of the write operation.VariableTypeNodePropertiesprotected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue getAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId)
getAttributeValue in class UaNodeprotected void setAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId,
org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
setAttributeValue in class UaNodeCopyright © 2021. All rights reserved.