예제 #1
0
 private bool IsNamespaceSubsetOf(XmlQualifiedNameTest other)
 {
     return(other.IsNamespaceWildcard ||
            (exclude == other.exclude && Namespace == other.Namespace) ||
            (other.exclude && !exclude && Namespace != other.Namespace));
 }
예제 #2
0
 /// <summary>
 /// Return true if the result of intersection with other is not empty
 /// </summary>
 public bool HasIntersection(XmlQualifiedNameTest other)
 {
     return((IsNamespaceSubsetOf(other) || other.IsNamespaceSubsetOf(this)) &&
            (IsNameSubsetOf(other) || other.IsNameSubsetOf(this)));
 }
예제 #3
0
 private bool IsNameSubsetOf(XmlQualifiedNameTest other)
 {
     return(other.IsNameWildcard || Name == other.Name);
 }
예제 #4
0
 /// <summary>
 /// True if this matches every QName other does
 /// </summary>
 public bool IsSubsetOf(XmlQualifiedNameTest other)
 {
     return(IsNameSubsetOf(other) && IsNamespaceSubsetOf(other));
 }