Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSchemaAny.cs
Go to the documentation of this file.
2using System.Text;
4
5namespace System.Xml.Schema;
6
8{
9 private string _ns;
10
12
14
15 [XmlAttribute("namespace")]
16 public string? Namespace
17 {
18 get
19 {
20 return _ns;
21 }
22 set
23 {
24 _ns = value;
25 }
26 }
27
28 [XmlAttribute("processContents")]
29 [DefaultValue(XmlSchemaContentProcessing.None)]
31 {
32 get
33 {
34 return _processContents;
35 }
36 set
37 {
39 }
40 }
41
42 [XmlIgnore]
44
45 [XmlIgnore]
46 internal string ResolvedNamespace
47 {
48 get
49 {
50 if (_ns == null || _ns.Length == 0)
51 {
52 return "##any";
53 }
54 return _ns;
55 }
56 }
57
58 [XmlIgnore]
60 {
61 get
62 {
63 if (_processContents != 0)
64 {
65 return _processContents;
66 }
67 return XmlSchemaContentProcessing.Strict;
68 }
69 }
70
71 internal override string NameString
72 {
73 get
74 {
75 switch (_namespaceList.Type)
76 {
78 return "##any:*";
80 return "##other:*";
82 {
84 int num = 1;
85 foreach (string item in _namespaceList.Enumerate)
86 {
87 stringBuilder.Append(item + ":*");
88 if (num < _namespaceList.Enumerate.Count)
89 {
90 stringBuilder.Append(' ');
91 }
92 num++;
93 }
94 return stringBuilder.ToString();
95 }
96 default:
97 return string.Empty;
98 }
99 }
100 }
101
103 {
104 if (_ns != null)
105 {
107 }
108 else
109 {
111 }
112 }
113
115 {
116 if (_ns != null)
117 {
119 }
120 else
121 {
123 }
124 }
125
126 internal bool Allows(XmlQualifiedName qname)
127 {
128 return _namespaceList.Allows(qname.Namespace);
129 }
130}
virtual bool Allows(string ns)
XmlSchemaContentProcessing _processContents
XmlSchemaContentProcessing ProcessContentsCorrect
void BuildNamespaceListV1Compat(string targetNamespace)
bool Allows(XmlQualifiedName qname)
XmlSchemaContentProcessing ProcessContents
void BuildNamespaceList(string targetNamespace)