C# Class EmberLib.Glow.GlowMatrixBase

Base class for the EmberPlus-Glow.Matrix and EmberPlus-Glow.QualifiedMatrix types.
Inheritance: GlowContentElement
Datei anzeigen Open project: Lawo/ember-plus Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
CompliesWithSchema ( string schemaIdentifier ) : bool

Tests if the matrix complies with the schema with the passed schema identifier.

EnsureConnections ( ) : EmberSequence

Ensures that the "connections" field is present, creating a new EmberSequence and assigning it to the "connections" field if necessary.

EnsureLabels ( ) : EmberSequence

Ensures that the "contents.labels" field is present, creating a new EmberSequence and assigning it to the "contents.labels" field if necessary.

EnsureSources ( ) : EmberSequence

Ensures that the "sources" field is present, creating a new EmberSequence and assigning it to the "sources" field if necessary.

EnsureTargets ( ) : EmberSequence

Ensures that the "targets" field is present, creating a new EmberSequence and assigning it to the "targets" field if necessary.

Protected Methods

Method Description
GlowMatrixBase ( BerTag tag, uint type ) : System

Creates a new instance of GlowMatrix.

ValidateAfterDecodeOverride ( string &message ) : bool

Override this in application-defined node types to provide validation. Called when a node has been decoded. Overriden to validate Identifier.

Method Details

CompliesWithSchema() public method

Tests if the matrix complies with the schema with the passed schema identifier.
public CompliesWithSchema ( string schemaIdentifier ) : bool
schemaIdentifier string The identifier of the schema to test for.
return bool

EnsureConnections() public method

Ensures that the "connections" field is present, creating a new EmberSequence and assigning it to the "connections" field if necessary.
public EnsureConnections ( ) : EmberSequence
return EmberSequence

EnsureLabels() public method

Ensures that the "contents.labels" field is present, creating a new EmberSequence and assigning it to the "contents.labels" field if necessary.
public EnsureLabels ( ) : EmberSequence
return EmberSequence

EnsureSources() public method

Ensures that the "sources" field is present, creating a new EmberSequence and assigning it to the "sources" field if necessary.
public EnsureSources ( ) : EmberSequence
return EmberSequence

EnsureTargets() public method

Ensures that the "targets" field is present, creating a new EmberSequence and assigning it to the "targets" field if necessary.
public EnsureTargets ( ) : EmberSequence
return EmberSequence

GlowMatrixBase() protected method

Creates a new instance of GlowMatrix.
protected GlowMatrixBase ( BerTag tag, uint type ) : System
tag BerTag Either a specific tag or null when the node /// is to be inserted into a GlowElementCollection. The tag will be /// set to GlowTags.CollectionItem if the passed tag is null.
type uint ber type of the represented glow type
return System

ValidateAfterDecodeOverride() protected method

Override this in application-defined node types to provide validation. Called when a node has been decoded. Overriden to validate Identifier.
protected ValidateAfterDecodeOverride ( string &message ) : bool
message string When returning false, set this to a string describing the kind of error.
return bool