public class GeneratedDataTypeDictionary extends Object implements DataTypeDictionary
| Constructor and Description |
|---|
GeneratedDataTypeDictionary(String namespaceURI)
This should be only called by codegenerated code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTypeInformation(UaNodeId typeId,
String typeName,
Class<?> javaClass)
Add a new type information to the dictionary.
|
void |
addTypeInformation(UaNodeId typeId,
String typeName,
Class<?> javaClass,
String dictionaryTargetNamespace)
Add a new type information to the dictionary.
|
UaNodeId |
dataTypeIdForType(String namespace,
String typeName)
Returns
UaNodeId pointing to the DataType node of the given parameters. |
String |
getNamespaceURI()
Returns the AddressSpace NamespaceURI for all the dictionaries contained in this instance.
|
Class<?> |
javaClassForType(String namespaceURI,
String typeName)
Return java class for given parameters.
|
Class<?> |
javaClassForType(UaNodeId typeId)
Return java class for given parameters.
|
Set<String> |
knownAddressSpaceNamespaces()
Return the known AddressSpace NamespaceURIs of this dictionary.
|
Set<String> |
supportedDictionaryTargetNamespaces()
Returns the supported Dictionarty TargetNamespaces.
|
public GeneratedDataTypeDictionary(String namespaceURI)
namespaceURI - The NamespaceUri for the dictionary address space node(s). Typically this
is the same as the TargetNamespace of the Dictionaries, but if they differ (or this
instance handles multiple dictionaries for the same namespace) it should be the
NamespaceUri of the dictionary node's NodeId NamespaceIndex converted to NamespaceUri
from the NamespaceTable.public void addTypeInformation(UaNodeId typeId, String typeName, Class<?> javaClass)
#addTypeInformation(ExpandedNodeId, String, Class, String) for cases where the
TargetNamespace of the dictionary matches the NamespaceUri of the dictionary nodes.public void addTypeInformation(UaNodeId typeId, String typeName, Class<?> javaClass, String dictionaryTargetNamespace)
public UaNodeId dataTypeIdForType(String namespace, String typeName)
DataTypeDictionaryUaNodeId pointing to the DataType node of the given parameters. NOTE! this
method returns only exact maches, i.e. possible UA super types are not searched.dataTypeIdForType in interface DataTypeDictionarynamespace - TargetNamespace of a typedictionarytypeName - TypeName of a type within the given namespaceUaNodeId pointing to the DataType node for the given type, or null if not
found.public String getNamespaceURI()
public Class<?> javaClassForType(String namespaceURI, String typeName)
DataTypeDictionaryjavaClassForType in interface DataTypeDictionarynamespaceURI - URI of the typetypeName - Name of the typepublic Class<?> javaClassForType(UaNodeId typeId)
DataTypeDictionaryjavaClassForType in interface DataTypeDictionarytypeId - NodeId of the typepublic Set<String> knownAddressSpaceNamespaces()
DataTypeDictionaryknownAddressSpaceNamespaces in interface DataTypeDictionarypublic Set<String> supportedDictionaryTargetNamespaces()
DataTypeDictionaryDataTypeDictionary.javaClassForType(String, String) call. The returned list shall
be read-only.supportedDictionaryTargetNamespaces in interface DataTypeDictionaryCopyright © 2026. All rights reserved.