Class DefaultDataTypeManager
java.lang.Object
org.eclipse.milo.opcua.stack.core.types.DefaultDataTypeManager
- All Implemented Interfaces:
DataTypeManager
- Direct Known Subclasses:
OpcUaDataTypeManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataTypeManagercreateAndInitialize(NamespaceTable namespaceTable) Create aDefaultDataTypeManagerand initialize it by registering all built-in DataTypes.@Nullable NodeIdgetBinaryEncodingId(NodeId dataTypeId) @Nullable DataTypeCodecGet theDataTypeCodecfor the givenNodeId.@Nullable NodeIdgetJsonEncodingId(NodeId dataTypeId) @Nullable DataTypeDictionarygetTypeDictionary(String namespaceUri) @Nullable NodeIdgetXmlEncodingId(NodeId dataTypeId) voidregisterType(NodeId dataTypeId, DataTypeCodec codec, @Nullable NodeId binaryEncodingId, @Nullable NodeId xmlEncodingId, @Nullable NodeId jsonEncodingId) voidregisterTypeDictionary(DataTypeDictionary dictionary)
-
Constructor Details
-
DefaultDataTypeManager
public DefaultDataTypeManager()
-
-
Method Details
-
registerType
public void registerType(NodeId dataTypeId, DataTypeCodec codec, @Nullable NodeId binaryEncodingId, @Nullable NodeId xmlEncodingId, @Nullable NodeId jsonEncodingId) - Specified by:
registerTypein interfaceDataTypeManager
-
getCodec
Description copied from interface:DataTypeManager- Specified by:
getCodecin interfaceDataTypeManager- Parameters:
id- theNodeIdof either the datatype or encoding.- Returns:
- the
DataTypeCodecfor the givenNodeId.
-
getBinaryEncodingId
- Specified by:
getBinaryEncodingIdin interfaceDataTypeManager
-
getXmlEncodingId
- Specified by:
getXmlEncodingIdin interfaceDataTypeManager
-
getJsonEncodingId
- Specified by:
getJsonEncodingIdin interfaceDataTypeManager
-
getTypeDictionary
- Specified by:
getTypeDictionaryin interfaceDataTypeManager
-
registerTypeDictionary
- Specified by:
registerTypeDictionaryin interfaceDataTypeManager
-
createAndInitialize
Create aDefaultDataTypeManagerand initialize it by registering all built-in DataTypes.- Parameters:
namespaceTable- aNamespaceTable.- Returns:
- a
DataTypeManagerpre-initialized wth the built-in DataTypes.
-