public class UaViewImpl extends UaNodeImpl implements UaView
UaView.
It keeps all attributes in memory.
UaNode.ParametersaddressSpace, logger, references, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
|
UaViewImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
|
UaViewImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
AttributeWriteMask writeMask,
AttributeWriteMask userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
boolean containsNoLoops,
EventNotifierType eventNotifier) |
protected |
UaViewImpl(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
NodeAttributes |
getAttributes()
Returns the current attribute values of the node in a NodeAttributes structure.
|
protected NodeAttributes |
getAttributes(ViewAttributes attributes) |
protected void |
getAttributesMap(Map<UnsignedInteger,Object> map) |
Boolean |
getContainsNoLoops()
If set to
true this Attribute indicates that following References in the context
of the View contains no loops, i.e. |
EventNotifierType |
getEventNotifier()
Defines whether the node can be used to subscribe to events.
|
NodeClass |
getNodeClass()
The NodeClass Attribute identifies the NodeClass of a Node.
|
UaProperty |
getViewVersion()
The version number for the View.
|
protected void |
initSupportedAttributes(List<UnsignedInteger> l) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
setAttributes(ViewAttributes viewAttributes) |
void |
setContainsNoLoops(Boolean containsNoLoops)
Set ContainsNoLoops Attribute value for this node.
|
void |
setEventNotifier(EventNotifierType eventNotifier)
Set EventNotifier Attribute value for this node.
|
protected void |
setViewVersion(Integer viewVersion)
Set the value of the ViewVersion property.
|
String |
toString() |
protected void |
writeAttributeValue(UnsignedInteger attributeId,
Object value,
StatusCode statusCode,
DateTime sourceTime,
UnsignedShort sourcePicoseconds) |
addComponent, addProperties, addProperty, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, assertTypeSupport, assertTypeSupport, beforeAddReference, deleteReference, deleteReference, deleteReference, deleteReference, deleteReferences, doAddProperty, equals, findPlaceholders, getAddressSpace, getAttributes, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeId, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyValue, getReference, getReferenceList, getReferences, getSupportedAttributes, getUaNodeId, getUserWriteMask, getWriteMask, hashCode, hasProperty, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, referenceTypeInherits, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributegetForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddComponent, 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, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserData, setUserWriteMask, setWriteMask, supportsAttribute, writeAttributepublic UaViewImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
public UaViewImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName, LocalizedText description, AttributeWriteMask writeMask, AttributeWriteMask userWriteMask, UaClientReference[] references, UaProperty[] properties, boolean containsNoLoops, EventNotifierType eventNotifier)
protected UaViewImpl(UaNode.Parameters parameters)
public NodeAttributes getAttributes()
UaNodegetAttributes in interface UaNodepublic Boolean getContainsNoLoops()
UaViewtrue this Attribute indicates that following References in the context
of the View contains no loops, i.e. starting from a Node 'A' contained in the View and
following the forward References in the context of the View Node 'A' will not be reached again.
It does not specify that there is only one path starting from the View Node to reach a Node
contained in the View. If set to false this Attribute indicates that following
References in the context of the View may lead to loops. (OPC UA Specification, Part 3.)getContainsNoLoops in interface UaViewpublic EventNotifierType getEventNotifier()
UaView| Value | Description |
|---|---|
| SubscribeToEvents | Indicates if it can be used to subscribe to Events (0 means cannot be used to subscribe to Events, 1 means can be used to subscribe to Events). |
| HistoryRead | Indicates if the history of the Events is readable (0 means not readable, 1 means readable). |
| HistoryWrite | Indicates if the history of the Events is writable (0 means not writable, 1 means writable). |
getEventNotifier in interface UaViewpublic final NodeClass getNodeClass()
UaNodegetNodeClass in interface UaNodegetNodeClass in class UaNodeImplpublic UaProperty getViewVersion()
UaViewgetViewVersion in interface UaViewpublic void setAttributes(ViewAttributes viewAttributes)
public void setContainsNoLoops(Boolean containsNoLoops)
UaViewsetContainsNoLoops in interface UaViewcontainsNoLoops - the value of containsNoLoops to setUaView.getContainsNoLoops()public void setEventNotifier(EventNotifierType eventNotifier)
UaViewsetEventNotifier in interface UaVieweventNotifier - the value of EventNotifier to setUaView.getEventNotifier()public String toString()
toString in class UaNodeImplprotected NodeAttributes getAttributes(ViewAttributes attributes)
protected void getAttributesMap(Map<UnsignedInteger,Object> map)
getAttributesMap in class UaNodeImplprotected void initSupportedAttributes(List<UnsignedInteger> l)
initSupportedAttributes in class UaNodeImplprotected void readAttributeValue(UnsignedInteger attributeId, DataValue dataValue) throws StatusException
UaNodeImplreadAttributeValue in class UaNodeImplattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.StatusException - on failureprotected void setViewVersion(Integer viewVersion) throws StatusException
viewVersion - StatusExceptionprotected void writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class UaNodeImplStatusExceptionCopyright © 2026. All rights reserved.