C# Класс Sgml.ElementDecl

An element declaration in a DTD.
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Adds attribute definitions to the element declaration.
public AddAttDefs ( AttDef>.Dictionary list ) : void
list AttDef>.Dictionary The list of attribute definitions to add.
Результат void

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

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

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

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

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

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