C# Class Monobjc.Tools.Generator.Parsers.Sgml.Group

Defines a group of elements nested within another element.
Afficher le fichier Open project: Monobjc/monobjc-tools Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

AddGroup() public méthode

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.
Résultat void

AddOccurrence() public méthode

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

AddSymbol() public méthode

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

CanContain() public méthode

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.
Résultat bool

Group() public méthode

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