com.prosysopc.ua.typedictionary
Interface DataTypeDictionary

All Known Implementing Classes:
DataTypeDictionaryComposition, GeneratedDataTypeDictionary

public interface DataTypeDictionary

Implementations of this interface models a known typedictionary, that is known by some out-of-band mechanism (typically codegeneration).


Method Summary
 UaNodeId dataTypeIdForType(String namespace, String typeName)
          Returns UaNodeId pointing to the DataType node of the given parameters.
 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.
 

Method Detail

dataTypeIdForType

UaNodeId dataTypeIdForType(String namespace,
                           String typeName)
Returns UaNodeId 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.

Parameters:
namespace - TargetNamespace of a typedictionary
typeName - TypeName of a type within the given namespace
Returns:
UaNodeId pointing to the DataType node for the given type, or null if not found.

javaClassForType

Class<?> javaClassForType(String namespaceURI,
                          String typeName)
Return java class for given parameters. NOTE! this method returns only exact maches, i.e. possible UA super types are not searched.

Parameters:
namespaceURI - URI of the type
typeName - Name of the type
Returns:
java class, or null if not found

javaClassForType

Class<?> javaClassForType(UaNodeId typeId)
Return java class for given parameters. NOTE! this method returns only exact matches (i.e. super types of the given id are not searched).

Parameters:
typeId - NodeId of the type
Returns:
java class, or null if not found

knownAddressSpaceNamespaces

Set<String> knownAddressSpaceNamespaces()
Return the known AddressSpace NamespaceURIs of this dictionary. In practice this means that this dictionary contains the information of all the dictionaries defined in all the namespaces this method returns. The returned list shall be read-only.


supportedDictionaryTargetNamespaces

Set<String> supportedDictionaryTargetNamespaces()
Returns the supported Dictionarty TargetNamespaces. This should contain all valid values for the namespace part for javaClassForType(String, String) call. The returned list shall be read-only.



Copyright © 2018. All rights reserved.