public class DefaultDataTypeManager extends Object implements DataTypeManager
| Constructor and Description |
|---|
DefaultDataTypeManager() |
| Modifier and Type | Method and Description |
|---|---|
static DataTypeManager |
createAndInitialize(NamespaceTable namespaceTable)
Create a
DefaultDataTypeManager and initialize it with the built-in DataTypes. |
@Nullable DataTypeCodec |
getCodec(NodeId encodingId)
Get a registered
DataTypeCodec by its encoding id. |
@Nullable DataTypeCodec |
getCodec(QualifiedName encodingName,
NodeId dataTypeId)
Get a registered
DataTypeCodec by its encoding name and datatype id. |
@Nullable DataTypeCodec |
getCodec(String namespaceUri,
String description)
Get a registered
DataTypeCodec by its datatype dictionary namespace URI and description. |
@Nullable DataTypeDictionary<?> |
getDataTypeDictionary(String namespaceUri)
Get a registered
DataTypeDictionary by its namespace URI. |
void |
registerCodec(NodeId encodingId,
DataTypeCodec codec)
Register a
DataTypeCodec by its encoding id. |
void |
registerCodec(QualifiedName encodingName,
NodeId dataTypeId,
DataTypeCodec codec)
Register a
DataTypeCodec by its encoding name and datatype id. |
void |
registerTypeDictionary(DataTypeDictionary<?> dataTypeDictionary)
Register a
DataTypeDictionary and all the DataTypeCodecs it contains. |
public void registerCodec(NodeId encodingId, DataTypeCodec codec)
DataTypeManagerDataTypeCodec by its encoding id.registerCodec in interface DataTypeManagerencodingId - the encoding id.codec - the DataTypeCodec to register.public void registerCodec(QualifiedName encodingName, NodeId dataTypeId, DataTypeCodec codec)
DataTypeManagerDataTypeCodec by its encoding name and datatype id.registerCodec in interface DataTypeManagerencodingName - the QualifiedName of the datatype encoding.dataTypeId - the datatype id.codec - the DataTypeCodec to register.public void registerTypeDictionary(DataTypeDictionary<?> dataTypeDictionary)
DataTypeManagerDataTypeDictionary and all the DataTypeCodecs it contains.registerTypeDictionary in interface DataTypeManagerdataTypeDictionary - the DataTypeDictionary to register.@Nullable public @Nullable DataTypeCodec getCodec(NodeId encodingId)
DataTypeManagerDataTypeCodec by its encoding id.getCodec in interface DataTypeManagerencodingId - the encoding id.DataTypeCodec registered for encodingId.@Nullable public @Nullable DataTypeCodec getCodec(QualifiedName encodingName, NodeId dataTypeId)
DataTypeManagerDataTypeCodec by its encoding name and datatype id.getCodec in interface DataTypeManagerencodingName - the QualifiedName of the datatype encoding.dataTypeId - the datatype id.DataTypeCodec registered for encodingName and dataTypeId.@Nullable public @Nullable DataTypeCodec getCodec(String namespaceUri, String description)
DataTypeManagerDataTypeCodec by its datatype dictionary namespace URI and description.getCodec in interface DataTypeManagernamespaceUri - the namespace URI of the datatype dictionary the codec is from.description - the datatype description in the dictionary.DataTypeCodec registered for namespaceUri and description.@Nullable public @Nullable DataTypeDictionary<?> getDataTypeDictionary(String namespaceUri)
DataTypeManagerDataTypeDictionary by its namespace URI.getDataTypeDictionary in interface DataTypeManagernamespaceUri - the namespace URI the dictionary is registered under.DataTypeDictionary registered under namespaceUri.public static DataTypeManager createAndInitialize(NamespaceTable namespaceTable)
DefaultDataTypeManager and initialize it with the built-in DataTypes.namespaceTable - a NamespaceTable.DataTypeManager pre-initialized wth the built-in DataTypes.Copyright © 2025. All rights reserved.