public interface DataTypeDictionary<T extends DataTypeCodec>
| Modifier and Type | Method and Description |
|---|---|
T |
getCodec(NodeId dataTypeId)
Get a
DataTypeCodec registered with this dictionary. |
T |
getCodec(String description)
Get a
DataTypeCodec registered with this dictionary. |
default T |
getCodecByDataTypeId(NodeId dataTypeId) |
default T |
getCodecByDescription(String description) |
default T |
getCodecByEncodingId(NodeId nodeId) |
Map<NodeId,T> |
getCodecsByDataTypeId() |
Map<String,T> |
getCodecsByDescription() |
Map<NodeId,T> |
getCodecsByEncodingId() |
QualifiedName |
getEncodingName() |
String |
getNamespaceUri() |
void |
registerEnumCodec(T codec,
String description)
Register a
DataTypeCodec that serializes an enumeration with this dictionary. |
void |
registerEnumCodec(T codec,
String description,
NodeId dataTypeId)
Register a
DataTypeCodec that serializes an enumeration with this dictionary. |
void |
registerStructCodec(T codec,
String description,
NodeId dataTypeId,
NodeId encodingId)
Register a
DataTypeCodec that serializes a structure with this dictionary. |
String getNamespaceUri()
DataTypeDictionary belongs to.QualifiedName getEncodingName()
void registerEnumCodec(T codec, String description)
DataTypeCodec that serializes an enumeration with this dictionary.codec - the codec to register.description - the value of the DataTypeDescription Node that identifies codec in the dictionary.void registerEnumCodec(T codec, String description, NodeId dataTypeId)
DataTypeCodec that serializes an enumeration with this dictionary.codec - the codec to register.description - the value of the DataTypeDescription Node that identifies codec in the dictionary.dataTypeId - the NodeId of the DataType Node for the DataType serialized by codec.void registerStructCodec(T codec, String description, NodeId dataTypeId, NodeId encodingId)
DataTypeCodec that serializes a structure with this dictionary.codec - the codec to register.description - the value of the DataTypeDescription Node that identifies codec in the dictionary.dataTypeId - the NodeId of the DataType Node for the DataType serialized by codec.encodingId - the NodeId of the appropriate DataTypeEncoding Node for the DataType serialized
by codec.T getCodec(String description)
DataTypeCodec registered with this dictionary.description - the value of the DataTypeDescription that identifies the codec in the dictionary.DataTypeCodec for description, or null if none is found.T getCodec(NodeId dataTypeId)
DataTypeCodec registered with this dictionary.dataTypeId - the NodeId of the DataType Node for the DataType serialized by the codec.DataTypeCodec for dataTypeId, or null if none is found.Map<String,T> getCodecsByDescription()
Map<NodeId,T> getCodecsByEncodingId()
Map<NodeId,T> getCodecsByDataTypeId()
@Nullable default T getCodecByDescription(String description)
description - the codec description.DataTypeCodec registered for description, or null if there isn't one.@Nullable default T getCodecByEncodingId(NodeId nodeId)
nodeId - the codec encoding NodeId.DataTypeCodec registered for nodeId, or null if there isn't one.@Nullable default T getCodecByDataTypeId(NodeId dataTypeId)
dataTypeId - the codec datatype NodeId.DataTypeCodec registered for dataTypeId, or null if there isn't one.Copyright © 2025. All rights reserved.