public abstract class UaTypeImpl extends UaNodeImpl 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.ParametersaddressSpace, logger, references, supportedAttributesMap| Modifier | Constructor and Description |
|---|---|
protected |
UaTypeImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName) |
protected |
UaTypeImpl(AddressSpace addressSpace,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
AttributeWriteMask writeMask,
AttributeWriteMask userWriteMask,
UaClientReference[] references,
UaProperty[] properties,
Boolean isAbstract) |
|
UaTypeImpl(AddressSpace addressSpace,
NodeId nodeId,
String name,
Locale locale)
Create a new node with name to be used for browseName and displayName.
|
protected |
UaTypeImpl(UaNode.Parameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubType(UaType node)
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.
|
NodeId |
getSuperTypeId()
Returns the same as
UaNode.getNodeId() of UaType.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.
|
protected void |
initSupportedAttributes(List<UnsignedInteger> l) |
protected void |
readAttributeValue(UnsignedInteger attributeId,
DataValue dataValue)
Read the value of an attribute.
|
void |
setIsAbstract(Boolean isAbstract)
Sets the IsAbstract Attribute value.
|
void |
setSuperType(UaType parent)
Set the ModelParent reference.
|
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, getAttributesMap, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeClass, 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, waitinheritsFromAny, inheritsFromAnyaddComponent, 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, writeAttributepublic UaTypeImpl(AddressSpace addressSpace, NodeId nodeId, String name, Locale locale)
nodeId - name - locale - protected UaTypeImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName)
protected UaTypeImpl(AddressSpace addressSpace, NodeId nodeId, QualifiedName browseName, LocalizedText displayName, LocalizedText description, AttributeWriteMask writeMask, AttributeWriteMask userWriteMask, UaClientReference[] references, UaProperty[] properties, Boolean isAbstract)
protected UaTypeImpl(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 Boolean getIsAbstract()
UaTypegetIsAbstract in interface UaTypepublic UaType getSuperType()
UaTypegetSuperType in interface UaTypeUaType.hasSuperType()public NodeId getSuperTypeId()
UaTypeUaNode.getNodeId() of UaType.getSuperType().getSuperTypeId in interface UaTypepublic 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 setIsAbstract(Boolean isAbstract)
UaTypesetIsAbstract in interface UaTypeUaType.getIsAbstract()public void setSuperType(UaType parent)
UaTypesetSuperType in interface UaTypeparent - the super type to set.public String toString()
toString 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 writeAttributeValue(UnsignedInteger attributeId, Object value, StatusCode statusCode, DateTime sourceTime, UnsignedShort sourcePicoseconds) throws StatusException
writeAttributeValue in class UaNodeImplStatusExceptionCopyright © 2026. All rights reserved.