public interface UaType extends UaNode
Note that the specification does not define any generic behavior for types and there is no specific node class, called type.
This interface is defined solely to make it possible to classify the UA types from the instances.
UaDataType,
UaObjectType,
UaReferenceType,
UaVariableTypeUaNode.Parameters| Modifier and Type | Method and Description |
|---|---|
void |
addSubType(UaType type)
Add a new sub type for the 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.
|
default NodeId |
getSuperTypeId()
Returns the same as
UaNode.getNodeId() of getSuperType(). |
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.
|
default UaNodeId |
inheritsFromAny(Collection<UaNodeId> typeIds)
Same as
inheritsFrom(NodeId), but checks multiple types. |
default UaNodeId |
inheritsFromAny(UaNodeId... typeIds)
Same as
inheritsFrom(NodeId), but checks multiple types. |
void |
setIsAbstract(Boolean isAbstract)
Sets the IsAbstract Attribute value.
|
void |
setSuperType(UaType parent)
Set the ModelParent reference.
|
addComponent, addOrganizes, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getAttributesMap, getBrowseName, getBrowsePaths, getComponent, 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, writeAttributevoid addSubType(UaType type)
Adds a new reference of type HasSubType to the node with target set to type.
type - the node to add.Boolean getIsAbstract()
UaType getSuperType()
hasSuperType()default NodeId getSuperTypeId()
UaNode.getNodeId() of getSuperType().boolean hasSuperType()
getSuperType() returns
null.boolean inheritsFrom(NodeId typeId)
typeId - The NodeId of the type to checkgetSuperType()boolean inheritsFrom(UaType type)
type - The NodeId of the type to checkgetSuperType()default UaNodeId inheritsFromAny(Collection<UaNodeId> typeIds)
inheritsFrom(NodeId), but checks multiple types. Returns the first match in
super-type hierarchy (including and starting from this type and following inverse HasSubType
references) that is one of the given types, or null if there is no match. Returns null if given
null or empty collection.default UaNodeId inheritsFromAny(UaNodeId... typeIds)
inheritsFrom(NodeId), but checks multiple types. Returns the first match in
super-type hierarchy (including and starting from this type and following inverse HasSubType
references) that is one of the given types, or null if there is no match. Returns null for null
and empty arrays.void setIsAbstract(Boolean isAbstract)
getIsAbstract()void setSuperType(UaType parent)
parent - the super type to set.Copyright © 2026. All rights reserved.