C# Class Mono.Util.MonoXSD

Mostrar archivo Open project: runefs/Marvin Class Usage Examples

Public Methods

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

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
return void

GetQualifiedName() public method

public GetQualifiedName ( Type type ) : XmlQualifiedName
type System.Type
return System.Xml.XmlQualifiedName

GetQualifiedName() public method

public GetQualifiedName ( string type ) : XmlQualifiedName
type string
return System.Xml.XmlQualifiedName

IsXmlAnyAttribute() public method

public IsXmlAnyAttribute ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

IsXmlAttribute() public method

public IsXmlAttribute ( MemberInfo member ) : bool
member System.Reflection.MemberInfo
return bool

OnSchemaValidation() public method

public OnSchemaValidation ( object sender, ValidationEventArgs args ) : void
sender object
args System.Xml.Schema.ValidationEventArgs
return void

PopulateSequence() public method

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

WriteArrayType() public method

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

WriteComplexSchemaType() public method

public WriteComplexSchemaType ( ) : XmlSchemaType
return System.Xml.Schema.XmlSchemaType

WriteComplexSchemaType() public method

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
return System.Xml.Schema.XmlSchemaType

WriteEnumType() public method

public WriteEnumType ( Type type ) : XmlSchemaType
type System.Type
return System.Xml.Schema.XmlSchemaType

WriteSchema() public method

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
return void

WriteSchemaAttribute() public method

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

WriteSchemaElement() public method

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
return System.Xml.Schema.XmlSchemaElement

WriteSchemaType() public method

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