Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
System.Xml.Schema.XmlSchemaInference Class Referencesealed

Public Types

enum  InferenceOption { Restricted , Relaxed }
 

Public Member Functions

 XmlSchemaInference ()
 
XmlSchemaSet InferSchema (XmlReader instanceDocument)
 
XmlSchemaSet InferSchema (XmlReader instanceDocument, XmlSchemaSet schemas)
 

Package Functions

XmlSchemaSet InferSchema1 (XmlReader instanceDocument, XmlSchemaSet schemas)
 
void InferElement (XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema)
 
XmlSchemaElement FindMatchingElement (bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs)
 
void ProcessAttributes (ref XmlSchemaElement xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema)
 
XmlSchemaAttribute FindAttribute (ICollection attributes, string attrName)
 
XmlSchemaElement FindGlobalElement (string namespaceURI, string localName, out XmlSchema parentSchema)
 
XmlSchemaElement FindElement (XmlSchemaObjectCollection elements, string elementName)
 
XmlSchemaAttribute FindAttributeRef (ICollection attributes, string attributeName, string nsURI)
 
XmlSchemaElement FindElementRef (XmlSchemaObjectCollection elements, string elementName, string nsURI)
 
void MakeExistingAttributesOptional (XmlSchemaComplexType ct, XmlSchemaObjectCollection attributesInInstance)
 
XmlQualifiedName RefineSimpleType (string s, ref int iTypeFlags)
 
void SetMinMaxOccurs (XmlSchemaElement el, bool setMaxOccurs)
 

Static Package Functions

static int InferSimpleType (string s, ref bool bNeedsRangeCheck)
 
static int DateTime (string s, bool bDate, bool bTime)
 

Static Package Attributes

static XmlQualifiedName ST_boolean = new XmlQualifiedName("boolean", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_byte = new XmlQualifiedName("byte", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_unsignedByte = new XmlQualifiedName("unsignedByte", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_short = new XmlQualifiedName("short", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_unsignedShort = new XmlQualifiedName("unsignedShort", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_int = new XmlQualifiedName("int", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_unsignedInt = new XmlQualifiedName("unsignedInt", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_long = new XmlQualifiedName("long", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_unsignedLong = new XmlQualifiedName("unsignedLong", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_integer = new XmlQualifiedName("integer", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_decimal = new XmlQualifiedName("decimal", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_float = new XmlQualifiedName("float", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_double = new XmlQualifiedName("double", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_duration = new XmlQualifiedName("duration", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_dateTime = new XmlQualifiedName("dateTime", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_time = new XmlQualifiedName("time", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_date = new XmlQualifiedName("date", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_gYearMonth = new XmlQualifiedName("gYearMonth", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_string = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName ST_anySimpleType = new XmlQualifiedName("anySimpleType", "http://www.w3.org/2001/XMLSchema")
 
static XmlQualifiedName[] SimpleTypes
 

Properties

InferenceOption Occurrence [get, set]
 
InferenceOption TypeInference [get, set]
 

Private Member Functions

XmlSchemaAttribute AddAttribute (string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes)
 
XmlSchema CreateXmlSchema (string targetNS)
 
XmlSchemaElement AddElement (string localName, string prefix, string childURI, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection)
 
XmlSchemaSimpleContentExtension CheckSimpleContentExtension (XmlSchemaComplexType ct)
 
XmlSchemaType GetEffectiveSchemaType (XmlSchemaElement elem, bool bCreatingNewType)
 
void MoveAttributes (XmlSchemaSimpleContentExtension scExtension, XmlSchemaComplexType ct)
 
void MoveAttributes (XmlSchemaComplexType ct, XmlSchemaSimpleContentExtension simpleContentExtension, bool bCreatingNewType)
 
void SwitchUseToOptional (XmlSchemaObjectCollection attributes, XmlSchemaObjectCollection attributesInInstance)
 
XmlSchemaElement CreateNewElementforChoice (XmlSchemaElement copyElement)
 

Static Private Member Functions

static int GetSchemaType (XmlQualifiedName qname)
 

Private Attributes

XmlSchema _rootSchema
 
XmlSchemaSet _schemaSet
 
XmlReader _xtr
 
readonly NameTable _nametable
 
string _targetNamespace
 
readonly XmlNamespaceManager _namespaceManager
 
readonly ArrayList _schemaList
 
InferenceOption _occurrence
 
InferenceOption _typeInference
 

Detailed Description

Definition at line 5 of file XmlSchemaInference.cs.


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