C# Class Monobjc.Tools.Generator.Parsers.Sgml.Node

This class models an XML node, an array of elements in scope is maintained while parsing for validation purposes, and these Node objects are reused to reduce object allocation, hence the reset method.
Datei anzeigen Open project: Monobjc/monobjc-tools Class Usage Examples

Public Methods

Method Description
AddAttribute ( string name, string value, char quotechar, bool caseInsensitive ) : Attribute
CopyAttributes ( Node n ) : void
GetAttribute ( int i ) : Attribute
GetAttribute ( string name ) : int
Reset ( string name, System.Xml.XmlNodeType nt, string value ) : void

Attribute objects are reused during parsing to reduce memory allocations, hence the Reset method.

Private Methods

Method Description
RemoveAttribute ( string name ) : void

Method Details

AddAttribute() public method

public AddAttribute ( string name, string value, char quotechar, bool caseInsensitive ) : Attribute
name string
value string
quotechar char
caseInsensitive bool
return Attribute

CopyAttributes() public method

public CopyAttributes ( Node n ) : void
n Node
return void

GetAttribute() public method

public GetAttribute ( int i ) : Attribute
i int
return Attribute

GetAttribute() public method

public GetAttribute ( string name ) : int
name string
return int

Reset() public method

Attribute objects are reused during parsing to reduce memory allocations, hence the Reset method.
public Reset ( string name, System.Xml.XmlNodeType nt, string value ) : void
name string
nt System.Xml.XmlNodeType
value string
return void