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.
Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method 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

Method Description
AddWildcard ( string wildcard, object particle ) : void

Method Details

AddName() public method

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

AddNamespaceList() public method

public AddNamespaceList ( NamespaceList list, object particle, bool allowLocal ) : void
list NamespaceList
particle object
allowLocal bool
return void

Exists() public method

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

GetNamespaceListSymbols() public method

public GetNamespaceListSymbols ( NamespaceList list ) : ICollection
list NamespaceList
return ICollection

GetParticle() public method

Return content processing mode for the symbol
public GetParticle ( int symbol ) : object
symbol int
return object

NameOf() public method

Output symbol's name
public NameOf ( int symbol ) : string
symbol int
return string

SymbolsDictionary() public method

public SymbolsDictionary ( ) : System
return System

this() public method

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
return int