Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CollectElementsAnnotations() [2/2]

void System.Data.XSDSchema.CollectElementsAnnotations ( XmlSchema schema,
ArrayList schemaList )
inlineprivate

Definition at line 138 of file XSDSchema.cs.

139 {
141 {
142 return;
143 }
145 foreach (XmlSchemaObject item in schema.Items)
146 {
148 {
150 }
152 {
156 }
158 {
161 }
163 {
166 }
167 if (!(item is XmlSchemaType))
168 {
169 continue;
170 }
171 string text = null;
173 {
174 text = GetMsdataAttribute((XmlSchemaType)item, "targetNamespace");
175 }
179 {
180 continue;
181 }
182 if (_udSimpleTypes == null)
183 {
185 }
186 _udSimpleTypes[xmlSchemaType.QualifiedName.ToString()] = xmlSchemaSimpleType;
187 SimpleType simpleType = ((DataColumn)_existingSimpleTypeMap[xmlSchemaType.QualifiedName.ToString()])?.SimpleType;
188 if (simpleType != null)
189 {
190 SimpleType simpleType2 = new SimpleType(xmlSchemaSimpleType);
191 string text2 = simpleType.HasConflictingDefinition(simpleType2);
192 if (text2.Length != 0)
193 {
194 throw ExceptionBuilder.InvalidDuplicateNamedSimpleTypeDelaration(simpleType2.SimpleTypeQualifiedName, text2);
195 }
196 }
197 }
198 foreach (XmlSchemaExternal include in schema.Includes)
199 {
200 if (!(include is XmlSchemaImport) && include.Schema != null)
201 {
203 }
204 }
205 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
void CollectElementsAnnotations(XmlSchema schema)
Definition XSDSchema.cs:131
Hashtable _udSimpleTypes
Definition XSDSchema.cs:65
XmlSchemaObjectCollection _elements
Definition XSDSchema.cs:51
Hashtable _schemaTypes
Definition XSDSchema.cs:59
static string GetMsdataAttribute(XmlSchemaAnnotated node, string ln)
Definition XSDSchema.cs:342
XmlSchemaObjectCollection _annotations
Definition XSDSchema.cs:49
Hashtable _elementsTable
Definition XSDSchema.cs:55
Hashtable _attributeGroups
Definition XSDSchema.cs:57
Hashtable _attributes
Definition XSDSchema.cs:53
Hashtable _existingSimpleTypeMap
Definition XSDSchema.cs:67

References System.Data.XSDSchema._annotations, System.Data.XSDSchema._attributeGroups, System.Data.XSDSchema._attributes, System.Data.XSDSchema._elements, System.Data.XSDSchema._elementsTable, System.Data.XSDSchema._existingSimpleTypeMap, System.Data.XSDSchema._schemaTypes, System.Data.XSDSchema._udSimpleTypes, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.XmlSchemaObjectCollection.Add(), System.Data.XSDSchema.CollectElementsAnnotations(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Xml.Dictionary, System.Data.XSDSchema.GetMsdataAttribute(), System.Data.ExceptionBuilder.InvalidDuplicateNamedSimpleTypeDelaration(), System.item, and System.text.