1 write to _ElementDef
System.Private.Xml (1)
System\Xml\Schema\XdrBuilder.cs (1)
411_ElementDef = new ElementContent();
96 references to _ElementDef
System.Private.Xml (96)
System\Xml\Schema\XdrBuilder.cs (96)
632builder._ElementDef._ElementDecl = null; 633builder._ElementDef._AttDefList = null; 708builder._ElementDef._ElementDecl = new SchemaElementDecl(); 712builder._ElementDef._ContentAttr = SchemaContentNone; 713builder._ElementDef._OrderAttr = SchemaOrderNone; 714builder._ElementDef._MasterGroupRequired = false; 715builder._ElementDef._ExistTerminal = false; 716builder._ElementDef._AllowDataType = true; 717builder._ElementDef._HasDataType = false; 718builder._ElementDef._EnumerationRequired = false; 719builder._ElementDef._AttDefList = new Hashtable(); 720builder._ElementDef._MaxLength = uint.MaxValue; 721builder._ElementDef._MinLength = uint.MaxValue; 736builder._ElementDef._ElementDecl!.Name = qname; 737builder._ElementDef._ElementDecl!.Prefix = prefix; 738builder._SchemaInfo.ElementDecls.Add(qname, builder._ElementDef._ElementDecl); 747builder._ElementDef._ContentAttr = builder.GetContent((XmlQualifiedName)obj); 757builder._ElementDef._OrderAttr = builder._GroupDef._Order = builder.GetOrder((XmlQualifiedName)obj); 762builder._ElementDef._HasDataType = true; 776builder._ElementDef._ElementDecl!.Datatype = dtype!; 782builder._ElementDef._EnumerationRequired = true; 783builder._ElementDef._ElementDecl!.Values = new List<string>((string[])obj); 788ParseDtMaxLength(ref builder._ElementDef._MaxLength, obj, builder); 793ParseDtMinLength(ref builder._ElementDef._MinLength, obj, builder); 804if (builder._ElementDef._ElementDecl!.Name.IsEmpty) 814if (builder._ElementDef._HasDataType) 816if (!builder._ElementDef._AllowDataType) 823builder._ElementDef._ContentAttr = SchemaContentText; 826else if (builder._ElementDef._ContentAttr == SchemaContentNone) 828switch (builder._ElementDef._OrderAttr) 831builder._ElementDef._ContentAttr = SchemaContentMixed; 832builder._ElementDef._OrderAttr = SchemaOrderMany; 835builder._ElementDef._ContentAttr = SchemaContentElement; 838builder._ElementDef._ContentAttr = SchemaContentElement; 841builder._ElementDef._ContentAttr = SchemaContentMixed; 849ElementContent def = builder._ElementDef; 850switch (builder._ElementDef._ContentAttr) 853builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly; 868builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Empty; 902SchemaElementDecl? ed = builder._ElementDef._ElementDecl; 905if (builder._UndefinedAttributeTypes != null && builder._ElementDef._AttDefList != null) 917pAttdef = (SchemaAttDef?)builder._ElementDef._AttDefList[pName]; 947if (builder._ElementDef._MasterGroupRequired) 952if (!builder._ElementDef._ExistTerminal) 956builder._ElementDef._ElementDecl!.ContentValidator = ContentValidator.Any; 961if (builder._ElementDef._ContentAttr != SchemaContentMixed) 978!builder._ElementDef._EnumerationRequired) 984builder._ElementDef._EnumerationRequired) 990CompareMinMaxLength(builder._ElementDef._MinLength, builder._ElementDef._MaxLength, builder); 991ed.MaxLength = (long)builder._ElementDef._MaxLength; 992ed.MinLength = (long)builder._ElementDef._MinLength; 996builder._ElementDef._ElementDecl!.ContentValidator = builder._contentValidator.Finish(true); 1000builder._ElementDef._ElementDecl = null; 1001builder._ElementDef._AttDefList = null; 1038if (builder._ElementDef._ElementDecl != null) 1040if (builder._ElementDef._AttDefList![qname] == null) 1042builder._ElementDef._AttDefList.Add(qname, builder._AttributeDef._AttDef); 1165if (builder._ElementDef._HasDataType || 1166(builder._ElementDef._ContentAttr == SchemaContentEmpty) || 1167(builder._ElementDef._ContentAttr == SchemaContentText)) 1172builder._ElementDef._AllowDataType = false; 1174builder._ElementDef._HasType = false; 1175builder._ElementDef._MinVal = 1; 1176builder._ElementDef._MaxVal = 1; 1193builder._ElementDef._HasType = true; 1194if (builder._ElementDef._ExistTerminal) 1197builder._ElementDef._ExistTerminal = true; 1204builder._ElementDef._MinVal = ParseMinOccurs(obj, builder); 1209builder._ElementDef._MaxVal = ParseMaxOccurs(obj, builder); 1221if (builder._ElementDef._HasType) 1224builder._ElementDef._MinVal, 1225builder._ElementDef._MaxVal); 1275if (builder._ElementDef._AttDefList != null) 1277attdef = (SchemaAttDef?)builder._ElementDef._AttDefList[qname]; 1313decl._ElementDecl = builder._ElementDef._ElementDecl; 1322builder._ElementDef._ElementDecl!.AddAttDef(attdef); 1337if (builder._ElementDef._ContentAttr == SchemaContentEmpty || 1338builder._ElementDef._ContentAttr == SchemaContentText) 1350if (builder._ElementDef._ExistTerminal) 1354builder._ElementDef._ExistTerminal = false; 1362if (builder._ElementDef._ContentAttr == SchemaContentMixed && builder._GroupDef._Order != SchemaOrderMany) 1389if (!builder._ElementDef._ExistTerminal) 1422if (builder._ElementDef._HasDataType) 1427if (!builder._ElementDef._AllowDataType) 1435if (!builder._ElementDef._HasDataType) 1439builder._ElementDef._ElementDecl!.ContentValidator = ContentValidator.TextOnly; 1440builder._ElementDef._ContentAttr = SchemaContentText; 1441builder._ElementDef._MasterGroupRequired = false; 1725_ElementDef._AllowDataType = false; 1730_ElementDef._AllowDataType = false; 1735_ElementDef._AllowDataType = false; 1771if (_ElementDef._ElementDecl!.IsIdDeclared) 1774XmlQualifiedName.ToString(_ElementDef._ElementDecl.Name.Name, _ElementDef._ElementDecl.Prefix)); 1776_ElementDef._ElementDecl.IsIdDeclared = true;