![]() |
Diffusion .NET Classic API - Core and Common
5.9.4
|
This factory class allows for the creation of message metadata for meta modelling. More...
Static Public Member Functions | |
static IMMessage | NewMetadata (string name, TopicDataType topicDataType) |
Create a new empty message node for metadata modelling. More... | |
static IMRecord | NewRecordMetadata (string name) |
This is a convenience method for creating record metadata of type TopicDataType.RECORD. More... | |
static IMField | NewFieldMetadata (MDataType dataType) |
This is a convenience method for constructing a single metadata field. More... | |
static IMField | NewCustomFieldMetadata (ICustomFieldHandler handler) |
Create a single custom metadata field. More... | |
static string | EncodeAsXml (IMNode metadata) |
Encode metadata as XML. More... | |
static string | EncodeAsXml (IMNode metadata, bool format) |
Encode metadata as XML. More... | |
static IMNode | DecodeFromXml (string xml) |
Parse metadata from XML. More... | |
This factory class allows for the creation of message metadata for meta modelling.
Metadata may be modelled for the type of topic data that it is going to represent.
Metadata modelling is not currently supported for all types of topic data.
|
static |
Parse metadata from XML.
The XML may have been created using EncodeAsXml( IMNode ).
xml | The XML document holding the metadata structure. |
|
static |
Encode metadata as XML.
Equivalent to calling EncodeAsXml( message, false ).
metadata | The metadata node to encode. |
|
static |
Encode metadata as XML.
metadata | The metadata node to encode. |
format | Requests that the XML marshaller formats the XML. |
|
static |
Create a single custom metadata field.
handler | A custom data handler instance. |
|
static |
This is a convenience method for constructing a single metadata field.
This can only be used for defined data types.
After creating such a field it can be modified, for example to specify an initial value.
dataType | The field data type. |
|
static |
Create a new empty message node for metadata modelling.
name | The message name. |
topicDataType | The data type for the metadata. The capabilities of the metadata may vary according to the data type. |
|
static |
This is a convenience method for creating record metadata of type TopicDataType.RECORD.
This can be used for simple record handling where multiple records per message are not required.
name |