C# Класс Sgml.ContentModel

Defines the content model for an element.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddConnector ( char c ) : void

Adds a connector onto the member list for the current group.

AddOccurrence ( char c ) : void

Adds an occurrence character for the current model group, setting it's Occurrence value.

AddSymbol ( string sym ) : void

Adds a new symbol to the current group's members.

CanContain ( string name, SgmlDtd dtd ) : bool

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

ContentModel ( ) : System

Initialises a new instance of the ContentModel class.

PopGroup ( ) : int

Finishes processing of a nested model group.

PushGroup ( ) : void

Begins processing of a nested model group.

SetDeclaredContent ( string dc ) : void

Sets the contained content for the content model.

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

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

Adds a connector onto the member list for the current group.
/// 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

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

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

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

Adds a new symbol to the current 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.
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

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

Initialises a new instance of the ContentModel class.
public ContentModel ( ) : System
Результат System

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

Finishes processing of a nested model group.
public PopGroup ( ) : int
Результат int

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

Begins processing of a nested model group.
public PushGroup ( ) : void
Результат void

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

Sets the contained content for the content model.
public SetDeclaredContent ( string dc ) : void
dc string The text specified the permissible declared child content.
Результат void