Interface IMetaDataSerializer
The interface of the metadata schema serializer.
Inherited Members
Namespace: Terrasoft.Core
Assembly: Terrasoft.Core.dll
Syntax
public interface IMetaDataSerializer : IDisposable
Methods
Deserialize(Stream)
Deserializes the metadata of the schema list in a input
stream.
Declaration
IEnumerable<ISchemaManagerItem> Deserialize(Stream input)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | input | Stream. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISchemaManagerItem> | List of deserialized elements of the schema manager. |
Deserialize(TextReader)
Deserializes the metadata of the schema list using a input
.
Declaration
IEnumerable<ISchemaManagerItem> Deserialize(TextReader input)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | input | The System.IO.TextReader instance used for deserialization. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISchemaManagerItem> | List of deserialized elements of the schema manager. |
Serialize(IEnumerable<MetaSchema>, Stream)
Serializes the schemaList
metadata of the schema list in a stream
stream.
Declaration
void Serialize(IEnumerable<MetaSchema> schemaList, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<MetaSchema> | schemaList | A list of metadata schemas for serialization. |
System.IO.Stream | stream | Stream. |
Serialize(IEnumerable<MetaSchema>, TextWriter)
Serializes the schemaList
metadata of the schema list using a textWriter
.
Declaration
void Serialize(IEnumerable<MetaSchema> schemaList, TextWriter textWriter)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<MetaSchema> | schemaList | A list of metadata schemas for serialization. |
System.IO.TextWriter | textWriter | The System.IO.TextWriter instance used for serialization. |
Serialize(MetaSchema, Stream)
Serializes the schema
metadata of the schema in a stream
stream.
Declaration
void Serialize(MetaSchema schema, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
MetaSchema | schema | Metadata of the schema. |
System.IO.Stream | stream | Stream. |
Serialize(MetaSchema, TextWriter)
Serializes the schema
metadata of the schema using a textWriter
.
Declaration
void Serialize(MetaSchema schema, TextWriter textWriter)
Parameters
Type | Name | Description |
---|---|---|
MetaSchema | schema | Metadata of the schema. |
System.IO.TextWriter | textWriter | The System.IO.TextWriter instance used for serialization. |