Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSchemaAnyAttribute.cs
Go to the documentation of this file.
3
4namespace System.Xml.Schema;
5
7{
8 private string _ns;
9
11
13
14 [XmlAttribute("namespace")]
15 public string? Namespace
16 {
17 get
18 {
19 string text = _ns;
20 if (text == null)
21 {
22 NamespaceList? namespaceList = NamespaceList;
23 if (namespaceList == null)
24 {
25 return null;
26 }
27 text = namespaceList.ToString();
28 }
29 return text;
30 }
31 set
32 {
33 _ns = value;
34 }
35 }
36
37 [XmlAttribute("processContents")]
38 [DefaultValue(XmlSchemaContentProcessing.None)]
40 {
41 get
42 {
43 return _processContents;
44 }
45 set
46 {
48 }
49 }
50
51 [XmlIgnore]
53
54 [XmlIgnore]
56 {
57 get
58 {
59 if (_processContents != 0)
60 {
61 return _processContents;
62 }
63 return XmlSchemaContentProcessing.Strict;
64 }
65 }
66
67 internal void BuildNamespaceList(string targetNamespace)
68 {
69 if (_ns != null)
70 {
72 }
73 else
74 {
76 }
77 }
78
80 {
81 if (_ns != null)
82 {
84 }
85 else
86 {
88 }
89 }
90
91 internal bool Allows(XmlQualifiedName qname)
92 {
93 return _namespaceList.Allows(qname.Namespace);
94 }
95
97 {
98 return System.Xml.Schema.NamespaceList.IsSubset(sub.NamespaceList, super.NamespaceList);
99 }
100
102 {
103 NamespaceList namespaceList = System.Xml.Schema.NamespaceList.Intersection(o1.NamespaceList, o2.NamespaceList, v1Compat);
104 if (namespaceList != null)
105 {
111 }
112 return null;
113 }
114
116 {
117 NamespaceList namespaceList = System.Xml.Schema.NamespaceList.Union(o1.NamespaceList, o2.NamespaceList, v1Compat);
118 if (namespaceList != null)
119 {
125 }
126 return null;
127 }
128}
static bool IsSubset(NamespaceList sub, NamespaceList super)
static NamespaceList Intersection(NamespaceList o1, NamespaceList o2, bool v1Compat)
static NamespaceList Union(NamespaceList o1, NamespaceList o2, bool v1Compat)
virtual bool Allows(string ns)
static bool IsSubset(XmlSchemaAnyAttribute sub, XmlSchemaAnyAttribute super)
void BuildNamespaceList(string targetNamespace)
static XmlSchemaAnyAttribute Intersection(XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat)
void BuildNamespaceListV1Compat(string targetNamespace)
XmlSchemaContentProcessing ProcessContentsCorrect
static XmlSchemaAnyAttribute Union(XmlSchemaAnyAttribute o1, XmlSchemaAnyAttribute o2, bool v1Compat)