public abstract class UaTypeNode extends BaseNode implements UaType
Note that the OPC UA Specification does not define or represent such a common "base class" for all type nodes. However, all type nodes support IsAbstract attribute, and the nodes exist in the Types section of the address space only.
UaNode.ParametersNODE_VERSION_PROPERTY_NAME, useQuickPropertyLookupeventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
protected |
UaTypeNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
protected |
UaTypeNode(NodeManagerUaNode nodeManager,
NodeId nodeId,
String name,
Locale locale)
Create a new node with name to be used for browseName and displayName.
|
protected |
UaTypeNode(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubType(UaType node)
Add a new sub type for the type.
|
protected void |
afterAddReference(UaReference reference) |
protected boolean |
beforeAddReference(UaReference reference) |
UaNode |
getComponent(QualifiedName componentName)
Get the component, which has the specified name.
|
UaTypeInstanceDeclarationHierarchy |
getInstanceDeclarationHierarchy()
Equivalent to
UaTypeInstanceDeclarationHierarchy.fromUaType(UaTypeNode) using this
UaTypeNode, but the result is cached within this type. |
Boolean |
getIsAbstract()
Returns true if this is an abstract type, false otherwise.
|
UaType |
getSuperType()
Returns the UA type that is defined as the ancestor of the type in the UA AddressSpace.
|
boolean |
hasSuperType()
Returns whether the type has a super type.
|
boolean |
inheritsFrom(NodeId typeId)
Check if the type inherits from the specified type.
|
boolean |
inheritsFrom(UaType type)
Check if the type inherits from the specified type.
|
protected void |
initSupportedAttributes(List<UnsignedInteger> list) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
resetInstanceDeclarationHierarchy() |
void |
setIsAbstract(Boolean isAbstract)
Sets the IsAbstract Attribute value.
|
void |
setSuperType(UaType superType)
Set the ModelParent reference.
|
String |
toString() |
protected void |
writeAttributeValue(UnsignedInteger attributeId,
Object value,
StatusCode statusCode,
DateTime sourceTime,
UnsignedShort sourcePicoseconds) |
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getAttributes, getAttributesMap, getAttributesMap, getBrowseName, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeClass, getNodeVersion, getNodeVersionNode, getProperties, getProperty, getPropertyReference, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasTypeDefinition, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setNodeVersion, setPropertyValue, setUserWriteMask, setWriteMask, writeAttributeaddComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getNodeSetExtensions, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, getUaNodeId, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setNodeSetExtensions, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChaingetForwardReferences, getInverseReferences, getReferences, getReferences, getUserData, referenceTypeInherits, setUserDataclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSuperTypeId, inheritsFromAny, inheritsFromAnyaddComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getAttributesMap, getBrowseName, getBrowsePaths, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeClass, 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, writeAttributeprotected UaTypeNode(NodeManagerUaNode nodeManager, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
protected UaTypeNode(NodeManagerUaNode nodeManager, NodeId nodeId, String name, Locale locale)
protected UaTypeNode(UaNode.Parameters parameters)
public void addSubType(UaType node)
UaTypeAdds a new reference of type HasSubType to the node with target set to type.
addSubType in interface UaTypenode - the node to add.public UaNode getComponent(QualifiedName componentName)
UaNodegetComponent in interface UaNodegetComponent in class BaseNodecomponentName - the BrowseName of the component to getpublic UaTypeInstanceDeclarationHierarchy getInstanceDeclarationHierarchy()
UaTypeInstanceDeclarationHierarchy.fromUaType(UaTypeNode) using this
UaTypeNode, but the result is cached within this type.public Boolean getIsAbstract()
UaTypegetIsAbstract in interface UaTypepublic UaType getSuperType()
UaTypegetSuperType in interface UaTypeUaType.hasSuperType()public boolean hasSuperType()
UaTypeUaType.getSuperType() returns
null.hasSuperType in interface UaTypepublic boolean inheritsFrom(NodeId typeId)
UaTypeinheritsFrom in interface UaTypetypeId - The NodeId of the type to checkUaType.getSuperType()public boolean inheritsFrom(UaType type)
UaTypeinheritsFrom in interface UaTypetype - The NodeId of the type to checkUaType.getSuperType()public void resetInstanceDeclarationHierarchy()
public void setIsAbstract(Boolean isAbstract)
UaTypesetIsAbstract in interface UaTypeUaType.getIsAbstract()public void setSuperType(UaType superType)
UaTypesetSuperType in interface UaTypesuperType - the super type to set.protected void afterAddReference(UaReference reference)
afterAddReference in class ServerNodeprotected boolean beforeAddReference(UaReference reference)
beforeAddReference in class ServerNodeprotected void initSupportedAttributes(List<UnsignedInteger> list)
initSupportedAttributes in class ServerNodeprotected void readAttributeValue(UnsignedInteger attributeId, DataValue dataValue) throws StatusException
BaseNodereadAttributeValue in class BaseNodeattributeId - the ID of the attribute to read.dataValue - the DataValue structure in which the value is set.StatusException - if the attributeId is not valid for this (base) node implementation.protected void writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class BaseNodeStatusExceptionCopyright © 2026. All rights reserved.