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. |
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 |
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 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()
Copyright © 2020. All rights reserved.