C# Class Sgml.ContentModel

Defines the content model for an 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 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.

Method Details

AddConnector() public method

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.
return void

AddOccurrence() public method

Adds an occurrence character for the current model 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 current 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.
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

ContentModel() public method

Initialises a new instance of the ContentModel class.
public ContentModel ( ) : System
return System

PopGroup() public method

Finishes processing of a nested model group.
public PopGroup ( ) : int
return int

PushGroup() public method

Begins processing of a nested model group.
public PushGroup ( ) : void
return void

SetDeclaredContent() public method

Sets the contained content for the content model.
public SetDeclaredContent ( string dc ) : void
dc string The text specified the permissible declared child content.
return void