com.prosysopc.ua.client.nodes
Class UaObjectTypeImpl

java.lang.Object
  extended by com.prosysopc.ua.nodes.AbstractUaNode
      extended by com.prosysopc.ua.client.nodes.UaNodeImpl
          extended by com.prosysopc.ua.client.nodes.UaTypeImpl
              extended by com.prosysopc.ua.client.nodes.UaObjectTypeImpl
All Implemented Interfaces:
UaNode, UaObjectType, UaType

public class UaObjectTypeImpl
extends UaTypeImpl
implements UaObjectType

Straight forward implementation of UaObjectType.

It keeps all attributes in memory.


Field Summary
 
Fields inherited from class com.prosysopc.ua.client.nodes.UaTypeImpl
javaClass
 
Fields inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl
addressSpace, logger, references, supportedAttributesMap
 
Fields inherited from interface com.prosysopc.ua.nodes.UaObjectType
ICON_PROPERTY
 
Constructor Summary
UaObjectTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, org.opcfoundation.ua.builtintypes.QualifiedName browseName, org.opcfoundation.ua.builtintypes.LocalizedText displayName)
           
UaObjectTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, org.opcfoundation.ua.builtintypes.QualifiedName browseName, org.opcfoundation.ua.builtintypes.LocalizedText displayName, org.opcfoundation.ua.builtintypes.LocalizedText description, EnumSet<WriteAccess> writeMask, EnumSet<WriteAccess> userWriteMask, UaClientReference[] references, UaProperty[] properties, Boolean isAbstract)
           
UaObjectTypeImpl(AddressSpace addressSpace, org.opcfoundation.ua.builtintypes.NodeId nodeId, String name, Locale locale)
          Create a new node with name to be used for browseName and displayName.
 
Method Summary
 org.opcfoundation.ua.core.NodeAttributes getAttributes()
           
protected  org.opcfoundation.ua.core.ObjectTypeAttributes getAttributes(org.opcfoundation.ua.core.ObjectTypeAttributes attributes)
           
 UaProperty getIcon()
          The Icon Property provides an image that can be used by clients when displaying the Node.
 org.opcfoundation.ua.core.NodeClass getNodeClass()
          The NodeClass Attribute identifies the NodeClass of a Node.
 void setAttributes(org.opcfoundation.ua.core.ObjectTypeAttributes objectTypeAttributes)
           
 void setIcon(UaProperty icon)
          Set the value of the Icon property.
 
Methods inherited from class com.prosysopc.ua.client.nodes.UaTypeImpl
addSubType, getIsAbstract, getJavaClass, getSuperType, hasSuperType, inheritsFrom, inheritsFrom, initSupportedAttributes, readAttributeValue, setIsAbstract, setJavaClass, setSuperType, toString, writeAttributeValue
 
Methods inherited from class com.prosysopc.ua.client.nodes.UaNodeImpl
addComponent, addProperties, addProperty, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, assertTypeSupport, assertTypeSupport, beforeAddReference, deleteReference, deleteReference, deleteReference, deleteReference, deleteReferences, doAddProperty, equals, findPlaceholders, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeId, getNodeVersion, getNodeVersionString, getProperties, getProperty, getPropertyValue, getReference, getReferenceList, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hashCode, hasProperty, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, referenceTypeInherits, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 
Methods inherited from class com.prosysopc.ua.nodes.AbstractUaNode
getForwardReferences, getInverseReferences, getReferences, getReferences, getReferencesAsList, referenceTypeInherits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.prosysopc.ua.nodes.UaType
addSubType, getIsAbstract, getJavaClass, getSuperType, hasSuperType, inheritsFrom, inheritsFrom, setIsAbstract, setJavaClass, setSuperType
 
Methods inherited from interface com.prosysopc.ua.nodes.UaNode
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 

Constructor Detail

UaObjectTypeImpl

public UaObjectTypeImpl(AddressSpace addressSpace,
                        org.opcfoundation.ua.builtintypes.NodeId nodeId,
                        org.opcfoundation.ua.builtintypes.QualifiedName browseName,
                        org.opcfoundation.ua.builtintypes.LocalizedText displayName)
Parameters:
nodeId -
browseName -
displayName -

UaObjectTypeImpl

public UaObjectTypeImpl(AddressSpace addressSpace,
                        org.opcfoundation.ua.builtintypes.NodeId nodeId,
                        org.opcfoundation.ua.builtintypes.QualifiedName browseName,
                        org.opcfoundation.ua.builtintypes.LocalizedText displayName,
                        org.opcfoundation.ua.builtintypes.LocalizedText description,
                        EnumSet<WriteAccess> writeMask,
                        EnumSet<WriteAccess> userWriteMask,
                        UaClientReference[] references,
                        UaProperty[] properties,
                        Boolean isAbstract)
Parameters:
nodeId -
browseName -
displayName -
description -
writeMask -
userWriteMask -
references -
properties -
isAbstract -

UaObjectTypeImpl

public UaObjectTypeImpl(AddressSpace addressSpace,
                        org.opcfoundation.ua.builtintypes.NodeId nodeId,
                        String name,
                        Locale locale)
Create a new node with name to be used for browseName and displayName.

Parameters:
nodeId -
name -
locale -
Method Detail

getAttributes

public org.opcfoundation.ua.core.NodeAttributes getAttributes()
Specified by:
getAttributes in interface UaNode
Returns:
the current attribute values of the node in a NodeAttributes structure.

getIcon

public UaProperty getIcon()
Description copied from interface: UaObjectType
The Icon Property provides an image that can be used by clients when displaying the Node.

Specified by:
getIcon in interface UaObjectType
Returns:
the Icon property. This is an optional property, so it may be null, if the property is not defined.

getNodeClass

public final org.opcfoundation.ua.core.NodeClass getNodeClass()
Description copied from interface: UaNode
The NodeClass Attribute identifies the NodeClass of a Node.

Specified by:
getNodeClass in interface UaNode
Overrides:
getNodeClass in class UaNodeImpl
Returns:
the Node Class of the node. This is hard-coded and cannot be changed.

setAttributes

public void setAttributes(org.opcfoundation.ua.core.ObjectTypeAttributes objectTypeAttributes)

setIcon

public void setIcon(UaProperty icon)
             throws StatusException
Description copied from interface: UaObjectType
Set the value of the Icon property. If the property already exists, the value is copied from the parameter.

Specified by:
setIcon in interface UaObjectType
Parameters:
icon - the Icon to set
Throws:
StatusException
See Also:
UaObjectType.getIcon()

getAttributes

protected org.opcfoundation.ua.core.ObjectTypeAttributes getAttributes(org.opcfoundation.ua.core.ObjectTypeAttributes attributes)


Copyright © 2018. All rights reserved.