C# Класс Monobjc.Tools.Generator.Parsers.Sgml.Group

Defines a group of elements nested within another element.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddConnector() публичный Метод

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.
Результат void

AddGroup() публичный Метод

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.
Результат void

AddOccurrence() публичный Метод

Adds an occurrence character for this group, setting it's Occurrence value.
public AddOccurrence ( char c ) : void
c char The occurrence character.
Результат void

AddSymbol() публичный Метод

Adds a new symbol to the group's members.
public AddSymbol ( string sym ) : void
sym string The symbol to add.
Результат void

CanContain() публичный Метод

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.
Результат bool

Group() публичный Метод

Initialises a new Content Model Group.
public Group ( Group parent ) : System
parent Group The parent model group.
Результат System