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

Public Member Functions

 Compiler (XmlNameTable nameTable, ValidationEventHandler eventHandler, XmlSchema schemaForSchema, XmlSchemaCompilationSettings compilationSettings)
 
bool Execute (XmlSchemaSet schemaSet, SchemaInfo schemaCompiledInfo)
 

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)
 

Package Functions

void Prepare (XmlSchema schema, bool cleanup)
 
void ImportAllCompiledSchemas (XmlSchemaSet schemaSet)
 
bool Compile ()
 

Properties

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

Private Member Functions

void UpdateSForSSimpleTypes ()
 
void Output (SchemaInfo schemaInfo)
 
void CleanupAttribute (XmlSchemaAttribute attribute)
 
void CleanupAttributeGroup (XmlSchemaAttributeGroup attributeGroup)
 
void CleanupComplexType (XmlSchemaComplexType complexType)
 
void CleanupSimpleType (XmlSchemaSimpleType simpleType)
 
void CleanupElement (XmlSchemaElement element)
 
void CleanupAttributes (XmlSchemaObjectCollection attributes)
 
void CleanupGroup (XmlSchemaGroup group)
 
void CleanupParticle (XmlSchemaParticle particle)
 
void ProcessSubstitutionGroups ()
 
void CompileSubstitutionGroup (XmlSchemaSubstitutionGroup substitutionGroup)
 
void RecursivelyCheckRedefinedGroups (XmlSchemaGroup redefinedGroup, XmlSchemaGroup baseGroup)
 
void RecursivelyCheckRedefinedAttributeGroups (XmlSchemaAttributeGroup attributeGroup, XmlSchemaAttributeGroup baseAttributeGroup)
 
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)
 
void CheckParticleDerivation (XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
 
XmlSchemaParticle CompileContentTypeParticle (XmlSchemaParticle particle)
 
XmlSchemaParticle CannonicalizeParticle (XmlSchemaParticle particle, bool root)
 
XmlSchemaParticle CannonicalizeElement (XmlSchemaElement element)
 
XmlSchemaParticle CannonicalizeGroupRef (XmlSchemaGroupRef groupRef, bool root)
 
XmlSchemaParticle CannonicalizeAll (XmlSchemaAll all, bool root)
 
XmlSchemaParticle CannonicalizeChoice (XmlSchemaChoice choice, bool root)
 
XmlSchemaParticle CannonicalizeSequence (XmlSchemaSequence sequence, bool root)
 
XmlSchemaParticle CannonicalizePointlessRoot (XmlSchemaParticle particle)
 
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 IsChoiceFromChoiceSubstGroup (XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice)
 
bool IsGroupBaseFromGroupBase (XmlSchemaGroupBase derivedGroupBase, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly)
 
bool IsSequenceFromAll (XmlSchemaSequence derivedSequence, XmlSchemaAll baseAll)
 
bool IsSequenceFromChoice (XmlSchemaSequence derivedSequence, XmlSchemaChoice baseChoice)
 
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)
 
void CheckAtrributeGroupRestriction (XmlSchemaAttributeGroup baseAttributeGroup, XmlSchemaAttributeGroup derivedAttributeGroup)
 
bool IsProcessContentsRestricted (XmlSchemaComplexType baseType, XmlSchemaAnyAttribute derivedAttributeWildcard, XmlSchemaAnyAttribute baseAttributeWildcard)
 
XmlSchemaAnyAttribute CompileAnyAttributeUnion (XmlSchemaAnyAttribute a, XmlSchemaAnyAttribute b)
 
XmlSchemaAnyAttribute CompileAnyAttributeIntersection (XmlSchemaAnyAttribute a, XmlSchemaAnyAttribute b)
 
void CompileAttribute (XmlSchemaAttribute xa)
 
void SetDefaultFixed (XmlSchemaAttribute xa, SchemaAttDef decl)
 
void CompileIdentityConstraint (XmlSchemaIdentityConstraint xi)
 
void CompileElement (XmlSchemaElement xe)
 
ContentValidator CompileComplexContent (XmlSchemaComplexType complexType)
 
bool BuildParticleContentModel (ParticleContentValidator contentValidator, XmlSchemaParticle particle)
 
void CompileParticleElements (XmlSchemaComplexType complexType, XmlSchemaParticle particle)
 
void CompileParticleElements (XmlSchemaParticle particle)
 
void CompileComplexTypeElements (XmlSchemaComplexType complexType)
 
XmlSchemaSimpleType GetSimpleType (XmlQualifiedName name)
 
XmlSchemaComplexType GetComplexType (XmlQualifiedName name)
 
XmlSchemaType GetAnySchemaType (XmlQualifiedName name)
 
void CopyPosition (XmlSchemaAnnotated to, XmlSchemaAnnotated from, bool copyParent)
 
bool IsFixedEqual (SchemaDeclBase baseDecl, SchemaDeclBase derivedDecl)
 
bool IsValidAttributeGroupRedefine (XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table)
 
bool IsValidGroupRedefine (XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table)
 
bool IsValidTypeRedefine (XmlSchemaObject existingObject, XmlSchemaObject item, XmlSchemaObjectTable table)
 

Private Attributes

string _restrictionErrorMsg
 
readonly XmlSchemaObjectTable _attributes = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _attributeGroups = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _elements = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _schemaTypes = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _groups = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _notations = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _examplars = new XmlSchemaObjectTable()
 
readonly XmlSchemaObjectTable _identityConstraints = new XmlSchemaObjectTable()
 
readonly Stack< XmlSchemaComplexType_complexTypeStack = new Stack<XmlSchemaComplexType>()
 
readonly Hashtable _schemasToCompile = new Hashtable()
 
readonly XmlSchema _schemaForSchema
 
readonly XmlNameTable _nameTable
 
SchemaNames _schemaNames
 
readonly ValidationEventHandler _eventHandler
 
readonly XmlSchemaCompilationSettings _compilationSettings
 
int _errorCount
 
readonly string _nsXml
 

Detailed Description

Definition at line 8 of file Compiler.cs.


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