Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Xml.Serialization.XmlSchemaImporter Class Reference

Classes

class  ElementComparer
 
class  TypeItems
 

Public Member Functions

 XmlSchemaImporter (XmlSchemas schemas)
 
 XmlSchemaImporter (XmlSchemas schemas, CodeIdentifiers? typeIdentifiers)
 
XmlTypeMapping ImportDerivedTypeMapping (XmlQualifiedName name, Type? baseType)
 
XmlTypeMapping ImportDerivedTypeMapping (XmlQualifiedName name, Type? baseType, bool baseTypeCanBeIndirect)
 
XmlTypeMapping ImportSchemaType (XmlQualifiedName typeName)
 
XmlTypeMapping ImportSchemaType (XmlQualifiedName typeName, Type? baseType)
 
XmlTypeMapping ImportSchemaType (XmlQualifiedName typeName, Type? baseType, bool baseTypeCanBeIndirect)
 
XmlTypeMapping ImportTypeMapping (XmlQualifiedName name)
 
XmlMembersMapping ImportMembersMapping (XmlQualifiedName name)
 
XmlMembersMappingImportAnyType (XmlQualifiedName typeName, string elementName)
 
XmlMembersMapping ImportMembersMapping (XmlQualifiedName[] names)
 
XmlMembersMapping ImportMembersMapping (XmlQualifiedName[] names, Type? baseType, bool baseTypeCanBeIndirect)
 
XmlMembersMapping ImportMembersMapping (string name, string? ns, SoapSchemaMember[] members)
 

Package Functions

TypeMapping GetDefaultMapping (TypeFlags flags)
 
override void ImportDerivedTypes (XmlQualifiedName baseName)
 
void MakeDerived (StructMapping structMapping, Type baseType, bool baseTypeCanBeIndirect)
 
string GenerateUniqueTypeName (string typeName)
 
StructMapping GetRootMapping ()
 
StructMapping ImportRootMapping ()
 
void AddReference (XmlQualifiedName name, NameTable references, string error)
 
void RemoveReference (XmlQualifiedName name, NameTable references)
 
void AddReservedIdentifiersForDataBinding (CodeIdentifiers scope)
 

Static Package Functions

static bool IsMixed (XmlSchemaType type)
 
static XmlQualifiedName BaseTypeName (XmlSchemaSimpleType dataType)
 

Properties

bool GenerateOrder [get]
 
ImportContext Context [get]
 
Hashtable ImportedElements [get]
 
Hashtable ImportedMappings [get]
 
CodeIdentifiers TypeIdentifiers [get]
 
XmlSchemas Schemas [get]
 
TypeScope Scope [get]
 
NameTable GroupsInUse [get]
 
NameTable TypesInUse [get]
 
CodeGenerationOptions Options [get]
 

Private Member Functions

ElementAccessor ImportElement (XmlQualifiedName name, Type desiredMappingType, Type baseType)
 
ElementAccessor ImportElement (XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns, bool topLevelElement)
 
TypeMapping ImportElementType (XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns)
 
void RunSchemaExtensions (TypeMapping mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context, TypeFlags flags)
 
string GenerateUniqueTypeName (string desiredName, string ns)
 
TypeMapping ImportType (XmlQualifiedName name, Type desiredMappingType, Type baseType, TypeFlags flags, bool addref)
 
TypeMapping ImportType (XmlSchemaComplexType type, string typeNs, string identifier, Type desiredMappingType, Type baseType, TypeFlags flags)
 
MembersMapping ImportMembersType (XmlSchemaType type, string typeNs, string identifier)
 
StructMapping ImportStructType (XmlSchemaType type, string typeNs, string identifier, Type baseType, bool arrayLike)
 
bool IsAllGroup (XmlSchemaType type)
 
StructMapping ImportStructDataType (XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType)
 
MemberMapping[] ImportTypeMembers (XmlSchemaType type, string typeNs, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, ref bool needExplicitOrder, bool order, bool allowUnboundedElements)
 
TypeItems GetTypeItems (XmlSchemaType type)
 
void ImportGroup (XmlSchemaGroupBase group, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool mixed, ref bool needExplicitOrder, bool allowDuplicates, bool groupRepeats, bool allowUnboundedElements)
 
MemberMapping ImportChoiceGroup (XmlSchemaGroupBase group, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool groupRepeats, ref bool needExplicitOrder, bool allowDuplicates)
 
bool IsNeedXmlSerializationAttributes (ArrayMapping arrayMapping)
 
