com.prosysopc.ua.typedictionary
Class DataTypeDictionaryComposition

java.lang.Object
  extended by com.prosysopc.ua.typedictionary.DataTypeDictionaryComposition
All Implemented Interfaces:
DataTypeDictionary

public class DataTypeDictionaryComposition
extends Object
implements DataTypeDictionary

A class combining multiple DataTypeDictionarys.


Constructor Summary
DataTypeDictionaryComposition()
           
 
Method Summary
 void addGeneratedDataTypeDictionary(GeneratedDataTypeDictionary dictionary)
          Adds a codegenerated dictionary to this composition.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypeDictionaryComposition

public DataTypeDictionaryComposition()
Method Detail

addGeneratedDataTypeDictionary

public void addGeneratedDataTypeDictionary(GeneratedDataTypeDictionary dictionary)
Adds a codegenerated dictionary to this composition. SDK calls this internally.


dataTypeIdForType

public UaNodeId dataTypeIdForType(String namespace,
                                  String typeName)
Description copied from interface: DataTypeDictionary
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.

Specified by:
dataTypeIdForType in interface DataTypeDictionary
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

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

Specified by:
javaClassForType in interface DataTypeDictionary
Parameters:
namespaceURI - URI of the type
typeName - Name of the type
Returns:
java class, or null if not found

javaClassForType

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

Specified by:
javaClassForType in interface DataTypeDictionary
Parameters:
typeId - NodeId of the type
Returns:
java class, or null if not found

knownAddressSpaceNamespaces

public Set<String> knownAddressSpaceNamespaces()
Description copied from interface: DataTypeDictionary
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.

Specified by:
knownAddressSpaceNamespaces in interface DataTypeDictionary

supportedDictionaryTargetNamespaces

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

Specified by:
supportedDictionaryTargetNamespaces in interface DataTypeDictionary


Copyright © 2018. All rights reserved.