5 writes to ElementDecl
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (2)
242
context.
ElementDecl
= elementDecl;
251
context.
ElementDecl
= null;
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
154
context.
ElementDecl
= ThoroughGetElementDecl();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
472
_context.
ElementDecl
= elementDecl;
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (1)
245
context.
ElementDecl
= elementDecl;
116 references to ElementDecl
dotnet-svcutil-lib (116)
FrameworkFork\Microsoft.Xml\Xml\schema\basevalidator.cs (2)
174
ContentValidator contentValidator = context.
ElementDecl
.ContentValidator;
204
XmlSchemaContentType contentType = context.
ElementDecl
.ContentValidator.ContentType;
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (22)
106
context.
ElementDecl
!= null &&
107
context.
ElementDecl
.IsDeclaredInExternal &&
108
context.
ElementDecl
.ContentValidator.ContentType == XmlSchemaContentType.ElementOnly)
121
if (context.
ElementDecl
.ContentValidator == ContentValidator.Empty)
150
context.
ElementDecl
.ContentValidator.ValidateElement(elementName, context, out errorCode);
160
if (context.
ElementDecl
!= null)
162
Reader.SchemaTypeObject = context.
ElementDecl
.SchemaType;
164
if (Reader.IsEmptyElement && context.
ElementDecl
.DefaultValueTyped != null)
166
Reader.TypedValueObject = context.
ElementDecl
.DefaultValueTyped;
169
if (context.
ElementDecl
.HasRequiredAttribute)
182
SchemaAttDef attnDef = context.
ElementDecl
.GetAttDef(new XmlQualifiedName(reader.LocalName, reader.Prefix));
185
if (context.
ElementDecl
!= null && context.
ElementDecl
.HasRequiredAttribute)
214
if (context.
ElementDecl
.HasRequiredAttribute)
218
context.
ElementDecl
.CheckAttributes(_attPresence, Reader.StandAlone);
227
if (context.
ElementDecl
.Datatype != null)
269
if (context.
ElementDecl
!= null)
273
if (!context.
ElementDecl
.ContentValidator.CompleteValidation(context))
293
get { return context.
ElementDecl
!= null ? context.
ElementDecl
.ContentValidator.PreserveWhitespace : false; }
343
XmlSchemaDatatype dtype = isAttn ? attdef.Datatype : context.
ElementDecl
.Datatype;
374
SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef : (SchemaDeclBase)context.
ElementDecl
;
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (25)
112
context.
ElementDecl
.ContentValidator.ValidateElement(elementName, context, out errorCode);
155
if (context.
ElementDecl
!= null)
160
context.
ElementDecl
.ContentValidator.InitValidation(context);
170
if (context.
ElementDecl
!= null)
174
if (!context.
ElementDecl
.ContentValidator.CompleteValidation(context))
238
if (context.
ElementDecl
!= null)
240
if (context.
ElementDecl
.SchemaType != null)
242
reader.SchemaTypeObject = context.
ElementDecl
.SchemaType;
246
reader.SchemaTypeObject = context.
ElementDecl
.Datatype;
248
if (reader.IsEmptyElement && !context.IsNill && context.
ElementDecl
.DefaultValueTyped != null)
250
reader.TypedValueObject = context.
ElementDecl
.DefaultValueTyped;
253
if (this.context.
ElementDecl
.HasRequiredAttribute)
271
SchemaAttDef attnDef = schemaInfo.GetAttributeXdr(context.
ElementDecl
, QualifiedName(reader.LocalName, reader.NamespaceURI));
274
if (context.
ElementDecl
!= null && context.
ElementDecl
.HasRequiredAttribute)
300
if (context.
ElementDecl
.HasDefaultAttribute)
302
for (int i = 0; i < context.
ElementDecl
.DefaultAttDefs.Count; ++i)
304
reader.AddDefaultAttribute((SchemaAttDef)context.
ElementDecl
.DefaultAttDefs[i]);
307
if (context.
ElementDecl
.HasRequiredAttribute)
311
context.
ElementDecl
.CheckAttributes(_attPresence, reader.StandAlone);
319
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;
500
SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef : (SchemaDeclBase)context.
ElementDecl
;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (33)
553
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
755
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
797
XmlSchemaContentType contentType = _context.
ElementDecl
.ContentValidator.ContentType;
821
ArrayList names = _context.
ElementDecl
.ContentValidator.ExpectedParticles(_context, false, _schemaSet);
834
if (_context.
ElementDecl
.DefaultValueTyped != null)
879
XmlSchemaContentType contentType = _context.
ElementDecl
.ContentValidator.ContentType;
898
if (_context.
ElementDecl
.DefaultValueTyped != null)
946
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
1002
if (_context.
ElementDecl
!= null)
1004
ArrayList expected = _context.
ElementDecl
.ContentValidator.ExpectedParticles(_context, false, _schemaSet);
1017
SchemaElementDecl elementDecl = _context.
ElementDecl
;
1052
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
1146
if (_context.
ElementDecl
== null)
1150
return _context.
ElementDecl
.ContentValidator.ContentType;
1172
return (_processContents == XmlSchemaContentProcessing.Strict || _processContents == XmlSchemaContentProcessing.Lax) && _context.
ElementDecl
!= null && !_context.ValidationSkipped;
1205
SchemaElementDecl contextElementDecl = _context.
ElementDecl
;
1346
ContentValidator contentValidator = _context.
ElementDecl
.ContentValidator;
1347
if (contentValidator.ContentType == XmlSchemaContentType.Mixed && _context.
ElementDecl
.Presence == SchemaDeclBase.Use.Fixed)
1358
particle = _context.
ElementDecl
.ContentValidator.ValidateElement(head, _context, out errorCode);
1446
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
1491
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
1778
if (_context.
ElementDecl
.IsAbstract)
1787
if (ProcessIdentityConstraints && _context.
ElementDecl
.Constraints != null)
1836
SchemaElementDecl elementDecl = _context.
ElementDecl
;
1993
SchemaDeclBase decl = _context.
ElementDecl
as SchemaDeclBase;
2147
SchemaElementDecl currentDecl = _context.
ElementDecl
;
2187
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
2248
SchemaElementDecl currentElementDecl = _context.
ElementDecl
;
2528
if (context.
ElementDecl
!= null)
2530
ContentValidator contentValidator = context.
ElementDecl
.ContentValidator;
2587
if (context.
ElementDecl
!= null)
2591
names = context.
ElementDecl
.ContentValidator.ExpectedParticles(context, true, schemaSet);
2595
names = context.
ElementDecl
.ContentValidator.ExpectedElements(context, true);
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (34)
201
particle = context.
ElementDecl
.ContentValidator.ValidateElement(elementName, context, out errorCode);
248
if (context.
ElementDecl
!= null)
252
context.
ElementDecl
.ContentValidator.InitValidation(context);
334
if (context.
ElementDecl
!= null)
340
if (!context.
ElementDecl
.ContentValidator.CompleteValidation(context))
349
if (!(stringValue.Length == 0 && context.
ElementDecl
.DefaultValueTyped != null))
452
if (context.
ElementDecl
!= null)
454
if (context.
ElementDecl
.IsAbstract)
459
reader.SchemaTypeObject = context.
ElementDecl
.SchemaType;
461
if (reader.IsEmptyElement && !context.IsNill && context.
ElementDecl
.DefaultValueTyped != null)
463
reader.TypedValueObject = UnWrapUnion(context.
ElementDecl
.DefaultValueTyped);
470
if (this.context.
ElementDecl
.HasRequiredAttribute || HasIdentityConstraints)
494
SchemaAttDef attnDef = schemaInfo.GetAttributeXsd(context.
ElementDecl
, attQName, ref skipContents);
498
if (context.
ElementDecl
!= null && (context.
ElementDecl
.HasRequiredAttribute || _startIDConstraint != -1))
517
if (context.
ElementDecl
== null
543
if (context.
ElementDecl
.HasDefaultAttribute)
545
for (int i = 0; i < context.
ElementDecl
.DefaultAttDefs.Count; ++i)
547
SchemaAttDef attdef = (SchemaAttDef)context.
ElementDecl
.DefaultAttDefs[i];
557
if (context.
ElementDecl
.HasRequiredAttribute)
561
context.
ElementDecl
.CheckAttributes(_attPresence, reader.StandAlone);
569
if (context.
ElementDecl
.Datatype != null)
666
get { return context.
ElementDecl
!= null ? context.
ElementDecl
.ContentValidator.PreserveWhitespace : false; }
711
XmlSchemaDatatype dtype = isAttn ? attdef.Datatype : context.
ElementDecl
.Datatype;
737
SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef : (SchemaDeclBase)context.
ElementDecl
;
847
if (context.
ElementDecl
!= null)
849
if (context.
ElementDecl
.Constraints != null)
868
context.Constr = new ConstraintStruct[context.
ElementDecl
.Constraints.Length];
870
for (int i = 0; i < context.
ElementDecl
.Constraints.Length; ++i)
872
context.Constr[id++] = new ConstraintStruct(context.
ElementDecl
.Constraints[i]);
960
if (context.
ElementDecl
!= null)
962
if (context.
ElementDecl
.Datatype == null)
1073
laxis.Ks[laxis.Column] = new TypedObject(reader.TypedValueObject, stringValue, context.
ElementDecl
.Datatype);