SaaS CMS has officially launched! Learn more now.

Class SchemaDocument

Represents schema document.

Inheritance
System.Object
SchemaDocument
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.BusinessFoundation.Data.Meta.Schema
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 11.8.3
Syntax
public class SchemaDocument

Constructors

SchemaDocument()

Initializes a new instance of the SchemaDocument class.

Declaration
public SchemaDocument()

Properties

ChildElements

Gets the child elements.

Declaration
public SchemaElementCollection ChildElements { get; }
Property Value
Type Description
SchemaElementCollection

The child elements.

Exceptions

Gets or sets the exceptions.

Declaration
public List<IgnoreElement> Exceptions { get; set; }
Property Value
Type Description
System.Collections.Generic.List<IgnoreElement>

The exceptions.

Item[Int32]

Gets the SchemaElement at the specified index.

Declaration
public SchemaElement this[int index] { get; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
SchemaElement

Item[String]

Gets the SchemaElement with the specified name.

Declaration
public SchemaElement this[string elementId] { get; }
Parameters
Type Name Description
System.String elementId
Property Value
Type Description
SchemaElement

Methods

CheckIgnoreElements(String, String[], String)

Checks the ignore elements.

Declaration
public bool CheckIgnoreElements(string elementId, string[] parentKeys, string name)
Parameters
Type Name Description
System.String elementId

The element id.

System.String[] parentKeys

The parent keys.

System.String name

The name.

Returns
Type Description
System.Boolean

true if element is matched ignore element, otherwise false.

FindElement(String)

Finds the element.

Declaration
public SchemaElement FindElement(string elementId)
Parameters
Type Name Description
System.String elementId

The id of the element.

Returns
Type Description
SchemaElement

InnerFindElement(SchemaElementCollection, String)

Find the inner element.

Declaration
protected SchemaElement InnerFindElement(SchemaElementCollection childElements, string elementId)
Parameters
Type Name Description
SchemaElementCollection childElements

The child elements.

System.String elementId

The id of the element.

Returns
Type Description
SchemaElement

Load(String)

Loads the specified file.

Declaration
public void Load(string file)
Parameters
Type Name Description
System.String file

The file.

LoadDefault()

Loads the default.

Declaration
public void LoadDefault()

LoadDefault(ModuleManifest[])

Loads the default.

Declaration
public void LoadDefault(params ModuleManifest[] istalledModules)
Parameters
Type Name Description
ModuleManifest[] istalledModules

The installed modules.

LoadXml(String)

Loads the XML.

Declaration
public void LoadXml(string xml)
Parameters
Type Name Description
System.String xml

The XML.

LoadXml(XmlNode)

Loads the XML.

Declaration
public void LoadXml(XmlNode node)
Parameters
Type Name Description
System.Xml.XmlNode node

The node.