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

Public Member Functions

override void Validate ()
 
override void CompleteValidation ()
 
override object FindId (string name)
 
bool IsXSDRoot (string localName, string ns)
 
void ValidateText ()
 
void ValidateWhitespace ()
 

Static Public Member Functions

static BaseValidator CreateInstance (ValidationType valType, XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling, bool processIdentityConstraints)
 

Protected Member Functions

void SendValidationEvent (string code)
 
void SendValidationEvent (string code, string[] args)
 
void SendValidationEvent (string code, string arg)
 
void SendValidationEvent (XmlSchemaException e)
 
void SendValidationEvent (string code, string msg, XmlSeverityType severity)
 
void SendValidationEvent (string code, string[] args, XmlSeverityType severity)
 
void SendValidationEvent (XmlSchemaException e, XmlSeverityType severity)
 

Static Protected Member Functions

static void ProcessEntity (SchemaInfo sinfo, string name, object sender, ValidationEventHandler eventhandler, string baseUri, int lineNumber, int linePosition)
 
static void ProcessEntity (SchemaInfo sinfo, string name, IValidationEventHandling eventHandling, string baseUriStr, int lineNumber, int linePosition)
 

Protected Attributes

SchemaInfo schemaInfo
 
XmlValidatingReaderImpl reader
 
XmlQualifiedName elementName
 
ValidationState context
 
StringBuilder textValue
 
string textString
 
bool hasSibling
 
bool checkDatatype
 

Package Functions

 XsdValidator (BaseValidator validator)
 
 XsdValidator (XmlValidatingReaderImpl reader, XmlSchemaCollection schemaCollection, IValidationEventHandling eventHandling)
 
void AddID (string name, object node)
 

Properties

bool IsInlineSchemaStarted [get]
 
bool HasSchema [get]
 
override bool PreserveWhitespace [get]
 
bool HasIdentityConstraints [get]
 
XmlValidatingReaderImpl Reader [get]
 
XmlSchemaCollection SchemaCollection [get]
 
XmlNameTable NameTable [get]
 
SchemaNames SchemaNames [get]
 
PositionInfo PositionInfo [get]
 
XmlResolver XmlResolver [get, set]
 
Uri BaseUri [get, set]
 
ValidationEventHandler EventHandler [get]
 
SchemaInfo SchemaInfo [get]
 
IDtdInfo DtdInfo [set]
 

Private Member Functions

void Init ()
 
void ProcessInlineSchema ()
 
void ValidateElement ()
 
object ValidateChildElement ()
 
void ProcessElement (object particle)
 
void ProcessXsiAttributes (out XmlQualifiedName xsiType, out string xsiNil)
 
void ValidateEndElement ()
 
SchemaElementDecl FastGetElementDecl (object particle)
 
SchemaElementDecl ThoroughGetElementDecl (SchemaElementDecl elementDecl, XmlQualifiedName xsiType, string xsiNil)
 
void ValidateStartElement ()
 
void ValidateEndStartElement ()
 
void LoadSchemaFromLocation (string uri, string url)
 
void LoadSchema (string uri, string url)
 
void ProcessTokenizedType (XmlTokenizedType ttype, string name)
 
void CheckValue (string value, SchemaAttDef attdef)
 
void Push (XmlQualifiedName elementName)
 
void Pop ()
 
void CheckForwardRefs ()
 
void ValidateStartElementIdentityConstraints ()
 
void AddIdentityConstraints ()
 
void ElementIdentityConstraints ()
 
void AttributeIdentityConstraints (string name, string ns, object obj, string sobj, SchemaAttDef attdef)
 
object UnWrapUnion (object typedValue)
 
void EndElementIdentityConstraints ()
 
void SaveTextValue (string value)
 

Private Attributes

int _startIDConstraint = -1
 
HWStack _validationStack
 
Hashtable _attPresence
 
XmlNamespaceManager _nsManager
 
bool _bManageNamespaces
 
Hashtable _IDs
 
IdRefNode _idRefListHead
 
Parser _inlineSchemaParser
 
XmlSchemaContentProcessing _processContents
 
string _nsXmlNs
 
string _nsXs
 
string _nsXsi
 
string _xsiType
 
string _xsiNil
 
string _xsiSchemaLocation
 
string _xsiNoNamespaceSchemaLocation
 
string _xsdSchema
 
readonly XmlSchemaCollection _schemaCollection
 
readonly IValidationEventHandling _eventHandling
 
readonly XmlNameTable _nameTable
 
SchemaNames _schemaNames
 
readonly PositionInfo _positionInfo
 
XmlResolver _xmlResolver
 
Uri _baseUri
 

Static Private Attributes

static readonly XmlSchemaDatatype s_dtCDATA = XmlSchemaDatatype.FromXmlTokenizedType(XmlTokenizedType.CDATA)
 
static readonly XmlSchemaDatatype s_dtQName = XmlSchemaDatatype.FromXmlTokenizedTypeXsd(XmlTokenizedType.QName)
 
static readonly XmlSchemaDatatype s_dtStringArray = s_dtCDATA.DeriveByList(null)
 

Detailed Description

Definition at line 8 of file XsdValidator.cs.


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