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