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.
Afficher le fichier Open project: Monobjc/monobjc-tools Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
RemoveAttribute ( string name ) : void

Method Details

AddAttribute() public méthode

public AddAttribute ( string name, string value, char quotechar, bool caseInsensitive ) : Attribute
name string
value string
quotechar char
caseInsensitive bool
Résultat Attribute

CopyAttributes() public méthode

public CopyAttributes ( Node n ) : void
n Node
Résultat void

GetAttribute() public méthode

public GetAttribute ( int i ) : Attribute
i int
Résultat Attribute

GetAttribute() public méthode

public GetAttribute ( string name ) : int
name string
Résultat int

Reset() public méthode

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
Résultat void