C# Class ATMLSchemaLibrary.managers.SchemaManager

Datei anzeigen Open project: UtrsSoftware/ATMLWorkBench

Public Methods

Method 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

Protected Methods

Method Description
OnError ( string message ) : void
OnWarning ( string message ) : void

Private Methods

Method 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 method

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

ExtractAttributes() public static method

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

ExtractSequenceItems() public static method

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

ExtractSequenceItems() public static method

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

FindAttribute() public static method

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

GetAttributeGroup() public static method

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

GetAttributes() public static method

public static GetAttributes ( XmlSchemaComplexType complexType ) : List
complexType System.Xml.Schema.XmlSchemaComplexType
return List

GetAttributes() public static method

public static GetAttributes ( XmlSchemaElement element ) : List
element System.Xml.Schema.XmlSchemaElement
return List

GetComplexType() public static method

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

GetElement() public static method

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

GetRestrictions() public static method

public static GetRestrictions ( String simpleTypeName, String targetNamespace ) : List
simpleTypeName String
targetNamespace String
return List

GetRestrictions() public method

public GetRestrictions ( String name, List restrictions ) : bool
name String
restrictions List
return bool

GetSchema() public static method

public static GetSchema ( String targetNamespace ) : XmlSchema
targetNamespace String
return System.Xml.Schema.XmlSchema

GetSchemaName() public static method

public static GetSchemaName ( string content ) : string
content string
return string

GetSimpleType() public static method

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

IsPhysicalType() public static method

public static IsPhysicalType ( XmlQualifiedName qualifiedName ) : bool
qualifiedName System.Xml.XmlQualifiedName
return bool

IsPhysicalType() public static method

public static IsPhysicalType ( XmlSchemaType schemaType ) : bool
schemaType System.Xml.Schema.XmlSchemaType
return bool

IsPhysicalType() public static method

public static IsPhysicalType ( string nameSpace, string localName, string propertyName ) : bool
nameSpace string
localName string
propertyName string
return bool

OnError() protected method

protected OnError ( string message ) : void
message string
return void

OnWarning() protected method

protected OnWarning ( string message ) : void
message string
return void

SetSchemaLocation() public method

public SetSchemaLocation ( ) : void
return void

Validate() public static method

public static Validate ( string nameSpace, string elementName, object testSubject, SchemaValidationResult schemaValidationResult ) : bool
nameSpace string
elementName string
testSubject object
schemaValidationResult SchemaValidationResult
return bool

ValidateAttribute() public static method

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

ValidateComplexType() public static method

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

ValidateElement() public static method

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

ValidateToSchema() public static method

public static ValidateToSchema ( object item ) : void
item object
return void

ValidateXml() public static method

public static ValidateXml ( string xml, string targetNamespace, StringBuilder sb ) : bool
xml string
targetNamespace string
sb StringBuilder
return bool