Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSchemaAttribute.cs
Go to the documentation of this file.
4
5namespace System.Xml.Schema;
6
8{
9 private string _defaultValue;
10
11 private string _fixedValue;
12
13 private string _name;
14
16
18
20
22
24
26
28
30
31 [XmlAttribute("default")]
32 [DefaultValue(null)]
33 public string? DefaultValue
34 {
35 get
36 {
37 return _defaultValue;
38 }
39 set
40 {
42 }
43 }
44
45 [XmlAttribute("fixed")]
46 [DefaultValue(null)]
47 public string? FixedValue
48 {
49 get
50 {
51 return _fixedValue;
52 }
53 set
54 {
56 }
57 }
58
59 [XmlAttribute("form")]
62 {
63 get
64 {
65 return _form;
66 }
67 set
68 {
69 _form = value;
70 }
71 }
72
73 [XmlAttribute("name")]
74 public string? Name
75 {
76 get
77 {
78 return _name;
79 }
80 set
81 {
82 _name = value;
83 }
84 }
85
86 [XmlAttribute("ref")]
88 {
89 get
90 {
91 return _refName;
92 }
93 set
94 {
95 _refName = ((value == null) ? XmlQualifiedName.Empty : value);
96 }
97 }
98
99 [XmlAttribute("type")]
101 {
102 get
103 {
104 return _typeName;
105 }
106 set
107 {
108 _typeName = ((value == null) ? XmlQualifiedName.Empty : value);
109 }
110 }
111
112 [XmlElement("simpleType")]
114 {
115 get
116 {
117 return _type;
118 }
119 set
120 {
121 _type = value;
122 }
123 }
124
125 [XmlAttribute("use")]
127 public XmlSchemaUse Use
128 {
129 get
130 {
131 return _use;
132 }
133 set
134 {
135 _use = value;
136 }
137 }
138
139 [XmlIgnore]
141
142 [XmlIgnore]
143 [Obsolete("XmlSchemaAttribute.AttributeType has been deprecated. Use the AttributeSchemaType property that returns a strongly typed attribute type instead.")]
144 public object? AttributeType
145 {
146 get
147 {
148 if (_attributeType == null)
149 {
150 return null;
151 }
152 if (_attributeType.QualifiedName.Namespace == "http://www.w3.org/2001/XMLSchema")
153 {
155 }
156 return _attributeType;
157 }
158 }
159
160 [XmlIgnore]
162
163 [XmlIgnore]
165 {
166 get
167 {
168 if (_attributeType != null)
169 {
171 }
172 return null;
173 }
174 }
175
177 {
178 get
179 {
180 return _attDef;
181 }
182 set
183 {
184 _attDef = value;
185 }
186 }
187
188 internal bool HasDefault => _defaultValue != null;
189
190 [XmlIgnore]
191 internal override string? NameAttribute
192 {
193 get
194 {
195 return Name;
196 }
197 set
198 {
199 Name = value;
200 }
201 }
202
203 [return: NotNullIfNotNull("schemaSet")]
216
218 {
220 }
221
226
235}
void SetQualifiedName(XmlQualifiedName value)
void SetAttributeType(XmlSchemaSimpleType value)
XmlReader Validate(XmlReader reader, XmlResolver resolver, XmlSchemaSet schemaSet, ValidationEventHandler valEventHandler)
static readonly XmlQualifiedName Empty