|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.typedictionary.GeneratedDataTypeDictionary
public class GeneratedDataTypeDictionary
Class for containing generated DataTypeDictionary information. Instances of this class should be only instantiated by code created by the codegen.
| Constructor Summary | |
|---|---|
GeneratedDataTypeDictionary(String namespaceURI)
This should be only called by codegenerated code. |
|
| Method Summary | |
|---|---|
void |
addTypeInformation(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
String typeName,
Class<?> javaClass)
Add a new type information to the dictionary. |
void |
addTypeInformation(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void addTypeInformation(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
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(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
String typeName,
Class<?> javaClass,
String dictionaryTargetNamespace)
nodeId - The ExpandedNodeId of the type, shall contain the same uri as given in the
constructortypeName - The name of the type (as in a DataTypeDictionary)javaClass - The java class used for the type in generated StructuresdictionaryTargetNamespace - The TargetNamespace XML Attribute value for the dictionary. If
this would be the same as the UA AddressSpace NamespaceURI,
addTypeInformation(ExpandedNodeId, String, Class) should be used instead.
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 namespace
UaNodeId pointing to the DataType node for the given type, or null if not
found.public String getNamespaceURI()
public Class<?> javaClassForType(String namespaceURI,
String typeName)
DataTypeDictionary
javaClassForType in interface DataTypeDictionarynamespaceURI - URI of the typetypeName - Name of the type
public Class<?> javaClassForType(UaNodeId typeId)
DataTypeDictionary
javaClassForType in interface DataTypeDictionarytypeId - NodeId of the type
public Set<String> knownAddressSpaceNamespaces()
DataTypeDictionary
knownAddressSpaceNamespaces in interface DataTypeDictionarypublic Set<String> supportedDictionaryTargetNamespaces()
DataTypeDictionaryDataTypeDictionary.javaClassForType(String, String) call. The returned list shall
be read-only.
supportedDictionaryTargetNamespaces in interface DataTypeDictionary
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||