|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UaValueNode
A common interface for UaVariable and UaVariableType. Defines support for the Value property in the nodes.
| Method Summary | |
|---|---|
org.opcfoundation.ua.builtintypes.UnsignedInteger[] |
getArrayDimensions()
This Attribute specifies the length of each dimension for an array value. |
UaType |
getDataType()
|
org.opcfoundation.ua.builtintypes.NodeId |
getDataTypeId()
|
org.opcfoundation.ua.builtintypes.DataValue |
getValue()
|
Integer |
getValueRank()
This Attribute indicates whether the Value Attribute of the Variable is an array and how many dimensions the array has. |
void |
setArrayDimensions(org.opcfoundation.ua.builtintypes.UnsignedInteger[] ArrayDimensions)
This Attribute specifies the length of each dimension for an array value. |
void |
setDataType(UaType dataType)
Set the Data Type node. |
void |
setDataTypeId(org.opcfoundation.ua.builtintypes.NodeId dataTypeId)
Set the Data Type. |
void |
setValue(org.opcfoundation.ua.builtintypes.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. |
| Method Detail |
|---|
org.opcfoundation.ua.builtintypes.UnsignedInteger[] getArrayDimensions()
The 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.
setArrayDimensions(org.opcfoundation.ua.builtintypes.UnsignedInteger[])UaType getDataType()
getDataTypeId()org.opcfoundation.ua.builtintypes.NodeId getDataTypeId()
org.opcfoundation.ua.builtintypes.DataValue getValue()
Integer getValueRank()
It may have the following values:
setValueRank(int)void setArrayDimensions(org.opcfoundation.ua.builtintypes.UnsignedInteger[] ArrayDimensions)
The 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.
ArrayDimensions - void setDataType(UaType dataType)
dataType - setDataTypeId(NodeId)void setDataTypeId(org.opcfoundation.ua.builtintypes.NodeId dataTypeId)
dataTypeId - setDataTypeId(NodeId)
void setValue(org.opcfoundation.ua.builtintypes.DataValue value)
throws StatusException
value - the default value to set
StatusException
void setValue(Object value)
throws StatusException
value - a new value
StatusException - if the value is invalid for the Value attributevoid setValueRank(int valueRank)
It may have the following values:
valueRank - the value rank to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||