Class UaDataTypeNode
java.lang.Object
org.eclipse.milo.opcua.sdk.client.nodes.UaNode
org.eclipse.milo.opcua.sdk.client.nodes.UaDataTypeNode
- All Implemented Interfaces:
org.eclipse.milo.opcua.sdk.core.nodes.DataTypeNode,org.eclipse.milo.opcua.sdk.core.nodes.Node
public class UaDataTypeNode
extends UaNode
implements org.eclipse.milo.opcua.sdk.core.nodes.DataTypeNode
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionUaDataTypeNode(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, Boolean isAbstract) Construct aUaDataTypeNodeusing only attributes defined prior to OPC UA 1.04.UaDataTypeNode(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.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, Boolean isAbstract, org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition dataTypeDefinition) Construct aUaDataTypeNodeusing all attributes, including those defined by OPC UA 1.04. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.milo.opcua.stack.core.types.builtin.DataValuegetAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId) @Nullable org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition@Nullable org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinitionRead the DataTypeDefinition attribute for this Node from the server and update the local attribute if the operation succeeds.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[]>Get the value of theDataTypeNodeProperties.EnumStringsProperty, if it exists.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[]>Get the value of theDataTypeNodeProperties.EnumValuesProperty, if it exists.Read the IsAbstract attribute for this Node from the server and update the local attribute if the operation succeeds.CompletableFuture<? extends String>Get the value of theDataTypeNodeProperties.NodeVersionProperty, if it exists.CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[]>Get the value of theDataTypeNodeProperties.OptionSetValuesProperty, if it exists.protected voidsetAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId, org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value) voidsetDataTypeDefinition(org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition dataTypeDefinition) voidsetIsAbstract(Boolean isAbstract) voidwriteDataTypeDefinition(org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition dataTypeDefinition) Write a new DataTypeDefinition 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>writeEnumStringsAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[] enumStrings) Set the value of the EnumStrings Property, if it exists.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeEnumValuesAsync(org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[] enumValues) Set the value of theDataTypeNodeProperties.EnumValuesProperty, if it exists.voidwriteIsAbstract(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 theDataTypeNodeProperties.NodeVersionProperty, if it exists.CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode>writeOptionSetValuesAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[] optionSetValues) Set the value of theDataTypeNodeProperties.OptionSetValuesProperty, if it exists.Methods inherited from class org.eclipse.milo.opcua.sdk.client.nodes.UaNode
browse, browse, browseAsync, browseAsync, browseNodes, browseNodes, browseNodesAsync, browseNodesAsync, canonicalize, cast, findMemberNodeId, getAccessRestrictions, getBrowseName, getComponentAsync, getDescription, getDisplayName, getMemberNodeAsync, getNodeClass, getNodeId, getProperty, getPropertyNodeAsync, getPropertyNodeAsync, getRolePermissions, getUserRolePermissions, getUserWriteMask, getWriteMask, invalidate, readAccessRestrictions, readAttribute, readAttributeAsync, readBrowseName, readDescription, readDisplayName, readNamespaceIndex, readNodeClass, readNodeId, readProperty, readRolePermissions, readUserRolePermissions, readUserWriteMask, readWriteMask, refresh, refreshAsync, setAccessRestrictions, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setProperty, setRolePermissions, setUserRolePermissions, setUserWriteMask, setWriteMask, synchronize, synchronizeAsync, writeAccessRestrictions, writeAttribute, writeAttributeAsync, writeBrowseName, writeDescription, writeDisplayName, writeNodeClass, writeNodeId, writeProperty, writeRolePermissions, writeUserRolePermissions, writeUserWriteMask, writeWriteMaskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.milo.opcua.sdk.core.nodes.Node
getAccessRestrictions, getBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getRolePermissions, getUserRolePermissions, getUserWriteMask, getWriteMask, setAccessRestrictions, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setRolePermissions, setUserRolePermissions, setUserWriteMask, setWriteMask
-
Constructor Details
-
UaDataTypeNode
public UaDataTypeNode(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, Boolean isAbstract) Construct aUaDataTypeNodeusing only attributes defined prior to OPC UA 1.04. -
UaDataTypeNode
public UaDataTypeNode(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.structured.RolePermissionType[] rolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.RolePermissionType[] userRolePermissions, org.eclipse.milo.opcua.stack.core.types.structured.AccessRestrictionType accessRestrictions, Boolean isAbstract, org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition dataTypeDefinition) Construct aUaDataTypeNodeusing all attributes, including those defined by OPC UA 1.04.
-
-
Method Details
-
getIsAbstract
The returned attribute is the most recently seen value; it is not read live from the server.
- Specified by:
getIsAbstractin interfaceorg.eclipse.milo.opcua.sdk.core.nodes.DataTypeNode- See Also:
-
getDataTypeDefinition
public @Nullable org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition getDataTypeDefinition()The returned attribute is the most recently seen value; it is not read live from the server.
- Specified by:
getDataTypeDefinitionin interfaceorg.eclipse.milo.opcua.sdk.core.nodes.DataTypeNode- See Also:
-
setIsAbstract
The attribute is only updated locally; it is not written to the server.
- Specified by:
setIsAbstractin interfaceorg.eclipse.milo.opcua.sdk.core.nodes.DataTypeNode- See Also:
-
setDataTypeDefinition
public void setDataTypeDefinition(org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition dataTypeDefinition) The attribute is only updated locally; it is not written to the server.
- Specified by:
setDataTypeDefinitionin interfaceorg.eclipse.milo.opcua.sdk.core.nodes.DataTypeNode- See Also:
-
readIsAbstract
Read the IsAbstract attribute for this Node from the server and update the local attribute if the operation succeeds.- Returns:
- the
Booleanread from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.s
-
readDataTypeDefinition
public @Nullable org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition readDataTypeDefinition() throws org.eclipse.milo.opcua.stack.core.UaExceptionRead the DataTypeDefinition attribute for this Node from the server and update the local attribute if the operation succeeds.- Returns:
- the
DataTypeDefinitionread from the server. - Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.s
-
writeIsAbstract
public void writeIsAbstract(Boolean isAbstract) throws org.eclipse.milo.opcua.stack.core.UaException Write a new IsAbstract attribute for this Node to the server and update the local attribute if the operation succeeds.- Parameters:
isAbstract- theBooleanto write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
writeDataTypeDefinition
public void writeDataTypeDefinition(org.eclipse.milo.opcua.stack.core.types.structured.DataTypeDefinition dataTypeDefinition) throws org.eclipse.milo.opcua.stack.core.UaException Write a new DataTypeDefinition attribute for this Node to the server and update the local attribute if the operation succeeds.- Parameters:
dataTypeDefinition- theDataTypeDefinitionto write to the server.- Throws:
org.eclipse.milo.opcua.stack.core.UaException- if a service- or operation-level error occurs.
-
readNodeVersionAsync
Get the value of theDataTypeNodeProperties.NodeVersionProperty, if it exists.- Returns:
- the value of the NodeVersion Property, if it exists.
- See Also:
-
DataTypeNodeProperties
-
readEnumStringsAsync
public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[]> readEnumStringsAsync()Get the value of theDataTypeNodeProperties.EnumStringsProperty, if it exists.- Returns:
- the value of the EnumStrings Property, if it exists.
- See Also:
-
DataTypeNodeProperties
-
readEnumValuesAsync
public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[]> readEnumValuesAsync()Get the value of theDataTypeNodeProperties.EnumValuesProperty, if it exists.- Returns:
- the value of the EnumValues Property, if it exists.
- See Also:
-
DataTypeNodeProperties
-
readOptionSetValuesAsync
public CompletableFuture<? extends org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[]> readOptionSetValuesAsync()Get the value of theDataTypeNodeProperties.OptionSetValuesProperty, if it exists.- Returns:
- the value of the OptionSetValues Property, if it exists.
- See Also:
-
DataTypeNodeProperties
-
writeNodeVersionAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeNodeVersionAsync(String nodeVersion) Set the value of theDataTypeNodeProperties.NodeVersionProperty, if it exists.- Parameters:
nodeVersion- the value to set.- Returns:
- a
CompletableFuturethat completes with theStatusCodeof the write operation. - See Also:
-
DataTypeNodeProperties
-
writeEnumStringsAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeEnumStringsAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[] enumStrings) Set the value of the EnumStrings Property, if it exists.- Parameters:
enumStrings- the value to set.- Returns:
- a
CompletableFuturethat completes with theStatusCodeof the write operation. - See Also:
-
DataTypeNodeProperties
-
writeEnumValuesAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeEnumValuesAsync(org.eclipse.milo.opcua.stack.core.types.structured.EnumValueType[] enumValues) Set the value of theDataTypeNodeProperties.EnumValuesProperty, if it exists.- Parameters:
enumValues- the value to set.- Returns:
- a
CompletableFuturethat completes with theStatusCodeof the write operation. - See Also:
-
DataTypeNodeProperties
-
writeOptionSetValuesAsync
public CompletableFuture<org.eclipse.milo.opcua.stack.core.types.builtin.StatusCode> writeOptionSetValuesAsync(org.eclipse.milo.opcua.stack.core.types.builtin.LocalizedText[] optionSetValues) Set the value of theDataTypeNodeProperties.OptionSetValuesProperty, if it exists.- Parameters:
optionSetValues- the value to set.- Returns:
- a
CompletableFuturethat completes with theStatusCodeof the write operation. - See Also:
-
DataTypeNodeProperties
-
getAttributeValue
protected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue getAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId) - Overrides:
getAttributeValuein classUaNode
-
setAttributeValue
protected void setAttributeValue(org.eclipse.milo.opcua.stack.core.AttributeId attributeId, org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value) - Overrides:
setAttributeValuein classUaNode
-