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: 14.26.0Syntax
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. |
writer | The writer. |
System. |
parentKeys | The parent keys. |
System. |
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. |
writer | The writer. |
System. |
parentKeys | The parent keys. |
System. |
containerId | Name of the container. |
ExecuteCommand(SyncCommand)
Applies the add command.
Declaration
void ExecuteCommand(SyncCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
Sync |
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. |
parentKeys | The parent keys. |
System. |
containerId | Name of the container. |
Access |
outputLevel | The output level. |
Returns
Type | Description |
---|---|
Meta |
GetSyncCommandOrderId(SyncCommand)
Gets the sync command order id.
Declaration
int GetSyncCommandOrderId(SyncCommand cmd)
Parameters
Type | Name | Description |
---|---|---|
Sync |
cmd | The CMD. |
Returns
Type | Description |
---|---|
System. |
WriteElementProperties(XmlWriter, MetaModelElement)
Writes the element properties.
Declaration
void WriteElementProperties(XmlWriter writer, MetaModelElement element)
Parameters
Type | Name | Description |
---|---|---|
System. |
writer | The writer. |
Meta |
element | The element. |
WriteEndElement(XmlWriter, MetaModelElement)
Writes the end element.
Declaration
void WriteEndElement(XmlWriter writer, MetaModelElement element)
Parameters
Type | Name | Description |
---|---|---|
System. |
writer | The writer. |
Meta |
element | The element. |
WriteStartElement(XmlWriter, MetaModelElement)
Writes the start element.
Declaration
void WriteStartElement(XmlWriter writer, MetaModelElement element)
Parameters
Type | Name | Description |
---|---|---|
System. |
writer | The writer. |
Meta |
element | The element. |