C# Class ATMLSchemaLibrary.managers.SchemaManager

Afficher le fichier Open project: UtrsSoftware/ATMLWorkBench

Méthodes publiques

Méthode Description
ExtractAttributes ( XmlSchemaComplexContentExtension cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
ExtractAttributes ( XmlSchemaComplexType cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
ExtractSequenceItems ( XmlSchemaComplexContentExtension cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
ExtractSequenceItems ( XmlSchemaComplexType cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
FindAttribute ( String targetNamespace, String parentTypeName, String attributeName, XmlSchemaAttribute &attribute ) : bool
GetAttributeGroup ( String targetNamespace, String name, XmlSchemaAttributeGroup &attributeGroup ) : bool
GetAttributes ( XmlSchemaComplexType complexType ) : List
GetAttributes ( XmlSchemaElement element ) : List
GetComplexType ( String targetNamespace, String typeName, XmlSchemaComplexType &complexType ) : bool
GetElement ( String targetNamespace, String typeName, XmlSchemaElement &element ) : bool
GetRestrictions ( String simpleTypeName, String targetNamespace ) : List
GetRestrictions ( String name, List restrictions ) : bool
GetSchema ( String targetNamespace ) : XmlSchema
GetSchemaName ( string content ) : string
GetSimpleType ( String targetNamespace, String typeName, XmlSchemaSimpleType &simpleType ) : bool
IsPhysicalType ( XmlQualifiedName qualifiedName ) : bool
IsPhysicalType ( XmlSchemaType schemaType ) : bool
IsPhysicalType ( string nameSpace, string localName, string propertyName ) : bool
SetSchemaLocation ( ) : void
Validate ( string nameSpace, string elementName, object testSubject, SchemaValidationResult schemaValidationResult ) : bool
ValidateAttribute ( XmlSchemaAttribute attribute, string value, SchemaValidationResult errors ) : bool
ValidateComplexType ( XmlSchemaComplexType complexType, object testSubject, SchemaValidationResult parentValidationResult ) : bool
ValidateElement ( XmlSchemaElement element, object value, SchemaValidationResult errors ) : bool
ValidateToSchema ( object item ) : void
ValidateXml ( string xml, string targetNamespace, StringBuilder sb ) : bool

Méthodes protégées

Méthode Description
OnError ( string message ) : void
OnWarning ( string message ) : void

Private Methods

Méthode Description
BuildParentTree ( System.Xml.Linq.XElement element, StringBuilder sb, int level ) : int
ExtractContentItems ( XmlSchemaContentModel contentModel, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
ExtractSequenceItems ( XmlSchemaObject>.Dictionary xmlSchemaObjects, XmlSchemaSequence sequence ) : void
GetNamespace ( XmlSerializerNamespaces namespaces ) : String
LoadAttributes ( XmlSchemaObject>.Dictionary xmlSchemaObjects, XmlSchemaObjectCollection attributes ) : void
LoadSchemaItems ( ) : void
ProcessPropertyInfo ( object testSubject, SchemaValidationResult validationResults, PropertyInfo propertyInfo, XmlSchemaObject>.Dictionary xmlSchemaObjects, bool isValid ) : bool
ProcessRestrictions ( string value, SchemaValidationResult errors, XmlSchemaSimpleTypeRestriction restriction, string typeName, string name ) : bool
ProcessSequence ( SchemaValidationResult errors, XmlSchemaSequence sequence, ICollection collection, decimal minOccurrs ) : void
SchemaManager ( ) : System
ValidationCallback ( object sender, ValidationEventArgs args ) : void
settings_ValidationEventHandler ( object sender, ValidationEventArgs e ) : void

Method Details

ExtractAttributes() public static méthode

public static ExtractAttributes ( XmlSchemaComplexContentExtension cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
cce System.Xml.Schema.XmlSchemaComplexContentExtension
xmlSchemaObjects XmlSchemaObject>.Dictionary
Résultat void

ExtractAttributes() public static méthode

public static ExtractAttributes ( XmlSchemaComplexType cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
cce System.Xml.Schema.XmlSchemaComplexType
xmlSchemaObjects XmlSchemaObject>.Dictionary
Résultat void

ExtractSequenceItems() public static méthode

public static ExtractSequenceItems ( XmlSchemaComplexContentExtension cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
cce System.Xml.Schema.XmlSchemaComplexContentExtension
xmlSchemaObjects XmlSchemaObject>.Dictionary
Résultat void

ExtractSequenceItems() public static méthode

public static ExtractSequenceItems ( XmlSchemaComplexType cce, XmlSchemaObject>.Dictionary xmlSchemaObjects ) : void
cce System.Xml.Schema.XmlSchemaComplexType
xmlSchemaObjects XmlSchemaObject>.Dictionary
Résultat void

FindAttribute() public static méthode

public static FindAttribute ( String targetNamespace, String parentTypeName, String attributeName, XmlSchemaAttribute &attribute ) : bool
targetNamespace String
parentTypeName String
attributeName String
attribute System.Xml.Schema.XmlSchemaAttribute
Résultat bool

GetAttributeGroup() public static méthode

public static GetAttributeGroup ( String targetNamespace, String name, XmlSchemaAttributeGroup &attributeGroup ) : bool
targetNamespace String
name String
attributeGroup System.Xml.Schema.XmlSchemaAttributeGroup
Résultat bool

GetAttributes() public static méthode

public static GetAttributes ( XmlSchemaComplexType complexType ) : List
complexType System.Xml.Schema.XmlSchemaComplexType
Résultat List

GetAttributes() public static méthode

public static GetAttributes ( XmlSchemaElement element ) : List
element System.Xml.Schema.XmlSchemaElement
Résultat List

GetComplexType() public static méthode

public static GetComplexType ( String targetNamespace, String typeName, XmlSchemaComplexType &complexType ) : bool
targetNamespace String
typeName String
complexType System.Xml.Schema.XmlSchemaComplexType
Résultat bool

GetElement() public static méthode

public static GetElement ( String targetNamespace, String typeName, XmlSchemaElement &element ) : bool
targetNamespace String
typeName String
element System.Xml.Schema.XmlSchemaElement
Résultat bool

GetRestrictions() public static méthode

public static GetRestrictions ( String simpleTypeName, String targetNamespace ) : List
simpleTypeName String
targetNamespace String
Résultat List

GetRestrictions() public méthode

public GetRestrictions ( String name, List restrictions ) : bool
name String
restrictions List
Résultat bool

GetSchema() public static méthode

public static GetSchema ( String targetNamespace ) : XmlSchema
targetNamespace String
Résultat System.Xml.Schema.XmlSchema

GetSchemaName() public static méthode

public static GetSchemaName ( string content ) : string
content string
Résultat string

GetSimpleType() public static méthode

public static GetSimpleType ( String targetNamespace, String typeName, XmlSchemaSimpleType &simpleType ) : bool
targetNamespace String
typeName String
simpleType System.Xml.Schema.XmlSchemaSimpleType
Résultat bool

IsPhysicalType() public static méthode

public static IsPhysicalType ( XmlQualifiedName qualifiedName ) : bool
qualifiedName System.Xml.XmlQualifiedName
Résultat bool

IsPhysicalType() public static méthode

public static IsPhysicalType ( XmlSchemaType schemaType ) : bool
schemaType System.Xml.Schema.XmlSchemaType
Résultat bool

IsPhysicalType() public static méthode

public static IsPhysicalType ( string nameSpace, string localName, string propertyName ) : bool
nameSpace string
localName string
propertyName string
Résultat bool

OnError() protected méthode

protected OnError ( string message ) : void
message string
Résultat void

OnWarning() protected méthode

protected OnWarning ( string message ) : void
message string
Résultat void

SetSchemaLocation() public méthode

public SetSchemaLocation ( ) : void
Résultat void

Validate() public static méthode

public static Validate ( string nameSpace, string elementName, object testSubject, SchemaValidationResult schemaValidationResult ) : bool
nameSpace string
elementName string
testSubject object
schemaValidationResult SchemaValidationResult
Résultat bool

ValidateAttribute() public static méthode

public static ValidateAttribute ( XmlSchemaAttribute attribute, string value, SchemaValidationResult errors ) : bool
attribute System.Xml.Schema.XmlSchemaAttribute
value string
errors SchemaValidationResult
Résultat bool

ValidateComplexType() public static méthode

public static ValidateComplexType ( XmlSchemaComplexType complexType, object testSubject, SchemaValidationResult parentValidationResult ) : bool
complexType System.Xml.Schema.XmlSchemaComplexType
testSubject object
parentValidationResult SchemaValidationResult
Résultat bool

ValidateElement() public static méthode

public static ValidateElement ( XmlSchemaElement element, object value, SchemaValidationResult errors ) : bool
element System.Xml.Schema.XmlSchemaElement
value object
errors SchemaValidationResult
Résultat bool

ValidateToSchema() public static méthode

public static ValidateToSchema ( object item ) : void
item object
Résultat void

ValidateXml() public static méthode

public static ValidateXml ( string xml, string targetNamespace, StringBuilder sb ) : bool
xml string
targetNamespace string
sb StringBuilder
Résultat bool