bool GatherGroupChoices (XmlSchemaGroup group, NameTable choiceElements, string identifier, string ns, ref bool needExplicitOrder, bool allowDuplicates)
 
bool GatherGroupChoices (XmlSchemaParticle particle, NameTable choiceElements, string identifier, string ns, ref bool needExplicitOrder, bool allowDuplicates)
 
void AddScopeElement (INameScope scope, ElementAccessor element, ref bool duplicateElements, bool allowDuplicates)
 
void AddScopeElements (INameScope scope, ElementAccessor[] elements, ref bool duplicateElements, bool allowDuplicates)
 
void ImportGroupMembers (XmlSchemaParticle particle, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool groupRepeats, ref bool mixed, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements)
 
XmlSchemaElement GetTopLevelElement (XmlSchemaElement element)
 
XmlSchemaElement[] GetEquivalentElements (XmlSchemaElement element)
 
bool ImportSubstitutionGroupMember (XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates)
 
void ImportTextMember (CodeIdentifiers members, CodeIdentifiers membersScope, XmlQualifiedName simpleContentType)
 
MemberMapping ImportAnyMember (XmlSchemaAny any, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, ref bool mixed, ref bool needExplicitOrder, bool allowDuplicates)
 
ElementAccessor[] ImportAny (XmlSchemaAny any, bool makeElement, string targetNamespace)
 
ElementAccessor ImportArray (XmlSchemaElement element, string identifier, string ns, bool repeats)
 
ArrayMapping ImportArrayMapping (XmlSchemaType type, string identifier, string ns, bool repeats)
 
bool IsCyclicReferencedType (XmlSchemaElement element, List< string > identifiers)
 
SpecialMapping ImportAnyMapping (XmlSchemaType type, string identifier, string ns, bool repeats)
 
void ImportElementMember (XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements)
 
void ImportAttributeMember (XmlSchemaAttribute attribute, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns)
 
void ImportAnyAttributeMember (XmlSchemaAnyAttribute any, CodeIdentifiers members, CodeIdentifiers membersScope)
 
bool KeepXmlnsDeclarations (XmlSchemaType type, out string xmlnsMemberName)
 
void ImportXmlnsDeclarationsMember (XmlSchemaType type, CodeIdentifiers members, CodeIdentifiers membersScope)
 
void ImportAttributeGroupMembers (XmlSchemaAttributeGroup group, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns)
 
AttributeAccessor ImportSpecialAttribute (XmlQualifiedName name, string identifier)
 
AttributeAccessor ImportAttribute (XmlSchemaAttribute attribute, string identifier, string ns, XmlSchemaAttribute defaultValueProvider)
 
TypeMapping ImportDataType (XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType, TypeFlags flags, bool isList)
 
TypeMapping ImportEnumeratedDataType (XmlSchemaSimpleType dataType, string typeNs, string identifier, TypeFlags flags, bool isList)
 
EnumMapping ImportEnumeratedChoice (ElementAccessor[] choice, string typeNs, string typeName)
 
PrimitiveMapping ImportPrimitiveDataType (XmlSchemaSimpleType dataType, TypeFlags flags)
 
PrimitiveMapping ImportNonXsdPrimitiveDataType (XmlSchemaSimpleType dataType, string ns, TypeFlags flags)
 
XmlSchemaGroup FindGroup (XmlQualifiedName name)
 
XmlSchemaAttributeGroup FindAttributeGroup (XmlQualifiedName name)
 
TypeDesc GetDataTypeSource (XmlSchemaSimpleType dataType, TypeFlags flags)
 
XmlSchemaSimpleType FindDataType (XmlQualifiedName name, TypeFlags flags)
 
XmlSchemaType FindType (XmlQualifiedName name, TypeFlags flags)
 
XmlSchemaElement FindElement (XmlQualifiedName name)
 
XmlSchemaAttribute FindAttribute (XmlQualifiedName name)
 
XmlSchemaForm ElementForm (string ns, XmlSchemaElement element)
 
XmlSchemaForm AttributeForm (string ns, XmlSchemaAttribute attribute)
 
StructMapping CreateRootMapping ()
 

Private Attributes

XmlSchemas _schemas
 
StructMapping _root
 
readonly CodeGenerationOptions _options
 
TypeScope _scope
 
ImportContext _context
 
bool _rootImported
 
NameTable _typesInUse
 
NameTable _groupsInUse
 

Detailed Description

Definition at line 9 of file XmlSchemaImporter.cs.


The documentation for this class was generated from the following file: