5 types derived from XmlSchemaParticle
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAny.cs (1)
19
public class XmlSchemaAny :
XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaElement.cs (1)
20
public class XmlSchemaElement :
XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroupbase.cs (1)
17
public abstract class XmlSchemaGroupBase :
XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroupRef.cs (1)
17
public class XmlSchemaGroupRef :
XmlSchemaParticle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (1)
188
private class EmptyParticle :
XmlSchemaParticle
239 references to XmlSchemaParticle
dotnet-svcutil-lib (239)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (15)
1087
public static void AddParticleToExpected(
XmlSchemaParticle
p, XmlSchemaSet schemaSet, ArrayList particles)
1092
public static void AddParticleToExpected(
XmlSchemaParticle
p, XmlSchemaSet schemaSet, ArrayList particles, bool global)
1731
XmlSchemaParticle
p = (
XmlSchemaParticle
)_symbols.GetParticle(i);
1764
XmlSchemaParticle
p = (
XmlSchemaParticle
)_symbols.GetParticle(i);
1882
XmlSchemaParticle
p = (
XmlSchemaParticle
)_positions[pos].particle;
1909
XmlSchemaParticle
p = (
XmlSchemaParticle
)_positions[pos].particle;
2196
XmlSchemaParticle
p = _positions[pos].particle as
XmlSchemaParticle
;
2237
XmlSchemaParticle
p = _positions[pos].particle as
XmlSchemaParticle
;
2353
AddParticleToExpected(_particles[(int)entry.Value] as
XmlSchemaParticle
, schemaSet, expectedParticles);
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (3)
1109
XmlSchemaParticle
particle = xss.Items[iSeqItem] as
XmlSchemaParticle
;
1139
particle = xss.Items[iSeqItem] as
XmlSchemaParticle
;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
1939
private void PreprocessParticle(
XmlSchemaParticle
particle)
1987
PreprocessParticle((
XmlSchemaParticle
)items[i]);
2004
PreprocessParticle((
XmlSchemaParticle
)items[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (79)
358
complexType.SetContentTypeParticle(
XmlSchemaParticle
.Empty);
406
private static void CleanupParticle(
XmlSchemaParticle
particle)
417
CleanupParticle((
XmlSchemaParticle
)particles[i]);
495
group.CanonicalParticle =
XmlSchemaParticle
.Empty;
948
XmlSchemaParticle
baseParticle = baseType.ContentTypeParticle;
949
XmlSchemaParticle
extendedParticle = CannonicalizeParticle(complexExtension.Particle, true, true);
950
if (baseParticle !=
XmlSchemaParticle
.Empty)
952
if (extendedParticle !=
XmlSchemaParticle
.Empty)
1055
private
XmlSchemaParticle
CompileContentTypeParticle(
XmlSchemaParticle
particle, bool substitution)
1057
XmlSchemaParticle
ctp = CannonicalizeParticle(particle, true, substitution);
1065
return
XmlSchemaParticle
.Empty;
1070
private
XmlSchemaParticle
CannonicalizeParticle(
XmlSchemaParticle
particle, bool root, bool substitution)
1074
return
XmlSchemaParticle
.Empty;
1102
private
XmlSchemaParticle
CannonicalizeElement(XmlSchemaElement element, bool substitution)
1125
private
XmlSchemaParticle
CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root, bool substitution)
1139
return
XmlSchemaParticle
.Empty;
1145
if (group.CanonicalParticle ==
XmlSchemaParticle
.Empty)
1147
return
XmlSchemaParticle
.Empty;
1155
return
XmlSchemaParticle
.Empty;
1160
return
XmlSchemaParticle
.Empty;
1169
return
XmlSchemaParticle
.Empty;
1180
groupRefBase.Items.Add((
XmlSchemaParticle
)groupBase.Items[i]);
1186
private
XmlSchemaParticle
CannonicalizeAll(XmlSchemaAll all, bool root, bool substitution)
1198
XmlSchemaParticle
p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution);
1199
if (p !=
XmlSchemaParticle
.Empty)
1208
return
XmlSchemaParticle
.Empty;
1215
newSequence.Items.Add((
XmlSchemaParticle
)all.Items[0]);
1220
return (
XmlSchemaParticle
)all.Items[0];
1225
return
XmlSchemaParticle
.Empty;
1233
private
XmlSchemaParticle
CannonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution)
1243
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)choice.Items[i], false, substitution);
1244
if (p1 !=
XmlSchemaParticle
.Empty)
1268
return
XmlSchemaParticle
.Empty;
1272
return (
XmlSchemaParticle
)choice.Items[0];
1280
private
XmlSchemaParticle
CannonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution)
1289
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)sequence.Items[i], false, substitution);
1290
if (p1 !=
XmlSchemaParticle
.Empty)
1310
return
XmlSchemaParticle
.Empty;
1314
return (
XmlSchemaParticle
)sequence.Items[0];
1322
private bool IsValidRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1328
else if (derivedParticle == null || derivedParticle ==
XmlSchemaParticle
.Empty)
1332
else if (baseParticle == null || baseParticle ==
XmlSchemaParticle
.Empty)
1448
if (!IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[i], baseAny))
1463
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1497
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1498
if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[count], baseParticle))
1523
int i = GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[j], baseAll.Items);
1542
if (!map[i] && !IsParticleEmptiable((
XmlSchemaParticle
)baseAll.Items[i]))
1560
if (GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[i], baseChoice.Items) < 0)
1571
XmlSchemaParticle
p = (
XmlSchemaParticle
)sequence.Items[i];
1590
private bool IsValidOccurrenceRangeRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1600
private int GetMappingParticle(
XmlSchemaParticle
particle, XmlSchemaObjectCollection collection)
1604
if (IsValidRestriction(particle, (
XmlSchemaParticle
)collection[i]))
1610
private bool IsParticleEmptiable(
XmlSchemaParticle
particle)
1617
private void CalculateEffectiveTotalRange(
XmlSchemaParticle
particle, out decimal minOccurs, out decimal maxOccurs)
1638
CalculateEffectiveTotalRange((
XmlSchemaParticle
)choice.Items[i], out min, out max);
1672
CalculateEffectiveTotalRange((
XmlSchemaParticle
)collection[i], out min, out max);
1699
private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent,
XmlSchemaParticle
particle)
2437
XmlSchemaParticle
particle = complexType.ContentTypeParticle;
2438
if (particle == null || particle ==
XmlSchemaParticle
.Empty)
2512
private string DumpContentModel(
XmlSchemaParticle
particle)
2519
private void DumpContentModelTo(StringBuilder sb,
XmlSchemaParticle
particle)
2571
DumpContentModelTo(sb, (
XmlSchemaParticle
)gb.Items[i]);
2577
Debug.Assert(particle ==
XmlSchemaParticle
.Empty);
2603
private void BuildParticleContentModel(ParticleContentValidator contentValidator,
XmlSchemaParticle
particle)
2623
XmlSchemaParticle
p = (
XmlSchemaParticle
)particles[i];
2667
private void CompileParticleElements(XmlSchemaComplexType complexType,
XmlSchemaParticle
particle)
2691
CompileParticleElements(complexType, (
XmlSchemaParticle
)particles[i]);
2704
if (complexType.ContentTypeParticle !=
XmlSchemaParticle
.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
1586
private void PreprocessParticle(
XmlSchemaParticle
particle)
1634
PreprocessParticle((
XmlSchemaParticle
)choices[i]);
1651
PreprocessParticle((
XmlSchemaParticle
)sequences[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (86)
344
complexType.SetContentTypeParticle(
XmlSchemaParticle
.Empty);
414
private void CleanupParticle(
XmlSchemaParticle
particle)
428
CleanupParticle((
XmlSchemaParticle
)groupBase.Items[i]);
576
group.CanonicalParticle =
XmlSchemaParticle
.Empty;
1017
XmlSchemaParticle
baseParticle = baseType.ContentTypeParticle;
1018
XmlSchemaParticle
extendedParticle = CannonicalizeParticle(complexExtension.Particle, true);
1019
if (baseParticle !=
XmlSchemaParticle
.Empty)
1021
if (extendedParticle !=
XmlSchemaParticle
.Empty)
1112
XmlSchemaParticle
derivedParticle = CannonicalizePointlessRoot(complexType.ContentTypeParticle);
1113
XmlSchemaParticle
baseParticle = CannonicalizePointlessRoot(baseType.ContentTypeParticle);
1157
private void CheckParticleDerivation(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1175
private
XmlSchemaParticle
CompileContentTypeParticle(
XmlSchemaParticle
particle)
1177
XmlSchemaParticle
ctp = CannonicalizeParticle(particle, true);
1185
return
XmlSchemaParticle
.Empty;
1190
private
XmlSchemaParticle
CannonicalizeParticle(
XmlSchemaParticle
particle, bool root)
1194
return
XmlSchemaParticle
.Empty;
1223
private
XmlSchemaParticle
CannonicalizeElement(XmlSchemaElement element)
1251
private
XmlSchemaParticle
CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root)
1265
return
XmlSchemaParticle
.Empty;
1271
if (group.CanonicalParticle ==
XmlSchemaParticle
.Empty)
1273
return
XmlSchemaParticle
.Empty;
1281
return
XmlSchemaParticle
.Empty;
1286
return
XmlSchemaParticle
.Empty;
1295
return
XmlSchemaParticle
.Empty;
1314
private
XmlSchemaParticle
CannonicalizeAll(XmlSchemaAll all, bool root)
1324
XmlSchemaParticle
p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false);
1325
if (p !=
XmlSchemaParticle
.Empty)
1334
return
XmlSchemaParticle
.Empty;
1339
return
XmlSchemaParticle
.Empty;
1347
private
XmlSchemaParticle
CannonicalizeChoice(XmlSchemaChoice choice, bool root)
1358
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)choice.Items[i], false);
1359
if (p1 !=
XmlSchemaParticle
.Empty)
1383
return
XmlSchemaParticle
.Empty;
1387
return (
XmlSchemaParticle
)choice.Items[0];
1395
private
XmlSchemaParticle
CannonicalizeSequence(XmlSchemaSequence sequence, bool root)
1405
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)sequence.Items[i], false);
1406
if (p1 !=
XmlSchemaParticle
.Empty)
1426
return
XmlSchemaParticle
.Empty;
1430
return (
XmlSchemaParticle
)sequence.Items[0];
1438
private
XmlSchemaParticle
CannonicalizePointlessRoot(
XmlSchemaParticle
particle)
1457
return (
XmlSchemaParticle
)items[0];
1470
return (
XmlSchemaParticle
)items[0];
1475
return
XmlSchemaParticle
.Empty;
1487
return (
XmlSchemaParticle
)items[0];
1495
private bool IsValidRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1501
else if (derivedParticle == null || derivedParticle ==
XmlSchemaParticle
.Empty)
1505
else if (baseParticle == null || baseParticle ==
XmlSchemaParticle
.Empty)
1517
XmlSchemaParticle
newBaseParticle;
1714
if (!IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[i], baseAny))
1819
if (GetMappingParticle((
XmlSchemaParticle
)derivedChoice.Items[i], baseChoice.Items) < 0)
1842
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1844
&& IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[count], baseParticle))
1873
int i = GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[j], baseAll.Items);
1892
if (!map[i] && !IsParticleEmptiable((
XmlSchemaParticle
)baseAll.Items[i]))
1918
if (GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[i], baseChoice.Items) < 0)
1924
private bool IsValidOccurrenceRangeRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle)
1934
private int GetMappingParticle(
XmlSchemaParticle
particle, XmlSchemaObjectCollection collection)
1938
if (IsValidRestriction(particle, (
XmlSchemaParticle
)collection[i]))
1944
private bool IsParticleEmptiable(
XmlSchemaParticle
particle)
1951
private void CalculateEffectiveTotalRange(
XmlSchemaParticle
particle, out decimal minOccurs, out decimal maxOccurs)
1973
CalculateEffectiveTotalRange((
XmlSchemaParticle
)choice.Items[i], out min, out max);
2007
CalculateEffectiveTotalRange((
XmlSchemaParticle
)collection[i], out min, out max);
2034
private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent,
XmlSchemaParticle
particle)
2880
XmlSchemaParticle
particle = complexType.ContentTypeParticle;
2881
if (particle == null || particle ==
XmlSchemaParticle
.Empty)
2955
private string DumpContentModel(
XmlSchemaParticle
particle)
2962
private void DumpContentModelTo(StringBuilder sb,
XmlSchemaParticle
particle)
3014
DumpContentModelTo(sb, (
XmlSchemaParticle
)gb.Items[i]);
3020
Debug.Assert(particle ==
XmlSchemaParticle
.Empty);
3046
private bool BuildParticleContentModel(ParticleContentValidator contentValidator,
XmlSchemaParticle
particle)
3068
Debug.Assert(!((
XmlSchemaParticle
)particles[i]).IsEmpty);
3081
hasWildCard = BuildParticleContentModel(contentValidator, (
XmlSchemaParticle
)particles[i]);
3112
private void CompileParticleElements(XmlSchemaComplexType complexType,
XmlSchemaParticle
particle)
3136
CompileParticleElements(complexType, (
XmlSchemaParticle
)particles[i]);
3141
private void CompileParticleElements(
XmlSchemaParticle
particle)
3153
CompileParticleElements((
XmlSchemaParticle
)particles[i]);
3168
if (complexType.ContentTypeParticle !=
XmlSchemaParticle
.Empty)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexContentExtension.cs (2)
20
private
XmlSchemaParticle
_particle;
44
public
XmlSchemaParticle
Particle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexContentRestriction.cs (2)
20
private
XmlSchemaParticle
_particle;
44
public
XmlSchemaParticle
Particle
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (14)
24
private
XmlSchemaParticle
_particle;
28
private
XmlSchemaParticle
_contentTypeParticle =
XmlSchemaParticle
.Empty;
214
public
XmlSchemaParticle
Particle
265
public
XmlSchemaParticle
ContentTypeParticle
324
internal void SetContentTypeParticle(
XmlSchemaParticle
value)
493
_contentTypeParticle =
XmlSchemaParticle
.Empty;
537
XmlSchemaParticle
p = (
XmlSchemaParticle
)groupBaseParticles[i];
543
internal static
XmlSchemaParticle
CloneParticle(
XmlSchemaParticle
particle, XmlSchema parentSchema)
597
internal static bool HasParticleRef(
XmlSchemaParticle
particle, XmlSchema parentSchema)
606
XmlSchemaParticle
p = (
XmlSchemaParticle
)groupBase.Items[i++];
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroup.cs (3)
21
private
XmlSchemaParticle
_canonicalParticle;
57
internal
XmlSchemaParticle
CanonicalParticle
102
newGroup._canonicalParticle =
XmlSchemaParticle
.Empty;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (1)
196
internal static readonly
XmlSchemaParticle
Empty = new EmptyParticle();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (13)
149
private static
XmlSchemaParticle
[] s_emptyParticleArray = new
XmlSchemaParticle
[0];
978
public
XmlSchemaParticle
[] GetExpectedParticles()
987
return new
XmlSchemaParticle
[1] { element };
999
return expected.ToArray(typeof(
XmlSchemaParticle
)) as
XmlSchemaParticle
[];
1007
return expected.ToArray(typeof(
XmlSchemaParticle
)) as
XmlSchemaParticle
[];
2625
XmlSchemaParticle
currentParticle = null;
2626
XmlSchemaParticle
nextParticle = null;
2633
nextParticle = expected[0] as
XmlSchemaParticle
;
2639
currentParticle = expected[i - 1] as
XmlSchemaParticle
;
2640
nextParticle = expected[i] as
XmlSchemaParticle
;
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (4)
667
private
XmlSchemaParticle
_particle;
2386
private void AddParticle(
XmlSchemaParticle
particle)
2459
private void SetMinOccurs(
XmlSchemaParticle
particle, string value)
2471
private void SetMaxOccurs(
XmlSchemaParticle
particle, string value)
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (1)
340
XmlSchemaParticle
particle = null;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (3)
390
private void ImportGroup(
XmlSchemaParticle
group, CodeIdentifiers members, string ns)
401
private void ImportGroupMembers(
XmlSchemaParticle
particle, CodeIdentifiers members, string ns)
530
XmlSchemaParticle
particle = restriction.Particle;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
816
XmlSchemaParticle
particle = null;
1016
private bool GatherGroupChoices(
XmlSchemaParticle
particle, NameTable choiceElements, string identifier, string ns, ref bool needExplicitOrder, bool allowDuplicates)
1043
if (GatherGroupChoices((
XmlSchemaParticle
)item, choiceElements, identifier, ns, ref needExplicitOrder, allowDuplicates))
1119
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)
1155
else if (item is
XmlSchemaParticle
)
1157
ImportGroupMembers((
XmlSchemaParticle
)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref mixed, ref needExplicitOrder, allowDuplicates, true);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
628
private DataContract ImportType(XmlQualifiedName typeName,
XmlSchemaParticle
rootParticle, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlQualifiedName baseTypeName, XmlSchemaAnnotation annotation)