C# Class System.Xml.Serialization.XmlSchemaExporter

显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
ExportAnyType ( XmlMembersMapping members ) : string
ExportAnyType ( string ns ) : string
ExportMembersMapping ( XmlMembersMapping xmlMembersMapping ) : void
ExportMembersMapping ( XmlMembersMapping xmlMembersMapping, bool exportEnclosingType ) : void
ExportTypeMapping ( XmlMembersMapping xmlMembersMapping ) : XmlQualifiedName
ExportTypeMapping ( XmlTypeMapping xmlTypeMapping ) : void
XmlSchemaExporter ( System.Xml.Serialization.XmlSchemas schemas ) : System

Private Methods

Method Description
AddSchema ( string targetNamespace ) : XmlSchema
AddSchemaImport ( string ns, string referencingNs ) : void
AddSchemaItem ( XmlSchemaObject item, string ns, string referencingNs ) : void
AddXmlnsAnnotation ( XmlSchemaComplexType type, string xmlnsMemberName ) : void
CheckForDuplicateType ( TypeMapping mapping, string newNamespace ) : void
CheckScope ( TypeScope scope ) : void
ExportAnonymousPrimitiveMapping ( PrimitiveMapping mapping ) : XmlSchemaType
ExportArrayMapping ( ArrayMapping mapping, string ns, XmlSchemaElement element ) : void
ExportAttributeAccessor ( XmlSchemaComplexType type, AttributeAccessor accessor, bool valueTypeOptional, string ns ) : void
ExportDefaultValue ( TypeMapping mapping, object value ) : string
ExportDerivedMappings ( StructMapping mapping ) : void
ExportElement ( ElementAccessor accessor ) : XmlSchemaElement
ExportElementAccessor ( XmlSchemaGroupBase group, ElementAccessor accessor, bool repeats, bool valueTypeOptional, string ns ) : void
ExportElementAccessors ( XmlSchemaGroupBase group, ElementAccessor accessors, bool repeats, bool valueTypeOptional, string ns ) : void
ExportElementMapping ( XmlSchemaElement element, Mapping mapping, string ns, bool isAny ) : void
ExportEnumMapping ( EnumMapping mapping, string ns ) : XmlSchemaType
ExportMapping ( Mapping mapping, string ns, bool isAny ) : void
ExportMembersMapping ( MembersMapping mapping, string ns ) : XmlSchemaType
ExportNonXsdPrimitiveMapping ( PrimitiveMapping mapping, string ns ) : XmlQualifiedName
ExportPrimitiveMapping ( PrimitiveMapping mapping, string ns ) : XmlQualifiedName
ExportRootIfNecessary ( TypeScope typeScope ) : void
ExportSpecialMapping ( SpecialMapping mapping, string ns, bool isAny, XmlSchemaElement element ) : XmlSchemaType
ExportStructMapping ( StructMapping mapping, string ns, XmlSchemaElement element ) : XmlQualifiedName
ExportTypeMembers ( XmlSchemaComplexType type, MemberMapping members, string name, string ns, bool hasSimpleContent, bool openModel ) : void
FindImport ( XmlSchema schema, string ns ) : XmlSchemaImport
FindSchemaType ( string name, XmlSchemaObjectCollection items ) : XmlSchemaType
IsAnyType ( XmlSchemaType schemaType, bool mixed, bool unbounded ) : bool
NamespacesEqual ( string ns1, string ns2 ) : bool
SchemaContainsItem ( XmlSchemaObject item, string ns ) : bool

Method Details

ExportAnyType() public method

public ExportAnyType ( XmlMembersMapping members ) : string
members XmlMembersMapping
return string

ExportAnyType() public method

public ExportAnyType ( string ns ) : string
ns string
return string

ExportMembersMapping() public method

public ExportMembersMapping ( XmlMembersMapping xmlMembersMapping ) : void
xmlMembersMapping XmlMembersMapping
return void

ExportMembersMapping() public method

public ExportMembersMapping ( XmlMembersMapping xmlMembersMapping, bool exportEnclosingType ) : void
xmlMembersMapping XmlMembersMapping
exportEnclosingType bool
return void

ExportTypeMapping() public method

public ExportTypeMapping ( XmlMembersMapping xmlMembersMapping ) : XmlQualifiedName
xmlMembersMapping XmlMembersMapping
return System.Xml.XmlQualifiedName

ExportTypeMapping() public method

public ExportTypeMapping ( XmlTypeMapping xmlTypeMapping ) : void
xmlTypeMapping XmlTypeMapping
return void

XmlSchemaExporter() public method

public XmlSchemaExporter ( System.Xml.Serialization.XmlSchemas schemas ) : System
schemas System.Xml.Serialization.XmlSchemas
return System