5 writes to ElementDecl
System.Private.Xml (5)
System\Xml\Schema\DtdValidator.cs (2)
245
context!.
ElementDecl
= elementDecl;
254
context.
ElementDecl
= null;
System\Xml\Schema\XdrValidator.cs (1)
155
context!.
ElementDecl
= ThoroughGetElementDecl();
System\Xml\Schema\XmlSchemaValidator.cs (1)
443
_context.
ElementDecl
= elementDecl;
System\Xml\Schema\XsdValidator.cs (1)
242
context!.
ElementDecl
= elementDecl;
116 references to ElementDecl
System.Private.Xml (116)
System\Xml\Schema\BaseValidator.cs (2)
180
ContentValidator contentValidator = context.
ElementDecl
!.ContentValidator!;
212
XmlSchemaContentType contentType = context.
ElementDecl
!.ContentValidator!.ContentType;
System\Xml\Schema\DtdValidator.cs (22)
109
context!.
ElementDecl
!= null &&
110
context.
ElementDecl
.IsDeclaredInExternal &&
111
context.
ElementDecl
.ContentValidator!.ContentType == XmlSchemaContentType.ElementOnly)
124
if (context!.
ElementDecl
!.ContentValidator == ContentValidator.Empty)
153
context.
ElementDecl
!.ContentValidator!.ValidateElement(elementName, context, out errorCode);
163
if (context!.
ElementDecl
!= null)
165
Reader.SchemaTypeObject = context.
ElementDecl
.SchemaType;
167
if (Reader.IsEmptyElement && context.
ElementDecl
.DefaultValueTyped != null)
169
Reader.TypedValueObject = context.
ElementDecl
.DefaultValueTyped;
172
if (context.
ElementDecl
.HasRequiredAttribute)
185
SchemaAttDef? attnDef = context.
ElementDecl
!.GetAttDef(new XmlQualifiedName(reader.LocalName, reader.Prefix));
188
if (context.
ElementDecl
!= null && context.
ElementDecl
.HasRequiredAttribute)
217
if (context!.
ElementDecl
!.HasRequiredAttribute)
221
context.
ElementDecl
.CheckAttributes(_attPresence, Reader.StandAlone);
230
if (context.
ElementDecl
.Datatype != null)
272
if (context!.
ElementDecl
!= null)
276
if (!context.
ElementDecl
.ContentValidator!.CompleteValidation(context))
296
get { return context!.
ElementDecl
!= null ? context.
ElementDecl
.ContentValidator!.PreserveWhitespace : false; }
346
XmlSchemaDatatype? dtype = isAttn ? attdef!.Datatype : context!.
ElementDecl
!.Datatype;
377
SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef! : (SchemaDeclBase)context!.
ElementDecl
!;
System\Xml\Schema\XdrValidator.cs (25)
112
context.
ElementDecl
!.ContentValidator!.ValidateElement(elementName, context, out errorCode);
156
if (context.
ElementDecl
!= null)
161
context.
ElementDecl
.ContentValidator!.InitValidation(context);
172
if (context!.
ElementDecl
!= null)
176
if (!context.
ElementDecl
.ContentValidator!.CompleteValidation(context))
240
if (context!.
ElementDecl
!= null)
242
if (context.
ElementDecl
.SchemaType != null)
244
reader.SchemaTypeObject = context.
ElementDecl
.SchemaType;
248
reader.SchemaTypeObject = context.
ElementDecl
.Datatype;
250
if (reader.IsEmptyElement && !context.IsNill && context.
ElementDecl
.DefaultValueTyped != null)
252
reader.TypedValueObject = context.
ElementDecl
.DefaultValueTyped;
255
if (this.context.
ElementDecl
.HasRequiredAttribute)
273
SchemaAttDef? attnDef = schemaInfo!.GetAttributeXdr(context.
ElementDecl
, QualifiedName(reader.LocalName, reader.NamespaceURI));
276
if (context.
ElementDecl
!= null && context.
ElementDecl
.HasRequiredAttribute)
302
if (context!.
ElementDecl
!.HasDefaultAttribute)
304
for (int i = 0; i < context.
ElementDecl
.DefaultAttDefs!.Count; ++i)
306
reader.AddDefaultAttribute((SchemaAttDef)context.
ElementDecl
.DefaultAttDefs[i]);
310
if (context.
ElementDecl
.HasRequiredAttribute)
314
context.
ElementDecl
.CheckAttributes(_attPresence, reader.StandAlone);
323
if (context.
ElementDecl
.Datatype != null)
406
get { return context!.
ElementDecl
!= null ? context.
ElementDecl
.ContentValidator!.PreserveWhitespace : false; }
464
XmlSchemaDatatype? dtype = isAttn ? attdef!.Datatype : context!.
ElementDecl
!.Datatype;
501
SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef! : (SchemaDeclBase)context!.
ElementDecl
!;
System\Xml\Schema\XmlSchemaValidator.cs (33)
514
SchemaElementDecl? currentElementDecl = _context.
ElementDecl
;
713
SchemaElementDecl? currentElementDecl = _context.
ElementDecl
;
749
XmlSchemaContentType contentType = _context.
ElementDecl
!.ContentValidator!.ContentType;
773
ArrayList? names = _context.
ElementDecl
.ContentValidator.ExpectedParticles(_context, false, _schemaSet);
786
if (_context.
ElementDecl
.DefaultValueTyped != null)
828
XmlSchemaContentType contentType = _context.
ElementDecl
!.ContentValidator!.ContentType;
847
if (_context.
ElementDecl
.DefaultValueTyped != null)
894
SchemaElementDecl? currentElementDecl = _context.
ElementDecl
;
954
if (_context.
ElementDecl
!= null)
956
ArrayList? expected = _context.
ElementDecl
.ContentValidator!.ExpectedParticles(_context, false, _schemaSet);
976
SchemaElementDecl? elementDecl = _context.
ElementDecl
;
1018
SchemaElementDecl? currentElementDecl = _context.
ElementDecl
;
1114
if (_context.
ElementDecl
== null)
1118
return _context.
ElementDecl
.ContentValidator!.ContentType;
1140
return (_processContents == XmlSchemaContentProcessing.Strict || _processContents == XmlSchemaContentProcessing.Lax) && _context.
ElementDecl
!= null && !_context.ValidationSkipped;
1174
SchemaElementDecl? contextElementDecl = _context.
ElementDecl
;
1318
ContentValidator contentValidator = _context.
ElementDecl
!.ContentValidator!;
1319
if (contentValidator.ContentType == XmlSchemaContentType.Mixed && _context.
ElementDecl
.Presence == SchemaDeclBase.Use.Fixed)
1330
particle = _context.
ElementDecl
.ContentValidator!.ValidateElement(head, _context, out errorCode);
1421
SchemaElementDecl currentElementDecl = _context.
ElementDecl
!;
1469
SchemaElementDecl currentElementDecl = _context.
ElementDecl
!;
1756
if (_context.
ElementDecl
!.IsAbstract)
1765
if (ProcessIdentityConstraints && _context.
ElementDecl
!.Constraints != null)
1815
SchemaElementDecl elementDecl = _context.
ElementDecl
!;
1968
SchemaDeclBase decl = (_context.
ElementDecl
as SchemaDeclBase)!;
2110
SchemaElementDecl currentDecl = _context.
ElementDecl
!;
2154
SchemaElementDecl currentElementDecl = _context.
ElementDecl
!;
2215
SchemaElementDecl? currentElementDecl = _context.
ElementDecl
;
2508
if (context.
ElementDecl
!= null)
2510
ContentValidator contentValidator = context.
ElementDecl
.ContentValidator!;
2567
if (context.
ElementDecl
!= null)
2572
names = context.
ElementDecl
.ContentValidator!.ExpectedParticles(context, true, schemaSet);
2576
names = context.
ElementDecl
.ContentValidator!.ExpectedElements(context, true);
System\Xml\Schema\XsdValidator.cs (34)
198
particle = context.
ElementDecl
!.ContentValidator!.ValidateElement(elementName, context, out errorCode);
245
if (context.
ElementDecl
!= null)
249
context.
ElementDecl
.ContentValidator!.InitValidation(context);
329
if (context!.
ElementDecl
!= null)
335
if (!context.
ElementDecl
.ContentValidator!.CompleteValidation(context))
344
if (!(stringValue.Length == 0 && context.
ElementDecl
.DefaultValueTyped != null))
444
if (context!.
ElementDecl
!= null)
446
if (context.
ElementDecl
.IsAbstract)
451
reader.SchemaTypeObject = context.
ElementDecl
.SchemaType;
453
if (reader.IsEmptyElement && !context.IsNill && context.
ElementDecl
.DefaultValueTyped != null)
455
reader.TypedValueObject = UnWrapUnion(context.
ElementDecl
.DefaultValueTyped);
462
if (this.context.
ElementDecl
.HasRequiredAttribute || HasIdentityConstraints)
486
SchemaAttDef? attnDef = schemaInfo!.GetAttributeXsd(context.
ElementDecl
, attQName, ref skipContents);
490
if (context.
ElementDecl
!= null && (context.
ElementDecl
.HasRequiredAttribute || _startIDConstraint != -1))
509
if (context.
ElementDecl
== null
535
if (context!.
ElementDecl
!.HasDefaultAttribute)
537
for (int i = 0; i < context.
ElementDecl
.DefaultAttDefs!.Count; ++i)
539
SchemaAttDef attdef = (SchemaAttDef)context.
ElementDecl
.DefaultAttDefs[i];
549
if (context.
ElementDecl
.HasRequiredAttribute)
553
context.
ElementDecl
.CheckAttributes(_attPresence, reader.StandAlone);
561
if (context.
ElementDecl
.Datatype != null)
650
get { return context!.
ElementDecl
!= null ? context.
ElementDecl
.ContentValidator!.PreserveWhitespace : false; }
695
XmlSchemaDatatype? dtype = isAttn ? attdef!.Datatype : context!.
ElementDecl
!.Datatype;
721
SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef! : (SchemaDeclBase)context!.
ElementDecl
!;
829
if (context!.
ElementDecl
!= null)
831
if (context.
ElementDecl
.Constraints != null)
850
context!.Constr = new ConstraintStruct[context.
ElementDecl
!.Constraints!.Length];
852
for (int i = 0; i < context.
ElementDecl
.Constraints.Length; ++i)
854
context.Constr[id++] = new ConstraintStruct(context.
ElementDecl
.Constraints[i]);
942
if (context!.
ElementDecl
!= null)
944
if (context.
ElementDecl
.Datatype == null)
1056
laxis.Ks[laxis.Column] = new TypedObject(reader.TypedValueObject, stringValue, context!.
ElementDecl
!.Datatype);