C# Class System.Xml.Schema.XmlSchemaValidator

Mostra file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
AddIdentityConstraints void
AddXmlNamespaceSchema void
AddXsiAttributes void
AttributeIdentityConstraints void
BuildElementName string
BuildElementName string
BuildXsiAttributes void
CheckAttributeValue object
CheckElementProperties void
CheckElementValue object
CheckForwardRefs void
CheckIsXmlAttribute SchemaAttDef
CheckMixedValueConstraint object
CheckRequiredAttributes void
CheckStateTransition void
CheckTokenizedTypes void
CheckXsiTypeAndNil SchemaElementDecl
ClearPSVI void
CompleteValidationError void
ElementIdentityConstraints void
ElementValidationError void
EndElementIdentityConstraints void
EnumerateAny void
FastGetElementDecl SchemaElementDecl
FindId object
GetConcatenatedValue string
GetDefaultAttributePrefix string
GetSchemaElement XmlSchemaElement
GetSubstitutionGroupHead XmlSchemaElement
GetTypeName string
GetUnspecifiedDefaultAttributes void
Init void
InternalValidateEndElement object
LoadSchema void
Pop void
PrintExpectedElements string
PrintNames string
PrintNamesWithNS void
ProcessEntity void
ProcessSchemaLocations void
ProcessTokenizedType void
Push void
QNameString string
RecompileSchemaSet void
Reset void
SaveTextValue void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SendValidationEvent void
SetDtdSchemaInfo void
ThrowDeclNotFoundWarningOrError void
ValidateAtomicValue object
ValidateAtomicValue object
ValidateAttribute object
ValidateElementContext object
ValidateStartElementIdentityConstraints void
ValidateText void
ValidateWhitespace void

Public Methods

Method Description
AddSchema ( XmlSchema schema ) : void
EndValidation ( ) : void
GetExpectedAttributes ( ) : System.Xml.Schema.XmlSchemaAttribute[]
GetExpectedParticles ( ) : System.Xml.Schema.XmlSchemaParticle[]
GetUnspecifiedDefaultAttributes ( ArrayList defaultAttributes ) : void
Initialize ( ) : void
Initialize ( XmlSchemaObject partialValidationType ) : void
SkipToEndElement ( XmlSchemaInfo schemaInfo ) : void
ValidateAttribute ( string localName, string namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo ) : object
ValidateAttribute ( string localName, string namespaceUri, string attributeValue, XmlSchemaInfo schemaInfo ) : object
ValidateElement ( string localName, string namespaceUri, XmlSchemaInfo schemaInfo ) : void
ValidateElement ( string localName, string namespaceUri, XmlSchemaInfo schemaInfo, string xsiType, string xsiNil, string xsiSchemaLocation, string xsiNoNamespaceSchemaLocation ) : void
ValidateEndElement ( XmlSchemaInfo schemaInfo ) : object
ValidateEndElement ( XmlSchemaInfo schemaInfo, object typedValue ) : object
ValidateEndOfAttributes ( XmlSchemaInfo schemaInfo ) : void
ValidateText ( XmlValueGetter elementValue ) : void
ValidateText ( string elementValue ) : void
ValidateWhitespace ( XmlValueGetter elementValue ) : void
ValidateWhitespace ( string elementValue ) : void
XmlSchemaValidator ( XmlNameTable nameTable, XmlSchemaSet schemas, IXmlNamespaceResolver namespaceResolver, XmlSchemaValidationFlags validationFlags ) : System

Private Methods

