13 instantiations of XmlQueryCardinality
System.Data.SqlXml (13)
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
424
XmlQueryCardinality qc = new
XmlQueryCardinality
(m.Groups[1].Value);
System\Xml\Xsl\XmlQueryCardinality.cs (11)
35
get { return new
XmlQueryCardinality
(0x00); }
42
get { return new
XmlQueryCardinality
(0x01); }
49
get { return new
XmlQueryCardinality
(0x02); }
56
get { return new
XmlQueryCardinality
(0x03); }
63
get { return new
XmlQueryCardinality
(0x04); }
70
get { return new
XmlQueryCardinality
(0x05); }
77
get { return new
XmlQueryCardinality
(0x06); }
84
get { return new
XmlQueryCardinality
(0x07); }
133
return new
XmlQueryCardinality
(left.value | right.value);
140
return new
XmlQueryCardinality
(left.value & right.value);
187
return new
XmlQueryCardinality
(this.value | (this.value >> 1) | (this.value >> 2));
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
980
XmlQueryCardinality card = new
XmlQueryCardinality
(reader);
104 references to XmlQueryCardinality
System.Data.SqlXml (104)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (4)
900
if ( ( (local1).XmlType ).Cardinality ==
XmlQueryCardinality
.Zero ) {
921
if ( ( (local1).XmlType ).Cardinality ==
XmlQueryCardinality
.Zero ) {
942
if ( ( (local1).XmlType ).Cardinality ==
XmlQueryCardinality
.Zero ) {
963
if ( ( (local1).XmlType ).Cardinality ==
XmlQueryCardinality
.Zero ) {
System\Xml\Xsl\QIL\QilTypeChecker.cs (9)
404
return XmlQueryTypeFactory.PrimeProduct(xmlType, xmlType.MaybeEmpty ?
XmlQueryCardinality
.ZeroOrOne :
XmlQueryCardinality
.One);
541
XmlQueryCardinality
variableCard = node.Variable.NodeType == QilNodeType.Let ?
XmlQueryCardinality
.One : node.Variable.Binding.XmlType.Cardinality;
945
if (type.Cardinality ==
XmlQueryCardinality
.More)
946
return XmlQueryTypeFactory.PrimeProduct(type,
XmlQueryCardinality
.OneOrMore);
948
if (type.Cardinality ==
XmlQueryCardinality
.NotOne)
949
return XmlQueryTypeFactory.PrimeProduct(type,
XmlQueryCardinality
.ZeroOrMore);
984
return XmlQueryTypeFactory.AtMost(variable.Binding.XmlType,
XmlQueryCardinality
.ZeroOrOne);
System\Xml\Xsl\QIL\QilXmlReader.cs (1)
424
XmlQueryCardinality
qc = new XmlQueryCardinality(m.Groups[1].Value);
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
666
XmlQueryCardinality
card;
669
case 0: card =
XmlQueryCardinality
.Zero; break;
670
case 1: card =
XmlQueryCardinality
.One; break;
671
default: card =
XmlQueryCardinality
.More; break;
System\Xml\Xsl\XmlQueryCardinality.cs (35)
34
public static
XmlQueryCardinality
None {
41
public static
XmlQueryCardinality
Zero {
48
public static
XmlQueryCardinality
One {
55
public static
XmlQueryCardinality
ZeroOrOne {
62
public static
XmlQueryCardinality
More {
69
public static
XmlQueryCardinality
NotOne {
76
public static
XmlQueryCardinality
OneOrMore {
83
public static
XmlQueryCardinality
ZeroOrMore {
92
public bool Equals(
XmlQueryCardinality
other) {
99
public static bool operator ==(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
106
public static bool operator !=(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
114
if (other is
XmlQueryCardinality
) {
115
return Equals((
XmlQueryCardinality
)other);
132
public static
XmlQueryCardinality
operator |(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
139
public static
XmlQueryCardinality
operator &(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
146
public static
XmlQueryCardinality
operator *(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
153
public static
XmlQueryCardinality
operator +(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
169
public static bool operator <=(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
176
public static bool operator >=(
XmlQueryCardinality
left,
XmlQueryCardinality
right) {
185
public
XmlQueryCardinality
AtMost() {
197
public bool NeverSubset(
XmlQueryCardinality
other) {
204
private static readonly
XmlQueryCardinality
[,] cardinalityProduct = {
219
private static readonly
XmlQueryCardinality
[,] cardinalitySum = {
System\Xml\Xsl\XmlQueryType.cs (7)
98
public abstract
XmlQueryCardinality
Cardinality { get; }
277
get { return Cardinality <=
XmlQueryCardinality
.Zero; }
284
get { return Cardinality <=
XmlQueryCardinality
.One; }
291
get { return
XmlQueryCardinality
.Zero <= Cardinality; }
298
get { return
XmlQueryCardinality
.More <= Cardinality; }
421
if (Cardinality ==
XmlQueryCardinality
.None) {
424
else if (Cardinality ==
XmlQueryCardinality
.Zero) {
System\Xml\Xsl\XmlQueryTypeFactory.cs (43)
60
return PrimeProduct(Type(((XmlSchemaSimpleTypeList) schemaType.Content).BaseItemType, isStrict),
XmlQueryCardinality
.ZeroOrMore);
96
XmlQueryCardinality
card = types[0].Cardinality;
147
public static XmlQueryType PrimeProduct(XmlQueryType t,
XmlQueryCardinality
c) {
161
public static XmlQueryType Product(XmlQueryType t,
XmlQueryCardinality
c) {
171
public static XmlQueryType AtMost(XmlQueryType t,
XmlQueryCardinality
c) {
190
public static readonly XmlQueryType ItemS = TF.PrimeProduct(Item,
XmlQueryCardinality
.ZeroOrMore);
192
public static readonly XmlQueryType NodeS = TF.PrimeProduct(Node,
XmlQueryCardinality
.ZeroOrMore);
194
public static readonly XmlQueryType ElementS = TF.PrimeProduct(Element,
XmlQueryCardinality
.ZeroOrMore);
196
public static readonly XmlQueryType DocumentS = TF.PrimeProduct(Document,
XmlQueryCardinality
.ZeroOrMore);
198
public static readonly XmlQueryType AttributeQ = TF.PrimeProduct(Attribute,
XmlQueryCardinality
.ZeroOrOne);
199
public static readonly XmlQueryType AttributeS = TF.PrimeProduct(Attribute,
XmlQueryCardinality
.ZeroOrMore);
201
public static readonly XmlQueryType NamespaceS = TF.PrimeProduct(Namespace,
XmlQueryCardinality
.ZeroOrMore);
203
public static readonly XmlQueryType TextS = TF.PrimeProduct(Text,
XmlQueryCardinality
.ZeroOrMore);
205
public static readonly XmlQueryType CommentS = TF.PrimeProduct(Comment,
XmlQueryCardinality
.ZeroOrMore);
207
public static readonly XmlQueryType PIS = TF.PrimeProduct(PI,
XmlQueryCardinality
.ZeroOrMore);
209
public static readonly XmlQueryType DocumentOrElementQ = TF.PrimeProduct(DocumentOrElement,
XmlQueryCardinality
.ZeroOrOne);
210
public static readonly XmlQueryType DocumentOrElementS = TF.PrimeProduct(DocumentOrElement,
XmlQueryCardinality
.ZeroOrMore);
212
public static readonly XmlQueryType ContentS = TF.PrimeProduct(Content,
XmlQueryCardinality
.ZeroOrMore);
214
public static readonly XmlQueryType DocumentOrContentS = TF.PrimeProduct(DocumentOrContent,
XmlQueryCardinality
.ZeroOrMore);
216
public static readonly XmlQueryType AttributeOrContentS = TF.PrimeProduct(AttributeOrContent,
XmlQueryCardinality
.ZeroOrMore);
218
public static readonly XmlQueryType AnyAtomicTypeS = TF.PrimeProduct(AnyAtomicType,
XmlQueryCardinality
.ZeroOrMore);
221
public static readonly XmlQueryType StringXS = TF.PrimeProduct(StringX,
XmlQueryCardinality
.ZeroOrMore);
226
public static readonly XmlQueryType IntXS = TF.PrimeProduct(IntX,
XmlQueryCardinality
.ZeroOrMore);
239
public static readonly XmlQueryType UntypedNodeS = TF.PrimeProduct(UntypedNode,
XmlQueryCardinality
.ZeroOrMore);
241
public static readonly XmlQueryType NodeNotRtfQ = TF.PrimeProduct(NodeNotRtf,
XmlQueryCardinality
.ZeroOrOne);
242
public static readonly XmlQueryType NodeNotRtfS = TF.PrimeProduct(NodeNotRtf,
XmlQueryCardinality
.ZeroOrMore);
243
public static readonly XmlQueryType NodeSDod = TF.PrimeProduct(NodeNotRtf,
XmlQueryCardinality
.ZeroOrMore);
609
public override
XmlQueryCardinality
Cardinality {
610
get { return
XmlQueryCardinality
.One; }
720
Debug.Assert(t.Cardinality ==
XmlQueryCardinality
.One, "ChoiceType member types must be prime types.");
864
public override
XmlQueryCardinality
Cardinality {
865
get { return TypeCode == XmlTypeCode.None ?
XmlQueryCardinality
.None :
XmlQueryCardinality
.One; }
915
public static readonly XmlQueryType Zero = new SequenceType(ChoiceType.None,
XmlQueryCardinality
.Zero);
918
private
XmlQueryCardinality
card;
924
public static XmlQueryType Create(XmlQueryType prime,
XmlQueryCardinality
card) {
930
return
XmlQueryCardinality
.Zero <= card ? Zero : None;
935
if (card ==
XmlQueryCardinality
.None) {
938
else if (card ==
XmlQueryCardinality
.Zero) {
941
else if (card ==
XmlQueryCardinality
.One) {
951
private SequenceType(XmlQueryType prime,
XmlQueryCardinality
card) {
980
XmlQueryCardinality
card = new XmlQueryCardinality(reader);
1047
public override
XmlQueryCardinality
Cardinality {
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2358
if (nsVar.XmlType.Cardinality ==
XmlQueryCardinality
.One) {