C# Class System.Xml.Schema.SymbolsDictionary

SymbolsDictionary is a map between names that ContextValidator recognizes and symbols - int symbol[XmlQualifiedName name]. There are two types of name - full names and wildcards (namespace is specified, local name is anythig). Wildcard excludes all full names that would match by the namespace part. SymbolsDictionry alwas recognizes all the symbols - the last one is a true wildcard - both name and namespace can be anything that none of the other symbols matched.
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Méthodes publiques

Méthode Description
AddName ( XmlQualifiedName name, object particle ) : int

Add name and return it's number

AddNamespaceList ( NamespaceList list, object particle, bool allowLocal ) : void
Exists ( XmlQualifiedName name ) : bool

Check if a name exists in the symbol dictionary

GetNamespaceListSymbols ( NamespaceList list ) : ICollection
GetParticle ( int symbol ) : object

Return content processing mode for the symbol

NameOf ( int symbol ) : string

Output symbol's name

SymbolsDictionary ( ) : System
this ( XmlQualifiedName name ) : int

Find the symbol for the given name. If neither names nor wilcards match it last (*.*) symbol will be returned

Private Methods

Méthode Description
AddWildcard ( string wildcard, object particle ) : void

Method Details

AddName() public méthode

Add name and return it's number
public AddName ( XmlQualifiedName name, object particle ) : int
name XmlQualifiedName
particle object
Résultat int

AddNamespaceList() public méthode

public AddNamespaceList ( NamespaceList list, object particle, bool allowLocal ) : void
list NamespaceList
particle object
allowLocal bool
Résultat void

Exists() public méthode

Check if a name exists in the symbol dictionary
public Exists ( XmlQualifiedName name ) : bool
name XmlQualifiedName
Résultat bool

GetNamespaceListSymbols() public méthode

public GetNamespaceListSymbols ( NamespaceList list ) : ICollection
list NamespaceList
Résultat ICollection

GetParticle() public méthode

Return content processing mode for the symbol
public GetParticle ( int symbol ) : object
symbol int
Résultat object

NameOf() public méthode

Output symbol's name
public NameOf ( int symbol ) : string
symbol int
Résultat string

SymbolsDictionary() public méthode

public SymbolsDictionary ( ) : System
Résultat System

this() public méthode

Find the symbol for the given name. If neither names nor wilcards match it last (*.*) symbol will be returned
public this ( XmlQualifiedName name ) : int
name XmlQualifiedName
Résultat int