Class MetaModelElement

Represents MetaModel element.

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

Constructors

MetaModelElement()

Initializes a new instance of the MetaModelElement class.

Declaration
public MetaModelElement()

MetaModelElement(String, AccessLevel, String[], String, String)

Initializes a new instance of the MetaModelElement class.

Declaration
public MetaModelElement(string owner, AccessLevel level, string[] parentKeys, string containerId, string name)
Parameters
Type Name Description
System.String owner

The owner.

AccessLevel level

The access level.

System.String[] parentKeys

The parent keys.

System.String containerId

The container id.

System.String name

The name.

MetaModelElement(String, AccessLevel, String[], String, String, String)

Initializes a new instance of the MetaModelElement class.

Declaration
public MetaModelElement(string owner, AccessLevel level, string[] parentKeys, string containerId, string name, string friendlyName)
Parameters
Type Name Description
System.String owner

The owner of the element.

AccessLevel level

The required access level.

System.String[] parentKeys

The parent keys.

System.String containerId

The container id.

System.String name

The name.

System.String friendlyName

The friendly name of the element.

MetaModelElement(String[], String, String)

Initializes a new instance of the MetaModelElement class.

Declaration
public MetaModelElement(string[] parentKeys, string containerId, string name)
Parameters
Type Name Description
System.String[] parentKeys

The parent keys.

System.String containerId

The container id.

System.String name

The name.

Fields

ParentSeparator

Declaration
public const string ParentSeparator = "/"
Field Value
Type Description
System.String

SelectAll

Declaration
public const string SelectAll = "*"
Field Value
Type Description
System.String

Separator

Declaration
public const string Separator = "::"
Field Value
Type Description
System.String

Properties

AccessLevel

Gets or sets the access level.

Declaration
public AccessLevel AccessLevel { get; set; }
Property Value
Type Description
AccessLevel

The access level.

ContainerId

Gets or sets the container.

Declaration
public string ContainerId { get; set; }
Property Value
Type Description
System.String

The container.

Creatable

Gets or sets a value indicating whether this MetaModelElement is creatable.

Declaration
public bool Creatable { get; set; }
Property Value
Type Description
System.Boolean

true if creatable; otherwise, false.

Deletable

Gets or sets a value indicating whether this MetaModelElement is deletable.

Declaration
public bool Deletable { get; set; }
Property Value
Type Description
System.Boolean

true if deletable; otherwise, false.

FriendlyName

Gets or sets the name of the friendly.

Declaration
public string FriendlyName { get; set; }
Property Value
Type Description
System.String

The name of the friendly.

Name

Gets or sets the name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name.

Owner

Gets or sets the owner.

Declaration
public string Owner { get; set; }
Property Value
Type Description
System.String

The owner.

ParentKeys

Gets or sets the parent keys.

Declaration
public string[] ParentKeys { get; set; }
Property Value
Type Description
System.String[]

The parent keys.

Retrievable

Gets or sets a value indicating whether this MetaModelElement is retrievable.

Declaration
public bool Retrievable { get; set; }
Property Value
Type Description
System.Boolean

true if retrievable; otherwise, false.

Updatable

Gets or sets a value indicating whether this MetaModelElement is updatable.

Declaration
public bool Updatable { get; set; }
Property Value
Type Description
System.Boolean

true if updatable; otherwise, false.

Methods

CreateSelectAll(String[], SchemaContainer)

Creates the select all.

Declaration
public static MetaModelElement CreateSelectAll(string[] parentKeys, SchemaContainer container)
Parameters
Type Name Description
System.String[] parentKeys

The parent keys.

SchemaContainer container

The container.

Returns
Type Description
MetaModelElement

CreateSelectAll(String[], String)

Gets the select all element string.

Declaration
public static MetaModelElement CreateSelectAll(string[] parentKeys, string containerId)
Parameters
Type Name Description
System.String[] parentKeys

The parent keys.

System.String containerId

Name of the container.

Returns
Type Description
MetaModelElement

Equals(Object)

Determines whether the specified System.Object is equal to the current System.Object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with the current System.Object.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to the current System.Object; otherwise, false.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Serves as a hash function for a particular type. System.Object.GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for the current System.Object.

Overrides
System.Object.GetHashCode()

Parse(String)

Parses the specified string.

Declaration
public static MetaModelElement Parse(string str)
Parameters
Type Name Description
System.String str

The string formated "[ContainerName]::[Name]".

Returns
Type Description
MetaModelElement

ToString()

Returns a System.String that represents the current System.Object.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current System.Object.

Overrides
System.Object.ToString()

TryParse(String, out MetaModelElement)

Tries the parse.

Declaration
public static bool TryParse(string str, out MetaModelElement element)
Parameters
Type Name Description
System.String str

The STR.

MetaModelElement element

The element.

Returns
Type Description
System.Boolean