5 types derived from XmlSchemaParticle
System.Private.Xml (5)
System\Xml\Schema\XmlSchemaAny.cs (1)
10
public class XmlSchemaAny :
XmlSchemaParticle
System\Xml\Schema\XmlSchemaElement.cs (1)
11
public class XmlSchemaElement :
XmlSchemaParticle
System\Xml\Schema\XmlSchemaGroupBase.cs (1)
8
public abstract class XmlSchemaGroupBase :
XmlSchemaParticle
System\Xml\Schema\XmlSchemaGroupRef.cs (1)
8
public class XmlSchemaGroupRef :
XmlSchemaParticle
System\Xml\Schema\XmlSchemaParticle.cs (1)
163
private sealed class EmptyParticle :
XmlSchemaParticle
244 references to XmlSchemaParticle
netstandard (1)
netstandard.cs (1)
2354
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaParticle
))]
System.Data.Common (10)
System\Data\XMLSchema.cs (10)
529
private bool IsDatasetParticle(
XmlSchemaParticle
pt)
560
if (el is
XmlSchemaParticle
)
562
if (!IsDatasetParticle((
XmlSchemaParticle
)el))
622
XmlSchemaParticle
? particle = GetParticle(ct);
873
internal static XmlSchemaObjectCollection? GetParticleItems(
XmlSchemaParticle
? pt)
898
internal void HandleParticle(
XmlSchemaParticle
pt, DataTable table, ArrayList tableChildren, bool isBase)
980
HandleParticle((
XmlSchemaParticle
)item, table, tableChildren, isBase);
1143
internal static
XmlSchemaParticle
? GetParticle(XmlSchemaComplexType ct)
2681
if (((
XmlSchemaParticle
)el).MaxOccurs > decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir
2682
((XmlSchemaElement)choiceEl).MaxOccurs = ((
XmlSchemaParticle
)el).MaxOccurs;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
622
private DataContract? ImportType(XmlQualifiedName typeName,
XmlSchemaParticle
? rootParticle, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute? anyAttribute, XmlQualifiedName? baseTypeName, XmlSchemaAnnotation? annotation)
System.Private.Xml (230)
System\Xml\Schema\ContentValidator.cs (15)
1007
public static void AddParticleToExpected(
XmlSchemaParticle
p, XmlSchemaSet schemaSet, ArrayList particles)
1012
public static void AddParticleToExpected(
XmlSchemaParticle
p, XmlSchemaSet schemaSet, ArrayList particles, bool global)
1629
XmlSchemaParticle
? p = (
XmlSchemaParticle
?)_symbols.GetParticle(i);
1663
XmlSchemaParticle
? p = (
XmlSchemaParticle
?)_symbols.GetParticle(i);
1778
XmlSchemaParticle
? p = (
XmlSchemaParticle
?)_positions[pos].particle;
1805
XmlSchemaParticle
? p = (
XmlSchemaParticle
?)_positions[pos].particle;
2055
XmlSchemaParticle
? p = _positions[pos].particle as
XmlSchemaParticle
;
2097
XmlSchemaParticle
? p = _positions[pos].particle as
XmlSchemaParticle
;
2216
AddParticleToExpected((_particles[element.Value] as
XmlSchemaParticle
)!, schemaSet, expectedParticles);
System\Xml\Schema\Inference\Infer.cs (3)
1086
XmlSchemaParticle
? particle = xss.Items[iSeqItem] as
XmlSchemaParticle
;
1116
particle = xss.Items[iSeqItem] as
XmlSchemaParticle
;
System\Xml\Schema\Preprocessor.cs (3)
1905
private void PreprocessParticle(
XmlSchemaParticle
particle)
1953
PreprocessParticle((
XmlSchemaParticle
)items[i]);
1970
PreprocessParticle((
XmlSchemaParticle
)items[i]);
System\Xml\Schema\SchemaCollectionCompiler.cs (79)
369
complexType.SetContentTypeParticle(
XmlSchemaParticle
.Empty);
417
private static void CleanupParticle(
XmlSchemaParticle
particle)
428
CleanupParticle((
XmlSchemaParticle
)particles[i]);
508
group.CanonicalParticle =
XmlSchemaParticle
.Empty;
957
XmlSchemaParticle
baseParticle = baseType.ContentTypeParticle;
958
XmlSchemaParticle
extendedParticle = CanonicalizeParticle(complexExtension.Particle, true, true);
959
if (baseParticle !=
XmlSchemaParticle
.Empty)
961
if (extendedParticle !=
XmlSchemaParticle
.Empty)
1053
private
XmlSchemaParticle
CompileContentTypeParticle(
XmlSchemaParticle
? particle, bool substitution)
1055
XmlSchemaParticle
ctp = CanonicalizeParticle(particle, true, substitution);
1063
return
XmlSchemaParticle
.Empty;
1068
private
XmlSchemaParticle
CanonicalizeParticle(
XmlSchemaParticle
? particle, bool root, bool substitution)
1072
return
XmlSchemaParticle
.Empty;
1100
private
XmlSchemaParticle
CanonicalizeElement(XmlSchemaElement element, bool substitution)
1123
private
XmlSchemaParticle
CanonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root)
1137
return
XmlSchemaParticle
.Empty;
1143
if (group.CanonicalParticle ==
XmlSchemaParticle
.Empty)
1145
return
XmlSchemaParticle
.Empty;
1153
return
XmlSchemaParticle
.Empty;
1158
return
XmlSchemaParticle
.Empty;
1167
return
XmlSchemaParticle
.Empty;
1178
groupRefBase.Items.Add((
XmlSchemaParticle
)groupBase.Items[i]);
1184
private
XmlSchemaParticle
CanonicalizeAll(XmlSchemaAll all, bool root, bool substitution)
1196
XmlSchemaParticle
p = CanonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution);
1197
if (p !=
XmlSchemaParticle
.Empty)
1206
return
XmlSchemaParticle
.Empty;
1213
newSequence.Items.Add((
XmlSchemaParticle
)all.Items[0]);
1218
return (
XmlSchemaParticle
)all.Items[0];
1223
return
XmlSchemaParticle
.Empty;
1231
private
XmlSchemaParticle
CanonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution)
1241
XmlSchemaParticle
p1 = CanonicalizeParticle((
XmlSchemaParticle
)choice.Items[i], false, substitution);
1242
if (p1 !=
XmlSchemaParticle
.Empty)
1266
return
XmlSchemaParticle
.Empty;
1270
return (
XmlSchemaParticle
)choice.Items[0];
1278
private
XmlSchemaParticle
CanonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution)
1287
XmlSchemaParticle
p1 = CanonicalizeParticle((
XmlSchemaParticle
)sequence.Items[i], false, substitution);
1288
if (p1 !=
XmlSchemaParticle
.Empty)
1308
return
XmlSchemaParticle
.Empty;
1312
return (
XmlSchemaParticle
)sequence.Items[0];
1320
private bool IsValidRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1326
else if (derivedParticle == null || derivedParticle ==
XmlSchemaParticle
.Empty)
1330
else if (baseParticle == null || baseParticle ==
XmlSchemaParticle
.Empty)
1446
if (!IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[i], baseAny))
1461
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1495
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1496
if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[count], baseParticle))
1521
int i = GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[j], baseAll.Items);
1540
if (!map[i] && !IsParticleEmptiable((
XmlSchemaParticle
)baseAll.Items[i]))
1558
if (GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[i], baseChoice.Items) < 0)
1569
XmlSchemaParticle
p = (
XmlSchemaParticle
)sequence.Items[i];
1588
private static bool IsValidOccurrenceRangeRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1598
private int GetMappingParticle(
XmlSchemaParticle
particle, XmlSchemaObjectCollection collection)
1602
if (IsValidRestriction(particle, (
XmlSchemaParticle
)collection[i]))
1608
private static bool IsParticleEmptiable(
XmlSchemaParticle
particle)
1615
private static void CalculateEffectiveTotalRange(
XmlSchemaParticle
particle, out decimal minOccurs, out decimal maxOccurs)
1636
CalculateEffectiveTotalRange((
XmlSchemaParticle
)choice.Items[i], out min, out max);
1670
CalculateEffectiveTotalRange((
XmlSchemaParticle
)collection[i], out min, out max);
1697
private static XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent? complexContent,
XmlSchemaParticle
particle)
2353
XmlSchemaParticle
particle = complexType.ContentTypeParticle;
2354
if (particle == null || particle ==
XmlSchemaParticle
.Empty)
2423
private static string DumpContentModel(
XmlSchemaParticle
particle)
2430
private static void DumpContentModelTo(StringBuilder sb,
XmlSchemaParticle
particle)
2480
DumpContentModelTo(sb, (
XmlSchemaParticle
)gb.Items[i]);
2486
Debug.Assert(particle ==
XmlSchemaParticle
.Empty);
2512
private static void BuildParticleContentModel(ParticleContentValidator contentValidator,
XmlSchemaParticle
particle)
2530
XmlSchemaParticle
p = (
XmlSchemaParticle
)particles[i];
2574
private void CompileParticleElements(XmlSchemaComplexType complexType,
XmlSchemaParticle
particle)
2597
CompileParticleElements(complexType, (
XmlSchemaParticle
)particles[i]);
2611
if (complexType.ContentTypeParticle !=
XmlSchemaParticle
.Empty)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
1573
private void PreprocessParticle(
XmlSchemaParticle
particle)
1621
PreprocessParticle((
XmlSchemaParticle
)choices[i]);
1638
PreprocessParticle((
XmlSchemaParticle
)sequences[i]);
System\Xml\Schema\SchemaSetCompiler.cs (82)
358
complexType.SetContentTypeParticle(
XmlSchemaParticle
.Empty);
428
private void CleanupParticle(
XmlSchemaParticle
? particle)
442
CleanupParticle((
XmlSchemaParticle
)groupBase.Items[i]);
590
group.CanonicalParticle =
XmlSchemaParticle
.Empty;
1033
XmlSchemaParticle
baseParticle = baseType.ContentTypeParticle;
1034
XmlSchemaParticle
extendedParticle = CanonicalizeParticle(complexExtension.Particle, true);
1035
if (baseParticle !=
XmlSchemaParticle
.Empty)
1037
if (extendedParticle !=
XmlSchemaParticle
.Empty)
1131
XmlSchemaParticle
derivedParticle = CanonicalizePointlessRoot(complexType.ContentTypeParticle);
1132
XmlSchemaParticle
baseParticle = CanonicalizePointlessRoot(baseType.ContentTypeParticle);
1164
private void CheckParticleDerivation(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1182
private
XmlSchemaParticle
CompileContentTypeParticle(
XmlSchemaParticle
? particle)
1184
XmlSchemaParticle
ctp = CanonicalizeParticle(particle, true);
1192
return
XmlSchemaParticle
.Empty;
1198
private
XmlSchemaParticle
CanonicalizeParticle(
XmlSchemaParticle
? particle, bool root)
1202
return
XmlSchemaParticle
.Empty;
1231
private
XmlSchemaParticle
CanonicalizeElement(XmlSchemaElement element)
1259
private
XmlSchemaParticle
CanonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root)
1274
return
XmlSchemaParticle
.Empty;
1282
if (group.CanonicalParticle ==
XmlSchemaParticle
.Empty)
1284
return
XmlSchemaParticle
.Empty;
1293
return
XmlSchemaParticle
.Empty;
1299
return
XmlSchemaParticle
.Empty;
1309
return
XmlSchemaParticle
.Empty;
1330
private
XmlSchemaParticle
CanonicalizeAll(XmlSchemaAll all, bool root)
1340
XmlSchemaParticle
p = CanonicalizeParticle((XmlSchemaElement)all.Items[i], false);
1341
if (p !=
XmlSchemaParticle
.Empty)
1350
return
XmlSchemaParticle
.Empty;
1355
return
XmlSchemaParticle
.Empty;
1363
private
XmlSchemaParticle
CanonicalizeChoice(XmlSchemaChoice choice, bool root)
1374
XmlSchemaParticle
p1 = CanonicalizeParticle((
XmlSchemaParticle
)choice.Items[i], false);
1375
if (p1 !=
XmlSchemaParticle
.Empty)
1399
return
XmlSchemaParticle
.Empty;
1403
return (
XmlSchemaParticle
)choice.Items[0];
1411
private
XmlSchemaParticle
CanonicalizeSequence(XmlSchemaSequence sequence, bool root)
1421
XmlSchemaParticle
p1 = CanonicalizeParticle((
XmlSchemaParticle
)sequence.Items[i], false);
1422
if (p1 !=
XmlSchemaParticle
.Empty)
1442
return
XmlSchemaParticle
.Empty;
1446
return (
XmlSchemaParticle
)sequence.Items[0];
1455
private static
XmlSchemaParticle
? CanonicalizePointlessRoot(
XmlSchemaParticle
particle)
1475
return (
XmlSchemaParticle
)items[0];
1488
return (
XmlSchemaParticle
)items[0];
1493
return
XmlSchemaParticle
.Empty;
1505
return (
XmlSchemaParticle
)items[0];
1513
private bool IsValidRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1519
else if (derivedParticle == null || derivedParticle ==
XmlSchemaParticle
.Empty)
1523
else if (baseParticle == null || baseParticle ==
XmlSchemaParticle
.Empty)
1533
XmlSchemaParticle
newBaseParticle;
1730
if (!IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[i], baseAny))
1835
if (GetMappingParticle((
XmlSchemaParticle
)derivedChoice.Items[i], baseChoice.Items) < 0)
1858
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1860
&& IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[count], baseParticle))
1887
int i = GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[j], baseAll.Items);
1906
if (!map[i] && !IsParticleEmptiable((
XmlSchemaParticle
)baseAll.Items[i]))
1932
if (GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[i], baseChoice.Items) < 0)
1938
private static bool IsValidOccurrenceRangeRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1948
private int GetMappingParticle(
XmlSchemaParticle
particle, XmlSchemaObjectCollection collection)
1952
if (IsValidRestriction(particle, (
XmlSchemaParticle
)collection[i]))
1958
private static bool IsParticleEmptiable(
XmlSchemaParticle
particle)
1965
private static void CalculateEffectiveTotalRange(
XmlSchemaParticle
particle, out decimal minOccurs, out decimal maxOccurs)
1987
CalculateEffectiveTotalRange((
XmlSchemaParticle
)choice.Items[i], out min, out max);
2021
CalculateEffectiveTotalRange((
XmlSchemaParticle
)collection[i], out min, out max);
2048
private static XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent? complexContent,
XmlSchemaParticle
particle)
2822
XmlSchemaParticle
particle = complexType.ContentTypeParticle;
2823
if (particle == null || particle ==
XmlSchemaParticle
.Empty)
2891
private static bool BuildParticleContentModel(ParticleContentValidator contentValidator,
XmlSchemaParticle
particle)
2912
Debug.Assert(!((
XmlSchemaParticle
)particles[i]).IsEmpty);
2925
hasWildCard = BuildParticleContentModel(contentValidator, (
XmlSchemaParticle
)particles[i]);
2956
private void CompileParticleElements(XmlSchemaComplexType complexType,
XmlSchemaParticle
particle)
2979
CompileParticleElements(complexType, (
XmlSchemaParticle
)particles[i]);
2984
private void CompileParticleElements(
XmlSchemaParticle
particle)
2995
CompileParticleElements((
XmlSchemaParticle
)particles[i]);
3010
if (complexType.ContentTypeParticle !=
XmlSchemaParticle
.Empty)
System\Xml\Schema\XmlSchemaComplexContentExtension.cs (2)
11
private
XmlSchemaParticle
? _particle;
27
public
XmlSchemaParticle
? Particle
System\Xml\Schema\XmlSchemaComplexContentRestriction.cs (2)
11
private
XmlSchemaParticle
? _particle;
27
public
XmlSchemaParticle
? Particle
System\Xml\Schema\XmlSchemaComplexType.cs (14)
19
private
XmlSchemaParticle
? _particle;
23
private
XmlSchemaParticle
_contentTypeParticle =
XmlSchemaParticle
.Empty;
183
public
XmlSchemaParticle
? Particle
209
public
XmlSchemaParticle
ContentTypeParticle
234
internal void SetContentTypeParticle(
XmlSchemaParticle
value)
405
_contentTypeParticle =
XmlSchemaParticle
.Empty;
449
XmlSchemaParticle
p = (
XmlSchemaParticle
)groupBaseParticles[i];
456
internal static
XmlSchemaParticle
? CloneParticle(
XmlSchemaParticle
? particle, XmlSchema? parentSchema)
510
internal static bool HasParticleRef(
XmlSchemaParticle
? particle, XmlSchema? parentSchema)
519
XmlSchemaParticle
p = (
XmlSchemaParticle
)groupBase.Items[i++];
System\Xml\Schema\XmlSchemaGroup.cs (3)
12
private
XmlSchemaParticle
? _canonicalParticle;
40
internal
XmlSchemaParticle
? CanonicalParticle
85
newGroup._canonicalParticle =
XmlSchemaParticle
.Empty;
System\Xml\Schema\XmlSchemaParticle.cs (1)
171
internal static readonly
XmlSchemaParticle
Empty = new EmptyParticle();
System\Xml\Schema\XmlSchemaValidator.cs (12)
928
public
XmlSchemaParticle
[] GetExpectedParticles()
937
return new
XmlSchemaParticle
[1] { element };
940
return Array.Empty<
XmlSchemaParticle
>();
965
return Array.Empty<
XmlSchemaParticle
>();
968
static
XmlSchemaParticle
[] ToArray(ArrayList expected)
970
return (expected.ToArray(typeof(
XmlSchemaParticle
)) as
XmlSchemaParticle
[])!;
2612
XmlSchemaParticle
? currentParticle;
2613
XmlSchemaParticle
? nextParticle = null;
2620
nextParticle = expected[0] as
XmlSchemaParticle
;
2626
currentParticle = (expected[i - 1] as
XmlSchemaParticle
)!;
2627
nextParticle = (expected[i] as
XmlSchemaParticle
)!;
System\Xml\Schema\XsdBuilder.cs (4)
658
private
XmlSchemaParticle
? _particle;
2381
private void AddParticle(
XmlSchemaParticle
particle)
2454
private void SetMinOccurs(
XmlSchemaParticle
particle, string value)
2466
private void SetMaxOccurs(
XmlSchemaParticle
particle, string value)
System\Xml\Serialization\ImportContext.cs (1)
266
XmlSchemaParticle
? particle = null;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
715
XmlSchemaParticle
? particle = null;
915
private bool GatherGroupChoices(
XmlSchemaParticle
? particle, NameTable choiceElements, string identifier, string? ns, ref bool needExplicitOrder, bool allowDuplicates)
940
if (GatherGroupChoices((
XmlSchemaParticle
)item, choiceElements, identifier, ns, ref needExplicitOrder, allowDuplicates))
1017
private void ImportGroupMembers(
XmlSchemaParticle
? particle, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string? ns, bool groupRepeats, ref bool mixed, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements)
1050
else if (item is
XmlSchemaParticle
)
1052
ImportGroupMembers((
XmlSchemaParticle
)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref mixed, ref needExplicitOrder, allowDuplicates, true);
System.Xml (1)
System.Xml.cs (1)
79
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaParticle
))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
78
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.
XmlSchemaParticle
))]