Method Description
AddIdentityConstraints ( ) : void
AddXmlNamespaceSchema ( ) : void
AddXsiAttributes ( ArrayList attList ) : void
AttributeIdentityConstraints ( string name, string ns, object obj, string sobj, XmlSchemaDatatype datatype ) : void
BuildElementName ( XmlQualifiedName qname ) : string
BuildElementName ( string localName, string ns ) : string
BuildXsiAttributes ( ) : void
CheckAttributeValue ( object value, SchemaAttDef attdef ) : object
CheckElementProperties ( ) : void
CheckElementValue ( string stringValue ) : object
CheckForwardRefs ( ) : void
CheckIsXmlAttribute ( XmlQualifiedName attQName ) : SchemaAttDef
CheckMixedValueConstraint ( string elementValue ) : object
CheckRequiredAttributes ( SchemaElementDecl currentElementDecl ) : void
CheckStateTransition ( ValidatorState toState, string methodName ) : void
CheckTokenizedTypes ( XmlSchemaDatatype dtype, object typedValue, bool attrValue ) : void
CheckXsiTypeAndNil ( SchemaElementDecl elementDecl, string xsiType, string xsiNil, bool &declFound ) : SchemaElementDecl
ClearPSVI ( ) : void
CompleteValidationError ( ValidationState context, ValidationEventHandler eventHandler, object sender, string sourceUri, int lineNo, int linePos, XmlSchemaSet schemaSet ) : void
ElementIdentityConstraints ( ) : void
ElementValidationError ( XmlQualifiedName name, ValidationState context, ValidationEventHandler eventHandler, object sender, string sourceUri, int lineNo, int linePos, XmlSchemaSet schemaSet ) : void
EndElementIdentityConstraints ( object typedValue, string stringValue, XmlSchemaDatatype datatype ) : void
EnumerateAny ( StringBuilder builder, string namespaces ) : void
FastGetElementDecl ( XmlQualifiedName elementName, object particle ) : SchemaElementDecl
FindId ( string name ) : object
GetConcatenatedValue ( ) : string
GetDefaultAttributePrefix ( string attributeNS ) : string
GetSchemaElement ( ) : XmlSchemaElement
GetSubstitutionGroupHead ( XmlQualifiedName member ) : XmlSchemaElement
GetTypeName ( SchemaDeclBase decl ) : string
GetUnspecifiedDefaultAttributes ( ArrayList defaultAttributes, bool createNodeData ) : void
Init ( ) : void
InternalValidateEndElement ( XmlSchemaInfo schemaInfo, object typedValue ) : object
LoadSchema ( string uri, string url ) : void
Pop ( ) : void
PrintExpectedElements ( ArrayList expected, bool getParticles ) : string
PrintNames ( ArrayList expected ) : string
PrintNamesWithNS ( ArrayList expected, StringBuilder builder ) : void
ProcessEntity ( string name ) : void
ProcessSchemaLocations ( string xsiSchemaLocation, string xsiNoNamespaceSchemaLocation ) : void
ProcessTokenizedType ( XmlTokenizedType ttype, string name, bool attrValue ) : void
Push ( XmlQualifiedName elementName ) : void
QNameString ( string localName, string ns ) : string
RecompileSchemaSet ( ) : void
Reset ( ) : void
SaveTextValue ( object value ) : void
SendValidationEvent ( ValidationEventHandler eventHandler, object sender, XmlSchemaValidationException e, XmlSeverityType severity ) : void
SendValidationEvent ( XmlSchemaException e ) : void
SendValidationEvent ( XmlSchemaValidationException e ) : void
SendValidationEvent ( XmlSchemaValidationException e, XmlSeverityType severity ) : void
SendValidationEvent ( string code ) : void
SendValidationEvent ( string code, string args ) : void
SendValidationEvent ( string code, string args, Exception innerException ) : void
SendValidationEvent ( string code, string args, Exception innerException, XmlSeverityType severity ) : void
SendValidationEvent ( string code, string msg, XmlSeverityType severity ) : void
SendValidationEvent ( string code, string arg1, string arg2 ) : void
SetDtdSchemaInfo ( IDtdInfo dtdSchemaInfo ) : void
ThrowDeclNotFoundWarningOrError ( bool declFound ) : void
ValidateAtomicValue ( object parsedValue, XmlSchemaSimpleType &memberType ) : object
ValidateAtomicValue ( string stringValue, XmlSchemaSimpleType &memberType ) : object
ValidateAttribute ( string localName, string namespaceUri, XmlValueGetter attributeValueGetter, string attributeStringValue, XmlSchemaInfo schemaInfo ) : object
ValidateElementContext ( XmlQualifiedName elementName, bool &invalidElementInContext ) : object
ValidateStartElementIdentityConstraints ( ) : void
ValidateText ( string elementStringValue, XmlValueGetter elementValueGetter ) : void
ValidateWhitespace ( string elementStringValue, XmlValueGetter elementValueGetter ) : void

