C# Class System.Xml.Schema.XmlSchemaValidator

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddSchema ( XmlSchema schema ) : void
schema XmlSchema
Résultat void

EndValidation() public méthode

public EndValidation ( ) : void
Résultat void

GetExpectedAttributes() public méthode

public GetExpectedAttributes ( ) : System.Xml.Schema.XmlSchemaAttribute[]
Résultat System.Xml.Schema.XmlSchemaAttribute[]

GetExpectedParticles() public méthode

public GetExpectedParticles ( ) : System.Xml.Schema.XmlSchemaParticle[]
Résultat System.Xml.Schema.XmlSchemaParticle[]

GetUnspecifiedDefaultAttributes() public méthode

public GetUnspecifiedDefaultAttributes ( ArrayList defaultAttributes ) : void
defaultAttributes System.Collections.ArrayList
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( XmlSchemaObject partialValidationType ) : void
partialValidationType XmlSchemaObject
Résultat void

SkipToEndElement() public méthode

public SkipToEndElement ( XmlSchemaInfo schemaInfo ) : void
schemaInfo XmlSchemaInfo
Résultat void

ValidateAttribute() public méthode

public ValidateAttribute ( string localName, string namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo ) : object
localName string
namespaceUri string
attributeValue XmlValueGetter
schemaInfo XmlSchemaInfo
Résultat object

ValidateAttribute() public méthode

public ValidateAttribute ( string localName, string namespaceUri, string attributeValue, XmlSchemaInfo schemaInfo ) : object
localName string
namespaceUri string
attributeValue string
schemaInfo XmlSchemaInfo
Résultat object

ValidateElement() public méthode

public ValidateElement ( string localName, string namespaceUri, XmlSchemaInfo schemaInfo ) : void
localName string
namespaceUri string
schemaInfo XmlSchemaInfo
Résultat void

ValidateElement() public méthode

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
Résultat void

ValidateEndElement() public méthode

public ValidateEndElement ( XmlSchemaInfo schemaInfo ) : object
schemaInfo XmlSchemaInfo
Résultat object

ValidateEndElement() public méthode

public ValidateEndElement ( XmlSchemaInfo schemaInfo, object typedValue ) : object
schemaInfo XmlSchemaInfo
typedValue object
Résultat object

ValidateEndOfAttributes() public méthode

public ValidateEndOfAttributes ( XmlSchemaInfo schemaInfo ) : void
schemaInfo XmlSchemaInfo
Résultat void

ValidateText() public méthode

public ValidateText ( XmlValueGetter elementValue ) : void
elementValue XmlValueGetter
Résultat void

ValidateText() public méthode

public ValidateText ( string elementValue ) : void
elementValue string
Résultat void

ValidateWhitespace() public méthode

public ValidateWhitespace ( XmlValueGetter elementValue ) : void
elementValue XmlValueGetter
Résultat void

ValidateWhitespace() public méthode

public ValidateWhitespace ( string elementValue ) : void
elementValue string
Résultat void

XmlSchemaValidator() public méthode

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