C# Class System.Xml.Xsl.XmlQualifiedNameTest

XmlQualifiedName extends XmlQualifiedName to support wildcards and adds nametest functionality Following are the examples: {A}:B XmlQualifiedNameTest.New("B", "A") Match QName with namespace A and local name B * XmlQualifiedNameTest.New(null, null) Match any QName {A}:* XmlQualifiedNameTest.New(null, "A") Match QName with namespace A and any local name XmlQualifiedNameTest.New("A", false) *:B XmlQualifiedNameTest.New("B", null) Match QName with any namespace and local name B ~{A}:* XmlQualifiedNameTest.New("B", "A") Match QName with namespace not A and any local name {~A}:B only as a result of the intersection Match QName with namespace not A and local name B
Inheritance: System.Xml.XmlQualifiedName
Exibir arquivo Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
HasIntersection ( XmlQualifiedNameTest other ) : bool

Return true if the result of intersection with other is not empty

IsSubsetOf ( XmlQualifiedNameTest other ) : bool

True if this matches every QName other does

New ( string name, string ns ) : XmlQualifiedNameTest

Construct new from name and namespace. Returns singleton Wildcard in case full wildcard

ToString ( ) : string

String representation

Private Methods

Method Description
IsNameSubsetOf ( XmlQualifiedNameTest other ) : bool
IsNamespaceSubsetOf ( XmlQualifiedNameTest other ) : bool
XmlQualifiedNameTest ( string name, string ns, bool exclude ) : System

Constructor

Method Details

HasIntersection() public method

Return true if the result of intersection with other is not empty
public HasIntersection ( XmlQualifiedNameTest other ) : bool
other XmlQualifiedNameTest
return bool

IsSubsetOf() public method

True if this matches every QName other does
public IsSubsetOf ( XmlQualifiedNameTest other ) : bool
other XmlQualifiedNameTest
return bool

New() public static method

Construct new from name and namespace. Returns singleton Wildcard in case full wildcard
public static New ( string name, string ns ) : XmlQualifiedNameTest
name string
ns string
return XmlQualifiedNameTest

ToString() public method

String representation
public ToString ( ) : string
return string