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