Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Xml.Schema.SchemaCollectionCompiler Class Referencesealed

Public Member Functions

 SchemaCollectionCompiler (XmlNameTable nameTable, ValidationEventHandler eventHandler)
 
bool Execute (XmlSchema schema, SchemaInfo schemaInfo, bool compileContentModel)
 

Protected Member Functions

void AddToTable (XmlSchemaObjectTable table, XmlQualifiedName qname, XmlSchemaObject item)
 
void SendValidationEvent (string code, XmlSchemaObject source)
 
void SendValidationEvent (string code, string msg, XmlSchemaObject source)
 
void SendValidationEvent (string code, string msg1, string msg2, XmlSchemaObject source)
 
void SendValidationEvent (string code, string[] args, Exception innerException, XmlSchemaObject source)
 
void SendValidationEvent (string code, string msg1, string msg2, string sourceUri, int lineNumber, int linePosition)
 
void SendValidationEvent (string code, XmlSchemaObject source, XmlSeverityType severity)
 
void SendValidationEvent (XmlSchemaException e)
 
void SendValidationEvent (string code, string msg, XmlSchemaObject source, XmlSeverityType severity)
 
void SendValidationEvent (XmlSchemaException e, XmlSeverityType severity)
 
void SendValidationEventNoThrow (XmlSchemaException e, XmlSeverityType severity)
 

Static Package Functions

static void Cleanup (XmlSchema schema)
 

Properties

XmlNameTable NameTable [get]
 
SchemaNames SchemaNames [get]
 
ValidationEventHandler EventHandler [get]
 
XmlSchemaCompilationSettings CompilationSettings [get]
 
bool HasErrors [get]
 

Private Member Functions

void Prepare ()
 
void Cleanup ()
 
void Compile ()
 
void Output (SchemaInfo schemaInfo)
 
void CompileSubstitutionGroup (XmlSchemaSubstitutionGroupV1Compat substitutionGroup)
 
void CheckSubstitutionGroup (XmlSchemaSubstitutionGroup substitutionGroup)
 
void CompileGroup (XmlSchemaGroup group)
 
void CompileSimpleType (XmlSchemaSimpleType simpleType)
 
XmlSchemaSimpleType[] CompileBaseMemberTypes (XmlSchemaSimpleType simpleType)
 
void CheckUnionType (XmlSchemaSimpleType unionMember, List< XmlSchemaSimpleType > memberTypeDefinitions, XmlSchemaSimpleType parentType)
 
void CompileComplexType (XmlSchemaComplexType complexType)
 
void CompileSimpleContentExtension (XmlSchemaComplexType complexType, XmlSchemaSimpleContentExtension simpleExtension)
 
void CompileSimpleContentRestriction (XmlSchemaComplexType complexType, XmlSchemaSimpleContentRestriction simpleRestriction)
 
void CompileComplexContentExtension (XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentExtension complexExtension)
 
void CompileComplexContentRestriction (XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaComplexContentRestriction complexRestriction)
 
void CheckParticleDerivation (XmlSchemaComplexType complexType)
 
XmlSchemaParticle CompileContentTypeParticle (XmlSchemaParticle particle, bool substitution)
 
XmlSchemaParticle CannonicalizeParticle (XmlSchemaParticle particle, bool root, bool substitution)
 
XmlSchemaParticle CannonicalizeElement (XmlSchemaElement element, bool substitution)
 
XmlSchemaParticle CannonicalizeGroupRef (XmlSchemaGroupRef groupRef, bool root, bool substitution)
 
XmlSchemaParticle CannonicalizeAll (XmlSchemaAll all, bool root, bool substitution)
 
XmlSchemaParticle CannonicalizeChoice (XmlSchemaChoice choice, bool root, bool substitution)
 
XmlSchemaParticle CannonicalizeSequence (XmlSchemaSequence sequence, bool root, bool substitution)
 
