C# Class Mono.Util.MonoXSD

Afficher le fichier Open project: runefs/Marvin Class Usage Examples

Méthodes publiques

Méthode Description
AddElement ( XmlSchemaSequence sequence, MemberInfo member, Type type ) : void

Populates element nodes inside a '' node.

GetQualifiedName ( Type type ) : XmlQualifiedName
GetQualifiedName ( string type ) : XmlQualifiedName
IsXmlAnyAttribute ( MemberInfo member ) : bool
IsXmlAttribute ( MemberInfo member ) : bool
OnSchemaValidation ( object sender, ValidationEventArgs args ) : void
PopulateSequence ( FieldInfo fields, PropertyInfo properties ) : XmlSchemaSequence
WriteArrayType ( Type type, MemberInfo member ) : XmlSchemaType
WriteComplexSchemaType ( ) : XmlSchemaType
WriteComplexSchemaType ( Type type ) : XmlSchemaType

Handle derivation by extension. If type is null, it'll create a new complexType with an XmlAny node in its sequence child node.

WriteEnumType ( Type type ) : XmlSchemaType
WriteSchema ( string assembly, string lookup_type, string output_dir ) : void

Writes a schema for each type in the assembly

WriteSchemaAttribute ( MemberInfo member, Type attribute_type ) : XmlSchemaAttribute
WriteSchemaElement ( Type type, XmlSchemaType schemaType ) : XmlSchemaElement

Given a Type and its associated schema type, add aa '' node to the schema.

WriteSchemaType ( Type type ) : XmlSchemaType

From a Type, create a corresponding ComplexType node to represent this Type.

Method Details

AddElement() public méthode

Populates element nodes inside a '' node.
public AddElement ( XmlSchemaSequence sequence, MemberInfo member, Type type ) : void
sequence System.Xml.Schema.XmlSchemaSequence
member System.Reflection.MemberInfo
type System.Type
Résultat void

GetQualifiedName() public méthode

public GetQualifiedName ( Type type ) : XmlQualifiedName
type System.Type
Résultat System.Xml.XmlQualifiedName

GetQualifiedName() public méthode

public GetQualifiedName ( string type ) : XmlQualifiedName
type string
Résultat System.Xml.XmlQualifiedName

IsXmlAnyAttribute() public méthode

public IsXmlAnyAttribute ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Résultat bool

IsXmlAttribute() public méthode

public IsXmlAttribute ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
Résultat bool

OnSchemaValidation() public méthode

public OnSchemaValidation ( object sender, ValidationEventArgs args ) : void
sender object
args System.Xml.Schema.ValidationEventArgs
Résultat void

PopulateSequence() public méthode

public PopulateSequence ( FieldInfo fields, PropertyInfo properties ) : XmlSchemaSequence
fields System.Reflection.FieldInfo
properties System.Reflection.PropertyInfo
Résultat System.Xml.Schema.XmlSchemaSequence

WriteArrayType() public méthode

public WriteArrayType ( Type type, MemberInfo member ) : XmlSchemaType
type System.Type
member System.Reflection.MemberInfo
Résultat System.Xml.Schema.XmlSchemaType

WriteComplexSchemaType() public méthode

public WriteComplexSchemaType ( ) : XmlSchemaType
Résultat System.Xml.Schema.XmlSchemaType

WriteComplexSchemaType() public méthode

Handle derivation by extension. If type is null, it'll create a new complexType with an XmlAny node in its sequence child node.
public WriteComplexSchemaType ( Type type ) : XmlSchemaType
type System.Type
Résultat System.Xml.Schema.XmlSchemaType

WriteEnumType() public méthode

public WriteEnumType ( Type type ) : XmlSchemaType
type System.Type
Résultat System.Xml.Schema.XmlSchemaType

WriteSchema() public méthode

Writes a schema for each type in the assembly
public WriteSchema ( string assembly, string lookup_type, string output_dir ) : void
assembly string
lookup_type string
output_dir string
Résultat void

WriteSchemaAttribute() public méthode

public WriteSchemaAttribute ( MemberInfo member, Type attribute_type ) : XmlSchemaAttribute
member System.Reflection.MemberInfo
attribute_type System.Type
Résultat System.Xml.Schema.XmlSchemaAttribute

WriteSchemaElement() public méthode

Given a Type and its associated schema type, add aa '' node to the schema.
public WriteSchemaElement ( Type type, XmlSchemaType schemaType ) : XmlSchemaElement
type System.Type
schemaType System.Xml.Schema.XmlSchemaType
Résultat System.Xml.Schema.XmlSchemaElement

WriteSchemaType() public méthode

From a Type, create a corresponding ComplexType node to represent this Type.
public WriteSchemaType ( Type type ) : XmlSchemaType
type System.Type
Résultat System.Xml.Schema.XmlSchemaType