1 write to _ElementDef
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (1)
414
_ElementDef
= new ElementContent();
96 references to _ElementDef
dotnet-svcutil-lib (96)
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (96)
643
builder.
_ElementDef
._ElementDecl = null;
644
builder.
_ElementDef
._AttDefList = null;
718
builder.
_ElementDef
._ElementDecl = new SchemaElementDecl();
722
builder.
_ElementDef
._ContentAttr = SchemaContentNone;
723
builder.
_ElementDef
._OrderAttr = SchemaOrderNone;
724
builder.
_ElementDef
._MasterGroupRequired = false;
725
builder.
_ElementDef
._ExistTerminal = false;
726
builder.
_ElementDef
._AllowDataType = true;
727
builder.
_ElementDef
._HasDataType = false;
728
builder.
_ElementDef
._EnumerationRequired = false;
729
builder.
_ElementDef
._AttDefList = new Hashtable();
730
builder.
_ElementDef
._MaxLength = uint.MaxValue;
731
builder.
_ElementDef
._MinLength = uint.MaxValue;
745
builder.
_ElementDef
._ElementDecl.Name = qname;
746
builder.
_ElementDef
._ElementDecl.Prefix = prefix;
747
builder._SchemaInfo.ElementDecls.Add(qname, builder.
_ElementDef
._ElementDecl);
756
builder.
_ElementDef
._ContentAttr = builder.GetContent((XmlQualifiedName)obj);
766
builder.
_ElementDef
._OrderAttr = builder._GroupDef._Order = builder.GetOrder((XmlQualifiedName)obj);
771
builder.
_ElementDef
._HasDataType = true;
784
builder.
_ElementDef
._ElementDecl.Datatype = dtype;
790
builder.
_ElementDef
._EnumerationRequired = true;
791
builder.
_ElementDef
._ElementDecl.Values = new List<string>((string[])obj);
796
ParseDtMaxLength(ref builder.
_ElementDef
._MaxLength, obj, builder);
801
ParseDtMinLength(ref builder.
_ElementDef
._MinLength, obj, builder);
812
if (builder.
_ElementDef
._ElementDecl.Name.IsEmpty)
822
if (builder.
_ElementDef
._HasDataType)
824
if (!builder.
_ElementDef
._AllowDataType)
831
builder.
_ElementDef
._ContentAttr = SchemaContentText;
834
else if (builder.
_ElementDef
._ContentAttr == SchemaContentNone)
836
switch (builder.
_ElementDef
._OrderAttr)
839
builder.
_ElementDef
._ContentAttr = SchemaContentMixed;
840
builder.
_ElementDef
._OrderAttr = SchemaOrderMany;
843
builder.
_ElementDef
._ContentAttr = SchemaContentElement;
846
builder.
_ElementDef
._ContentAttr = SchemaContentElement;
849
builder.
_ElementDef
._ContentAttr = SchemaContentMixed;
857
ElementContent def = builder.
_ElementDef
;
858
switch (builder.
_ElementDef
._ContentAttr)
861
builder.
_ElementDef
._ElementDecl.ContentValidator = ContentValidator.TextOnly;
876
builder.
_ElementDef
._ElementDecl.ContentValidator = ContentValidator.Empty;
910
SchemaElementDecl ed = builder.
_ElementDef
._ElementDecl;
913
if (builder._UndefinedAttributeTypes != null && builder.
_ElementDef
._AttDefList != null)
925
pAttdef = (SchemaAttDef)builder.
_ElementDef
._AttDefList[pName];
955
if (builder.
_ElementDef
._MasterGroupRequired)
960
if (!builder.
_ElementDef
._ExistTerminal)
964
builder.
_ElementDef
._ElementDecl.ContentValidator = ContentValidator.Any;
969
if (builder.
_ElementDef
._ContentAttr != SchemaContentMixed)
985
!builder.
_ElementDef
._EnumerationRequired)
991
builder.
_ElementDef
._EnumerationRequired)
996
CompareMinMaxLength(builder.
_ElementDef
._MinLength, builder.
_ElementDef
._MaxLength, builder);
997
ed.MaxLength = (long)builder.
_ElementDef
._MaxLength;
998
ed.MinLength = (long)builder.
_ElementDef
._MinLength;
1002
builder.
_ElementDef
._ElementDecl.ContentValidator = builder._contentValidator.Finish(true);
1006
builder.
_ElementDef
._ElementDecl = null;
1007
builder.
_ElementDef
._AttDefList = null;
1044
if (builder.
_ElementDef
._ElementDecl != null)
1046
if (builder.
_ElementDef
._AttDefList[qname] == null)
1048
builder.
_ElementDef
._AttDefList.Add(qname, builder._AttributeDef._AttDef);
1175
if (builder.
_ElementDef
._HasDataType ||
1176
(builder.
_ElementDef
._ContentAttr == SchemaContentEmpty) ||
1177
(builder.
_ElementDef
._ContentAttr == SchemaContentText))
1182
builder.
_ElementDef
._AllowDataType = false;
1184
builder.
_ElementDef
._HasType = false;
1185
builder.
_ElementDef
._MinVal = 1;
1186
builder.
_ElementDef
._MaxVal = 1;
1203
builder.
_ElementDef
._HasType = true;
1204
if (builder.
_ElementDef
._ExistTerminal)
1207
builder.
_ElementDef
._ExistTerminal = true;
1214
builder.
_ElementDef
._MinVal = ParseMinOccurs(obj, builder);
1219
builder.
_ElementDef
._MaxVal = ParseMaxOccurs(obj, builder);
1231
if (builder.
_ElementDef
._HasType)
1234
builder.
_ElementDef
._MinVal,
1235
builder.
_ElementDef
._MaxVal);
1286
if (builder.
_ElementDef
._AttDefList != null)
1288
attdef = (SchemaAttDef)builder.
_ElementDef
._AttDefList[qname];
1324
decl._ElementDecl = builder.
_ElementDef
._ElementDecl;
1333
builder.
_ElementDef
._ElementDecl.AddAttDef(attdef);
1348
if (builder.
_ElementDef
._ContentAttr == SchemaContentEmpty ||
1349
builder.
_ElementDef
._ContentAttr == SchemaContentText)
1361
if (builder.
_ElementDef
._ExistTerminal)
1365
builder.
_ElementDef
._ExistTerminal = false;
1373
if (builder.
_ElementDef
._ContentAttr == SchemaContentMixed && builder._GroupDef._Order != SchemaOrderMany)
1400
if (!builder.
_ElementDef
._ExistTerminal)
1433
if (builder.
_ElementDef
._HasDataType)
1438
if (!builder.
_ElementDef
._AllowDataType)
1446
if (!builder.
_ElementDef
._HasDataType)
1450
builder.
_ElementDef
._ElementDecl.ContentValidator = ContentValidator.TextOnly;
1451
builder.
_ElementDef
._ContentAttr = SchemaContentText;
1452
builder.
_ElementDef
._MasterGroupRequired = false;
1736
_ElementDef
._AllowDataType = false;
1741
_ElementDef
._AllowDataType = false;
1746
_ElementDef
._AllowDataType = false;
1782
if (
_ElementDef
._ElementDecl.IsIdDeclared)
1785
XmlQualifiedName.ToString(
_ElementDef
._ElementDecl.Name.Name,
_ElementDef
._ElementDecl.Prefix));
1787
_ElementDef
._ElementDecl.IsIdDeclared = true;