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