C# Class Sgml.Group

Defines a group of elements nested within another element.
Show file Open project: Synergex/Baconography Class Usage Examples

Public Methods

Method Description
AddConnector ( char c ) : void

Adds a connector onto the member list.

AddGroup ( Group g ) : void

Adds a new child model group to the end of the group's members.

AddOccurrence ( char c ) : void

Adds an occurrence character for this group, setting it's Occurrence value.

AddSymbol ( string sym ) : void

Adds a new symbol to the group's members.

CanContain ( string name, SgmlDtd dtd ) : bool

Checks whether an element using this group can contain a specified element.

Rough approximation - this is really assuming an "Or" group

Group ( Group parent ) : System

Initialises a new Content Model Group.

Method Details

AddConnector() public method

Adds a connector onto the member list.
/// If the content is not mixed and has no members yet, or if the group type has been set and the /// connector does not match the group type. ///
public AddConnector ( char c ) : void
c char The connector character to add.
return void

AddGroup() public method

Adds a new child model group to the end of the group's members.
public AddGroup ( Group g ) : void
g Group The model group to add.
return void

AddOccurrence() public method

Adds an occurrence character for this group, setting it's Occurrence value.
public AddOccurrence ( char c ) : void
c char The occurrence character.
return void

AddSymbol() public method

Adds a new symbol to the group's members.
public AddSymbol ( string sym ) : void
sym string The symbol to add.
return void

CanContain() public method

Checks whether an element using this group can contain a specified element.
Rough approximation - this is really assuming an "Or" group
public CanContain ( string name, SgmlDtd dtd ) : bool
name string The name of the element to look for.
dtd SgmlDtd The DTD to use during the checking.
return bool

Group() public method

Initialises a new Content Model Group.
public Group ( Group parent ) : System
parent Group The parent model group.
return System