Interface ISchemaElementHandler

Defines the contract that Mediachase.BusinessFoundation.Data implements to work with Schema elements.

Namespace: Mediachase.BusinessFoundation.Data.Meta.Schema
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 10.8.0
Syntax
public interface ISchemaElementHandler

Methods

AfterWriteElements(XmlWriter, String[], String)

Befores the write elements.

Declaration
void AfterWriteElements(XmlWriter writer, string[] parentKeys, string containerId)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The writer.

System.String[] parentKeys

The parent keys.

System.String containerId

Name of the container.

BeforeWriteElements(XmlWriter, String[], String)

Befores the write elements.

Declaration
void BeforeWriteElements(XmlWriter writer, string[] parentKeys, string containerId)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The writer.

System.String[] parentKeys

The parent keys.

System.String containerId

Name of the container.

ExecuteCommand(SyncCommand)

Applies the add command.

Declaration
void ExecuteCommand(SyncCommand cmd)
Parameters
Type Name Description
SyncCommand cmd

The sync command.

GetAvailableElements(String[], String, AccessLevel)

Gets the available items for specific container.

Declaration
MetaModelElement[] GetAvailableElements(string[] parentKeys, string containerId, AccessLevel outputLevel)
Parameters
Type Name Description
System.String[] parentKeys

The parent keys.

System.String containerId

Name of the container.

AccessLevel outputLevel

The output level.

Returns
Type Description
MetaModelElement[]

GetSyncCommandOrderId(SyncCommand)

Gets the sync command order id.

Declaration
int GetSyncCommandOrderId(SyncCommand cmd)
Parameters
Type Name Description
SyncCommand cmd

The CMD.

Returns
Type Description
System.Int32

WriteElementProperties(XmlWriter, MetaModelElement)

Writes the element properties.

Declaration
void WriteElementProperties(XmlWriter writer, MetaModelElement element)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The writer.

MetaModelElement element

The element.

WriteEndElement(XmlWriter, MetaModelElement)

Writes the end element.

Declaration
void WriteEndElement(XmlWriter writer, MetaModelElement element)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The writer.

MetaModelElement element

The element.

WriteStartElement(XmlWriter, MetaModelElement)

Writes the start element.

Declaration
void WriteStartElement(XmlWriter writer, MetaModelElement element)
Parameters
Type Name Description
System.Xml.XmlWriter writer

The writer.

MetaModelElement element

The element.