Method Details

AddSchema() public method

public AddSchema ( XmlSchema schema ) : void
schema XmlSchema
return void

EndValidation() public method

public EndValidation ( ) : void
return void

GetExpectedAttributes() public method

public GetExpectedAttributes ( ) : System.Xml.Schema.XmlSchemaAttribute[]
return System.Xml.Schema.XmlSchemaAttribute[]

GetExpectedParticles() public method

public GetExpectedParticles ( ) : System.Xml.Schema.XmlSchemaParticle[]
return System.Xml.Schema.XmlSchemaParticle[]

GetUnspecifiedDefaultAttributes() public method

public GetUnspecifiedDefaultAttributes ( ArrayList defaultAttributes ) : void
defaultAttributes System.Collections.ArrayList
return void

Initialize() public method

public Initialize ( ) : void
return void

Initialize() public method

public Initialize ( XmlSchemaObject partialValidationType ) : void
partialValidationType XmlSchemaObject
return void

SkipToEndElement() public method

public SkipToEndElement ( XmlSchemaInfo schemaInfo ) : void
schemaInfo XmlSchemaInfo
return void

ValidateAttribute() public method

public ValidateAttribute ( string localName, string namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo ) : object
localName string
namespaceUri string
attributeValue XmlValueGetter
schemaInfo XmlSchemaInfo
return object

ValidateAttribute() public method

public ValidateAttribute ( string localName, string namespaceUri, string attributeValue, XmlSchemaInfo schemaInfo ) : object
localName string
namespaceUri string
attributeValue string
schemaInfo XmlSchemaInfo
return object

ValidateElement() public method

public ValidateElement ( string localName, string namespaceUri, XmlSchemaInfo schemaInfo ) : void
localName string
namespaceUri string
schemaInfo XmlSchemaInfo
return void

ValidateElement() public method

public ValidateElement ( string localName, string namespaceUri, XmlSchemaInfo schemaInfo, string xsiType, string xsiNil, string xsiSchemaLocation, string xsiNoNamespaceSchemaLocation ) : void
localName string
namespaceUri string
schemaInfo XmlSchemaInfo
xsiType string
xsiNil string
xsiSchemaLocation string
xsiNoNamespaceSchemaLocation string
return void

ValidateEndElement() public method

public ValidateEndElement ( XmlSchemaInfo schemaInfo ) : object
schemaInfo XmlSchemaInfo
return object

ValidateEndElement() public method

public ValidateEndElement ( XmlSchemaInfo schemaInfo, object typedValue ) : object
schemaInfo XmlSchemaInfo
typedValue object
return object

ValidateEndOfAttributes() public method

public ValidateEndOfAttributes ( XmlSchemaInfo schemaInfo ) : void
schemaInfo XmlSchemaInfo
return void

ValidateText() public method

public ValidateText ( XmlValueGetter elementValue ) : void
elementValue XmlValueGetter
return void

ValidateText() public method

public ValidateText ( string elementValue ) : void
elementValue string
return void

ValidateWhitespace() public method

public ValidateWhitespace ( XmlValueGetter elementValue ) : void
elementValue XmlValueGetter
return void

ValidateWhitespace() public method

public ValidateWhitespace ( string elementValue ) : void
elementValue string
return void

XmlSchemaValidator() public method

public XmlSchemaValidator ( XmlNameTable nameTable, XmlSchemaSet schemas, IXmlNamespaceResolver namespaceResolver, XmlSchemaValidationFlags validationFlags ) : System
nameTable System.Xml.XmlNameTable
schemas XmlSchemaSet
namespaceResolver IXmlNamespaceResolver
validationFlags XmlSchemaValidationFlags
return System