C# Class Sgml.ElementDecl

An element declaration in a DTD.
Afficher le fichier Open project: Synergex/Baconography Class Usage Examples

Méthodes publiques

Méthode Description
AddAttDefs ( AttDef>.Dictionary list ) : void

Adds attribute definitions to the element declaration.

CanContain ( string name, SgmlDtd dtd ) : bool

Tests whether this element can contain another specified element.

ElementDecl ( string name, bool sto, bool eto, ContentModel cm, string inclusions, string exclusions ) : System

Initialises a new element declaration instance.

FindAttribute ( string name ) : AttDef

Finds the attribute definition with the specified name.

Method Details

AddAttDefs() public méthode

Adds attribute definitions to the element declaration.
public AddAttDefs ( AttDef>.Dictionary list ) : void
list AttDef>.Dictionary The list of attribute definitions to add.
Résultat void

CanContain() public méthode

Tests whether this element can contain another specified element.
public CanContain ( string name, SgmlDtd dtd ) : bool
name string The name of the element to check for.
dtd SgmlDtd The DTD to use to do the check.
Résultat bool

ElementDecl() public méthode

Initialises a new element declaration instance.
public ElementDecl ( string name, bool sto, bool eto, ContentModel cm, string inclusions, string exclusions ) : System
name string The name of the element.
sto bool Whether the start tag is optional.
eto bool Whether the end tag is optional.
cm ContentModel The of the element.
inclusions string
exclusions string
Résultat System

FindAttribute() public méthode

Finds the attribute definition with the specified name.
If the attribute list has not yet been initialised.
public FindAttribute ( string name ) : AttDef
name string The name of the to find.
Résultat AttDef