bool IsValidRestriction (XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
 
bool IsElementFromElement (XmlSchemaElement derivedElement, XmlSchemaElement baseElement)
 
bool IsElementFromAny (XmlSchemaElement derivedElement, XmlSchemaAny baseAny)
 
bool IsAnyFromAny (XmlSchemaAny derivedAny, XmlSchemaAny baseAny)
 
bool IsGroupBaseFromAny (XmlSchemaGroupBase derivedGroupBase, XmlSchemaAny baseAny)
 
bool IsElementFromGroupBase (XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly)
 
bool IsGroupBaseFromGroupBase (XmlSchemaGroupBase derivedGroupBase, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly)
 
bool IsSequenceFromAll (XmlSchemaSequence derivedSequence, XmlSchemaAll baseAll)
 
bool IsSequenceFromChoice (XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice)
 
void CalculateSequenceRange (XmlSchemaSequence sequence, out decimal minOccurs, out decimal maxOccurs)
 
bool IsValidOccurrenceRangeRestriction (XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
 
bool IsValidOccurrenceRangeRestriction (decimal minOccurs, decimal maxOccurs, decimal baseMinOccurs, decimal baseMaxOccurs)
 
int GetMappingParticle (XmlSchemaParticle particle, XmlSchemaObjectCollection collection)
 
bool IsParticleEmptiable (XmlSchemaParticle particle)
 
void CalculateEffectiveTotalRange (XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs)
 
void PushComplexType (XmlSchemaComplexType complexType)
 
XmlSchemaContentType GetSchemaContentType (XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle)
 
void CompileAttributeGroup (XmlSchemaAttributeGroup attributeGroup)
 
void CompileLocalAttributes (XmlSchemaComplexType baseType, XmlSchemaComplexType derivedType, XmlSchemaObjectCollection attributes, XmlSchemaAnyAttribute anyAttribute, XmlSchemaDerivationMethod derivedBy)
 
XmlSchemaAnyAttribute CompileAnyAttributeUnion (XmlSchemaAnyAttribute a, XmlSchemaAnyAttribute b)
 
XmlSchemaAnyAttribute CompileAnyAttributeIntersection (XmlSchemaAnyAttribute a, XmlSchemaAnyAttribute b)
 
void CompileAttribute (XmlSchemaAttribute xa)
 
void CompileIdentityConstraint (XmlSchemaIdentityConstraint xi)
 
void CompileElement (XmlSchemaElement xe)
 
ContentValidator CompileComplexContent (XmlSchemaComplexType complexType)
 
void BuildParticleContentModel (ParticleContentValidator contentValidator, XmlSchemaParticle particle)
 
void CompileParticleElements (XmlSchemaComplexType complexType, XmlSchemaParticle particle)
 
void CompileCompexTypeElements (XmlSchemaComplexType complexType)
 
XmlSchemaSimpleType GetSimpleType (XmlQualifiedName name)
 
XmlSchemaComplexType GetComplexType (XmlQualifiedName name)
 
XmlSchemaType GetAnySchemaType (XmlQualifiedName name)
 
bool IsValidAttributeGroupRedefine (XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table)
 
bool IsValidGroupRedefine (XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table)
 
bool IsValidTypeRedefine (XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table)
 

Static Private Member Functions

static void CleanupAttribute (XmlSchemaAttribute attribute)
 
static void CleanupAttributeGroup (XmlSchemaAttributeGroup attributeGroup)
 
static void CleanupComplexType (XmlSchemaComplexType complexType)
 
static void CleanupSimpleType (XmlSchemaSimpleType simpleType)
 
static void CleanupElement (XmlSchemaElement element)
 
static void CleanupAttributes (XmlSchemaObjectCollection attributes)
 
static void CleanupGroup (XmlSchemaGroup group)
 
static void CleanupParticle (XmlSchemaParticle particle)
 

Private Attributes

bool _compileContentModel
 
readonly XmlSchemaObjectTable _examplars = new XmlSchemaObjectTable()
 
readonly Stack< XmlSchemaComplexType_complexTypeStack = new Stack<XmlSchemaComplexType>()
 
XmlSchema _schema
 
readonly XmlNameTable _nameTable
 
SchemaNames _schemaNames
 
readonly ValidationEventHandler _eventHandler
 
readonly XmlSchemaCompilationSettings _compilationSettings
 
int _errorCount
 
readonly string _nsXml
 

Detailed Description

Definition at line 6 of file SchemaCollectionCompiler.cs.


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