1 write to _ElementDef
System.Xml (1)
System\Xml\Schema\XdrBuilder.cs (1)
399_ElementDef = new ElementContent();
96 references to _ElementDef
System.Xml (96)
System\Xml\Schema\XdrBuilder.cs (96)
586builder._ElementDef._ElementDecl = null; 587builder._ElementDef._AttDefList = null; 652builder._ElementDef._ElementDecl = new SchemaElementDecl(); 656builder._ElementDef._ContentAttr = SchemaContentNone; 657builder._ElementDef._OrderAttr = SchemaOrderNone; 658builder._ElementDef._MasterGroupRequired = false; 659builder._ElementDef._ExistTerminal = false; 660builder._ElementDef._AllowDataType = true; 661builder._ElementDef._HasDataType = false; 662builder._ElementDef._EnumerationRequired= false; 663builder._ElementDef._AttDefList = new Hashtable(); 664builder._ElementDef._MaxLength = uint.MaxValue; 665builder._ElementDef._MinLength = uint.MaxValue; 677builder._ElementDef._ElementDecl.Name = qname; 678builder._ElementDef._ElementDecl.Prefix = prefix; 679builder._SchemaInfo.ElementDecls.Add(qname, builder._ElementDef._ElementDecl); 686builder._ElementDef._ContentAttr = builder.GetContent((XmlQualifiedName)obj); 694builder._ElementDef._OrderAttr = builder._GroupDef._Order = builder.GetOrder((XmlQualifiedName)obj); 698builder._ElementDef._HasDataType = true; 708builder._ElementDef._ElementDecl.Datatype = dtype; 713builder._ElementDef._EnumerationRequired = true; 714builder._ElementDef._ElementDecl.Values = new List<string>((string[]) obj); 718ParseDtMaxLength(ref builder._ElementDef._MaxLength, obj, builder); 722ParseDtMinLength(ref builder._ElementDef._MinLength, obj, builder); 732if (builder._ElementDef._ElementDecl.Name.IsEmpty) { 741if (builder._ElementDef._HasDataType) { 742if (!builder._ElementDef._AllowDataType) { 747builder._ElementDef._ContentAttr = SchemaContentText; 750else if (builder._ElementDef._ContentAttr == SchemaContentNone) { 751switch (builder._ElementDef._OrderAttr) { 753builder._ElementDef._ContentAttr = SchemaContentMixed; 754builder._ElementDef._OrderAttr = SchemaOrderMany; 757builder._ElementDef._ContentAttr = SchemaContentElement; 760builder._ElementDef._ContentAttr = SchemaContentElement; 763builder._ElementDef._ContentAttr = SchemaContentMixed; 771ElementContent def = builder._ElementDef; 772switch (builder._ElementDef._ContentAttr) { 774builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly; 788builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Empty; 817SchemaElementDecl ed = builder._ElementDef._ElementDecl; 820if (builder._UndefinedAttributeTypes != null && builder._ElementDef._AttDefList != null) { 829pAttdef = (SchemaAttDef)builder._ElementDef._AttDefList[pName]; 855if (builder._ElementDef._MasterGroupRequired) { 859if (!builder._ElementDef._ExistTerminal) { 861builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Any; 865if(builder._ElementDef._ContentAttr != SchemaContentMixed) 878!builder._ElementDef._EnumerationRequired) { 883builder._ElementDef._EnumerationRequired) { 887CompareMinMaxLength(builder._ElementDef._MinLength, builder._ElementDef._MaxLength, builder); 888ed.MaxLength = (long)builder._ElementDef._MaxLength; 889ed.MinLength = (long)builder._ElementDef._MinLength; 892builder._ElementDef._ElementDecl.ContentValidator = builder._contentValidator.Finish(true); 896builder._ElementDef._ElementDecl = null; 897builder._ElementDef._AttDefList = null; 932if (builder._ElementDef._ElementDecl != null) { // Local AttributeType 933if (builder._ElementDef._AttDefList[qname] == null) { 934builder._ElementDef._AttDefList.Add(qname, builder._AttributeDef._AttDef); 1040if (builder._ElementDef._HasDataType || 1041(builder._ElementDef._ContentAttr == SchemaContentEmpty) || 1042(builder._ElementDef._ContentAttr == SchemaContentText)) { 1046builder._ElementDef._AllowDataType = false; 1048builder._ElementDef._HasType = false; 1049builder._ElementDef._MinVal = 1; 1050builder._ElementDef._MaxVal = 1; 1064builder._ElementDef._HasType = true; 1065if (builder._ElementDef._ExistTerminal) 1068builder._ElementDef._ExistTerminal = true; 1074builder._ElementDef._MinVal = ParseMinOccurs(obj, builder); 1078builder._ElementDef._MaxVal = ParseMaxOccurs(obj, builder); 1089if (builder._ElementDef._HasType) { 1091builder._ElementDef._MinVal, 1092builder._ElementDef._MaxVal); 1135if (builder._ElementDef._AttDefList != null) { 1136attdef = (SchemaAttDef)builder._ElementDef._AttDefList[qname]; 1167decl._ElementDecl = builder._ElementDef._ElementDecl; 1176builder._ElementDef._ElementDecl.AddAttDef(attdef); 1189if (builder._ElementDef._ContentAttr == SchemaContentEmpty || 1190builder._ElementDef._ContentAttr == SchemaContentText ) { 1201if (builder._ElementDef._ExistTerminal) 1205builder._ElementDef._ExistTerminal = false; 1212if (builder._ElementDef._ContentAttr == SchemaContentMixed && builder._GroupDef._Order != SchemaOrderMany) { 1235if (!builder._ElementDef._ExistTerminal) { 1264if (builder._ElementDef._HasDataType) { 1268if (!builder._ElementDef._AllowDataType) { 1274if (!builder._ElementDef._HasDataType) { 1277builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly; 1278builder._ElementDef._ContentAttr = SchemaContentText; 1279builder._ElementDef._MasterGroupRequired = false; 1509_ElementDef._AllowDataType = false; 1513_ElementDef._AllowDataType = false; 1517_ElementDef._AllowDataType = false; 1546if (_ElementDef._ElementDecl.IsIdDeclared) { 1548XmlQualifiedName.ToString(_ElementDef._ElementDecl.Name.Name, _ElementDef._ElementDecl.Prefix)); 1550_ElementDef._ElementDecl.IsIdDeclared = true;