C# 클래스 Sgml.ElementDecl

An element declaration in a DTD.
파일 보기 프로젝트 열기: Synergex/Baconography 1 사용 예제들

공개 메소드들

메소드 설명
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