5 types derived from XmlSchemaParticle
System.Xml (5)
System\Xml\Schema\XmlSchemaAny.cs (1)
18
public class XmlSchemaAny :
XmlSchemaParticle
{
System\Xml\Schema\XmlSchemaElement.cs (1)
19
public class XmlSchemaElement :
XmlSchemaParticle
{
System\Xml\Schema\XmlSchemaGroupBase.cs (1)
16
public abstract class XmlSchemaGroupBase :
XmlSchemaParticle
{
System\Xml\Schema\XmlSchemaGroupRef.cs (1)
16
public class XmlSchemaGroupRef :
XmlSchemaParticle
{
System\Xml\Schema\XmlSchemaParticle.cs (1)
153
class EmptyParticle :
XmlSchemaParticle
{
245 references to XmlSchemaParticle
System.Data (10)
fx\src\data\System\Data\XMLSchema.cs (10)
462
private bool IsDatasetParticle(
XmlSchemaParticle
pt){
490
if (el is
XmlSchemaParticle
) {
491
if (!IsDatasetParticle((
XmlSchemaParticle
)el))
542
XmlSchemaParticle
particle = GetParticle(ct);
747
internal XmlSchemaObjectCollection GetParticleItems(
XmlSchemaParticle
pt){
769
internal void HandleParticle(
XmlSchemaParticle
pt, DataTable table, ArrayList tableChildren, bool isBase){
835
HandleParticle((
XmlSchemaParticle
)item, table, tableChildren, isBase);
965
internal
XmlSchemaParticle
GetParticle(XmlSchemaComplexType ct){
2310
if (((
XmlSchemaParticle
)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir
2311
((XmlSchemaElement)choiceEl).MaxOccurs = ((
XmlSchemaParticle
)el).MaxOccurs;
System.Data.Services.Design (4)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (4)
111
private static bool IsElementExpected(XElement element, XmlQualifiedName elementName,
XmlSchemaParticle
expected)
194
private static bool IsElementExpected(XElement element,
XmlSchemaParticle
[] expectedParticles)
200
foreach (
var
expected in expectedParticles)
442
XmlSchemaParticle
[] expectedParticles = null;
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
629
DataContract ImportType(XmlQualifiedName typeName,
XmlSchemaParticle
rootParticle, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlQualifiedName baseTypeName, XmlSchemaAnnotation annotation)
System.Xml (230)
System\Xml\Schema\ContentValidator.cs (15)
936
public static void AddParticleToExpected(
XmlSchemaParticle
p, XmlSchemaSet schemaSet, ArrayList particles) {
940
public static void AddParticleToExpected(
XmlSchemaParticle
p, XmlSchemaSet schemaSet, ArrayList particles, bool global) {
1476
XmlSchemaParticle
p = (
XmlSchemaParticle
)symbols.GetParticle(i);
1501
XmlSchemaParticle
p = (
XmlSchemaParticle
)symbols.GetParticle(i);
1606
XmlSchemaParticle
p = (
XmlSchemaParticle
)positions[pos].particle;
1627
XmlSchemaParticle
p = (
XmlSchemaParticle
)positions[pos].particle;
1874
XmlSchemaParticle
p = positions[pos].particle as
XmlSchemaParticle
;
1906
XmlSchemaParticle
p = positions[pos].particle as
XmlSchemaParticle
;
2000
AddParticleToExpected(this.particles[(int)entry.Value] as
XmlSchemaParticle
, schemaSet, expectedParticles);
System\Xml\Schema\Inference\Infer.cs (3)
1099
XmlSchemaParticle
particle = xss.Items[iSeqItem] as
XmlSchemaParticle
;
1129
particle = xss.Items[iSeqItem] as
XmlSchemaParticle
;
System\Xml\Schema\Preprocessor.cs (3)
1571
private void PreprocessParticle(
XmlSchemaParticle
particle) {
1607
PreprocessParticle((
XmlSchemaParticle
)items[i]);
1620
PreprocessParticle((
XmlSchemaParticle
)items[i]);
System\Xml\Schema\SchemaCollectionCompiler.cs (75)
290
complexType.SetContentTypeParticle(
XmlSchemaParticle
.Empty);
328
private static void CleanupParticle(
XmlSchemaParticle
particle) {
335
CleanupParticle((
XmlSchemaParticle
)particles[i]);
396
group.CanonicalParticle =
XmlSchemaParticle
.Empty;
755
XmlSchemaParticle
baseParticle = baseType.ContentTypeParticle;
756
XmlSchemaParticle
extendedParticle = CannonicalizeParticle(complexExtension.Particle, true, true);
757
if (baseParticle !=
XmlSchemaParticle
.Empty) {
758
if (extendedParticle !=
XmlSchemaParticle
.Empty) {
841
private
XmlSchemaParticle
CompileContentTypeParticle(
XmlSchemaParticle
particle, bool substitution) {
842
XmlSchemaParticle
ctp = CannonicalizeParticle(particle, true, substitution);
848
return
XmlSchemaParticle
.Empty;
853
private
XmlSchemaParticle
CannonicalizeParticle(
XmlSchemaParticle
particle, bool root, bool substitution) {
855
return
XmlSchemaParticle
.Empty;
877
private
XmlSchemaParticle
CannonicalizeElement(XmlSchemaElement element, bool substitution) {
895
private
XmlSchemaParticle
CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root, bool substitution) {
905
return
XmlSchemaParticle
.Empty;
910
if (group.CanonicalParticle ==
XmlSchemaParticle
.Empty) {
911
return
XmlSchemaParticle
.Empty;
917
return
XmlSchemaParticle
.Empty;
921
return
XmlSchemaParticle
.Empty;
928
return
XmlSchemaParticle
.Empty;
938
groupRefBase.Items.Add((
XmlSchemaParticle
)groupBase.Items[i]);
944
private
XmlSchemaParticle
CannonicalizeAll(XmlSchemaAll all, bool root, bool substitution) {
953
XmlSchemaParticle
p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution);
954
if (p !=
XmlSchemaParticle
.Empty) {
961
return
XmlSchemaParticle
.Empty;
967
newSequence.Items.Add((
XmlSchemaParticle
)all.Items[0]);
971
return (
XmlSchemaParticle
)all.Items[0];
975
return
XmlSchemaParticle
.Empty;
982
private
XmlSchemaParticle
CannonicalizeChoice(XmlSchemaChoice choice, bool root, bool substitution) {
989
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)choice.Items[i], false, substitution);
990
if (p1 !=
XmlSchemaParticle
.Empty) {
1008
return
XmlSchemaParticle
.Empty;
1011
return (
XmlSchemaParticle
)choice.Items[0];
1018
private
XmlSchemaParticle
CannonicalizeSequence(XmlSchemaSequence sequence, bool root, bool substitution) {
1024
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)sequence.Items[i], false, substitution);
1025
if (p1 !=
XmlSchemaParticle
.Empty) {
1040
return
XmlSchemaParticle
.Empty;
1043
return (
XmlSchemaParticle
)sequence.Items[0];
1050
private bool IsValidRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle) {
1054
else if (derivedParticle == null || derivedParticle ==
XmlSchemaParticle
.Empty) {
1057
else if (baseParticle == null || baseParticle ==
XmlSchemaParticle
.Empty) {
1147
if (!IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[i], baseAny)) {
1159
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1187
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1188
if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[count], baseParticle)) {
1207
int i = GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[j], baseAll.Items);
1221
if (!map[i] && !IsParticleEmptiable((
XmlSchemaParticle
)baseAll.Items[i])) {
1235
if (GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[i], baseChoice.Items) < 0)
1244
XmlSchemaParticle
p = (
XmlSchemaParticle
)sequence.Items[i];
1261
private bool IsValidOccurrenceRangeRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle) {
1269
private int GetMappingParticle(
XmlSchemaParticle
particle, XmlSchemaObjectCollection collection) {
1271
if (IsValidRestriction(particle, (
XmlSchemaParticle
)collection[i]))
1277
private bool IsParticleEmptiable(
XmlSchemaParticle
particle) {
1283
private void CalculateEffectiveTotalRange(
XmlSchemaParticle
particle, out decimal minOccurs, out decimal maxOccurs) {
1298
CalculateEffectiveTotalRange((
XmlSchemaParticle
) choice.Items[i], out min, out max);
1325
CalculateEffectiveTotalRange((
XmlSchemaParticle
)collection[i], out min, out max);
1349
private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent,
XmlSchemaParticle
particle) {
1932
XmlSchemaParticle
particle = complexType.ContentTypeParticle;
1933
if (particle == null || particle ==
XmlSchemaParticle
.Empty) {
2062
private void BuildParticleContentModel(ParticleContentValidator contentValidator,
XmlSchemaParticle
particle) {
2077
XmlSchemaParticle
p = (
XmlSchemaParticle
)particles[i];
2112
private void CompileParticleElements(XmlSchemaComplexType complexType,
XmlSchemaParticle
particle) {
2129
CompileParticleElements(complexType, (
XmlSchemaParticle
)particles[i]);
2140
if (complexType.ContentTypeParticle !=
XmlSchemaParticle
.Empty) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
1259
private void PreprocessParticle(
XmlSchemaParticle
particle) {
1295
PreprocessParticle((
XmlSchemaParticle
)choices[i]);
1308
PreprocessParticle((
XmlSchemaParticle
)sequences[i]);
System\Xml\Schema\SchemaSetCompiler.cs (82)
278
complexType.SetContentTypeParticle(
XmlSchemaParticle
.Empty);
334
private void CleanupParticle(
XmlSchemaParticle
particle) {
344
CleanupParticle((
XmlSchemaParticle
)groupBase.Items[i]);
460
group.CanonicalParticle =
XmlSchemaParticle
.Empty;
806
XmlSchemaParticle
baseParticle = baseType.ContentTypeParticle;
807
XmlSchemaParticle
extendedParticle = CannonicalizeParticle(complexExtension.Particle, true);
808
if (baseParticle !=
XmlSchemaParticle
.Empty) {
809
if (extendedParticle !=
XmlSchemaParticle
.Empty) {
884
XmlSchemaParticle
derivedParticle = CannonicalizePointlessRoot(complexType.ContentTypeParticle);
885
XmlSchemaParticle
baseParticle = CannonicalizePointlessRoot(baseType.ContentTypeParticle);
920
private void CheckParticleDerivation(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle) {
934
private
XmlSchemaParticle
CompileContentTypeParticle(
XmlSchemaParticle
particle) {
935
XmlSchemaParticle
ctp = CannonicalizeParticle(particle, true);
941
return
XmlSchemaParticle
.Empty;
946
private
XmlSchemaParticle
CannonicalizeParticle(
XmlSchemaParticle
particle, bool root) {
948
return
XmlSchemaParticle
.Empty;
971
private
XmlSchemaParticle
CannonicalizeElement(XmlSchemaElement element) {
993
private
XmlSchemaParticle
CannonicalizeGroupRef(XmlSchemaGroupRef groupRef, bool root) {
1003
return
XmlSchemaParticle
.Empty;
1008
if (group.CanonicalParticle ==
XmlSchemaParticle
.Empty) {
1009
return
XmlSchemaParticle
.Empty;
1015
return
XmlSchemaParticle
.Empty;
1019
return
XmlSchemaParticle
.Empty;
1026
return
XmlSchemaParticle
.Empty;
1044
private
XmlSchemaParticle
CannonicalizeAll(XmlSchemaAll all, bool root) {
1051
XmlSchemaParticle
p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false);
1052
if (p !=
XmlSchemaParticle
.Empty) {
1059
return
XmlSchemaParticle
.Empty;
1063
return
XmlSchemaParticle
.Empty;
1070
private
XmlSchemaParticle
CannonicalizeChoice(XmlSchemaChoice choice, bool root) {
1078
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)choice.Items[i], false);
1079
if (p1 !=
XmlSchemaParticle
.Empty) {
1097
return
XmlSchemaParticle
.Empty;
1100
return (
XmlSchemaParticle
)choice.Items[0];
1107
private
XmlSchemaParticle
CannonicalizeSequence(XmlSchemaSequence sequence, bool root) {
1114
XmlSchemaParticle
p1 = CannonicalizeParticle((
XmlSchemaParticle
)sequence.Items[i], false);
1115
if (p1 !=
XmlSchemaParticle
.Empty) {
1130
return
XmlSchemaParticle
.Empty;
1133
return (
XmlSchemaParticle
)sequence.Items[0];
1140
private
XmlSchemaParticle
CannonicalizePointlessRoot(
XmlSchemaParticle
particle) {
1154
return (
XmlSchemaParticle
)items[0];
1164
return (
XmlSchemaParticle
)items[0];
1168
return
XmlSchemaParticle
.Empty;
1177
return (
XmlSchemaParticle
)items[0];
1185
private bool IsValidRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle) {
1189
else if (derivedParticle == null || derivedParticle ==
XmlSchemaParticle
.Empty) {
1192
else if (baseParticle == null || baseParticle ==
XmlSchemaParticle
.Empty) {
1201
XmlSchemaParticle
newBaseParticle;
1358
if (!IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[i], baseAny)) {
1452
if (GetMappingParticle((
XmlSchemaParticle
)derivedChoice.Items[i], baseChoice.Items) < 0) {
1470
XmlSchemaParticle
baseParticle = (
XmlSchemaParticle
)baseGroupBase.Items[i];
1472
&& IsValidRestriction((
XmlSchemaParticle
)derivedGroupBase.Items[count], baseParticle)) {
1494
int i = GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[j], baseAll.Items);
1508
if (!map[i] && !IsParticleEmptiable((
XmlSchemaParticle
)baseAll.Items[i])) {
1528
if (GetMappingParticle((
XmlSchemaParticle
)derivedSequence.Items[i], baseChoice.Items) < 0)
1534
private bool IsValidOccurrenceRangeRestriction(
XmlSchemaParticle
derivedParticle,
XmlSchemaParticle
baseParticle) {
1542
private int GetMappingParticle(
XmlSchemaParticle
particle, XmlSchemaObjectCollection collection) {
1544
if (IsValidRestriction(particle, (
XmlSchemaParticle
)collection[i]))
1550
private bool IsParticleEmptiable(
XmlSchemaParticle
particle) {
1556
private void CalculateEffectiveTotalRange(
XmlSchemaParticle
particle, out decimal minOccurs, out decimal maxOccurs) {
1572
CalculateEffectiveTotalRange((
XmlSchemaParticle
)choice.Items[i], out min, out max);
1599
CalculateEffectiveTotalRange((
XmlSchemaParticle
)collection[i], out min, out max);
1623
private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent,
XmlSchemaParticle
particle) {
2287
XmlSchemaParticle
particle = complexType.ContentTypeParticle;
2288
if (particle == null || particle ==
XmlSchemaParticle
.Empty) {
2417
private bool BuildParticleContentModel(ParticleContentValidator contentValidator,
XmlSchemaParticle
particle) {
2434
Debug.Assert(!((
XmlSchemaParticle
)particles[i]).IsEmpty);
2444
hasWildCard = BuildParticleContentModel(contentValidator, (
XmlSchemaParticle
)particles[i]);
2469
private void CompileParticleElements(XmlSchemaComplexType complexType,
XmlSchemaParticle
particle) {
2486
CompileParticleElements(complexType, (
XmlSchemaParticle
)particles[i]);
2491
private void CompileParticleElements(
XmlSchemaParticle
particle) { //For checking redefined group particle derivation
2499
CompileParticleElements((
XmlSchemaParticle
)particles[i]);
2511
if (complexType.ContentTypeParticle !=
XmlSchemaParticle
.Empty) {
System\Xml\Schema\XmlSchemaComplexContentExtension.cs (2)
18
XmlSchemaParticle
particle;
41
public
XmlSchemaParticle
Particle {
System\Xml\Schema\XmlSchemaComplexContentRestriction.cs (2)
18
XmlSchemaParticle
particle;
41
public
XmlSchemaParticle
Particle {
System\Xml\Schema\XmlSchemaComplexType.cs (14)
22
XmlSchemaParticle
particle;
26
XmlSchemaParticle
contentTypeParticle =
XmlSchemaParticle
.Empty;
193
public
XmlSchemaParticle
Particle {
238
public
XmlSchemaParticle
ContentTypeParticle {
288
internal void SetContentTypeParticle(
XmlSchemaParticle
value) {
427
this.contentTypeParticle =
XmlSchemaParticle
.Empty;
463
XmlSchemaParticle
p = (
XmlSchemaParticle
)groupBaseParticles[i];
469
internal static
XmlSchemaParticle
CloneParticle(
XmlSchemaParticle
particle, XmlSchema parentSchema) {
515
internal static bool HasParticleRef(
XmlSchemaParticle
particle, XmlSchema parentSchema) {
521
XmlSchemaParticle
p = (
XmlSchemaParticle
)groupBase.Items[i++];
System\Xml\Schema\XmlSchemaGroup.cs (3)
19
XmlSchemaParticle
canonicalParticle;
52
internal
XmlSchemaParticle
CanonicalParticle {
89
newGroup.canonicalParticle =
XmlSchemaParticle
.Empty;
System\Xml\Schema\XmlSchemaParticle.cs (1)
159
internal static readonly
XmlSchemaParticle
Empty = new EmptyParticle();
System\Xml\Schema\XmlSchemaValidator.cs (13)
144
private static
XmlSchemaParticle
[] EmptyParticleArray = new
XmlSchemaParticle
[0];
833
public
XmlSchemaParticle
[] GetExpectedParticles() {
838
return new
XmlSchemaParticle
[1] {element};
848
return expected.ToArray(typeof(
XmlSchemaParticle
)) as
XmlSchemaParticle
[];
854
return expected.ToArray(typeof(
XmlSchemaParticle
)) as
XmlSchemaParticle
[];
2177
XmlSchemaParticle
currentParticle = null;
2178
XmlSchemaParticle
nextParticle = null;
2184
nextParticle = expected[0] as
XmlSchemaParticle
;
2188
currentParticle = expected[i-1] as
XmlSchemaParticle
;
2189
nextParticle = expected[i] as
XmlSchemaParticle
;
System\Xml\Schema\XsdBuilder.cs (4)
656
private
XmlSchemaParticle
particle;
2178
private void AddParticle(
XmlSchemaParticle
particle) {
2240
private void SetMinOccurs(
XmlSchemaParticle
particle, string value) {
2249
private void SetMaxOccurs(
XmlSchemaParticle
particle, string value) {
System\Xml\Serialization\ImportContext.cs (1)
291
XmlSchemaParticle
particle = null;
System\Xml\Serialization\SoapSchemaImporter.cs (3)
350
void ImportGroup(
XmlSchemaParticle
group, CodeIdentifiers members, string ns) {
359
void ImportGroupMembers(
XmlSchemaParticle
particle, CodeIdentifiers members, string ns) {
473
XmlSchemaParticle
particle = restriction.Particle;
System\Xml\Serialization\XmlSchemaImporter.cs (6)
712
XmlSchemaParticle
particle = null;
888
bool GatherGroupChoices(
XmlSchemaParticle
particle, NameTable choiceElements, string identifier, string ns, ref bool needExplicitOrder, bool allowDuplicates) {
908
if (GatherGroupChoices((
XmlSchemaParticle
)item, choiceElements, identifier, ns, ref needExplicitOrder, allowDuplicates))
969
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) {
998
else if (item is
XmlSchemaParticle
) {
999
ImportGroupMembers((
XmlSchemaParticle
)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref mixed, ref needExplicitOrder, allowDuplicates, true);