2005-09-22 Chris Toshok <toshok@ximian.com>
[mono.git] / mcs / class / System.Runtime.Serialization / System.Runtime.Serialization / XsdDataContractExporter.cs
1 #if NET_2_0
2 using System;
3 using System.Collections.Generic;
4 using System.IO;
5 using System.Reflection;
6 using System.Xml;
7 using System.Xml.Schema;
8
9 using QName = System.Xml.XmlQualifiedName;
10
11 namespace System.Runtime.Serialization
12 {
13         public class XsdDataContractExporter
14         {
15                 ExportOptions options;
16                 XmlSchemaSet schemas;
17
18                 public XsdDataContractExporter ()
19                 {
20                 }
21
22                 public XsdDataContractExporter (XmlSchemaSet schemas)
23                 {
24                         this.schemas = schemas;
25                 }
26
27                 public XmlSchemaSet Schemas {
28                         get { return schemas; }
29                 }
30
31                 public ExportOptions Options {
32                         get { return options; }
33                         set { options = value; }
34                 }
35
36                 public bool CanExport (IList<Type> types)
37                 {
38                         foreach (Type t in types)
39                                 if (!CanExport (t))
40                                         return false;
41                         return true;
42                 }
43
44                 public bool CanExport (IList<Assembly> assemblies)
45                 {
46                         foreach (Assembly a in assemblies)
47                                 foreach (Module m in a.GetModules ())
48                                         foreach (Type t in m.GetTypes ())
49                                                 if (!CanExport (t))
50                                                         return false;
51                         return true;
52                 }
53
54                 public bool CanExport (Type type)
55                 {
56                         throw new NotImplementedException ();
57                 }
58
59                 public void Export (IList<Type> types)
60                 {
61                         foreach (Type t in types)
62                                 Export (t);
63                 }
64
65                 public void Export (IList<Assembly> assemblies)
66                 {
67                         foreach (Assembly a in assemblies)
68                                 foreach (Module m in a.GetModules ())
69                                         foreach (Type t in m.GetTypes ())
70                                                 Export (t);
71                 }
72
73                 public void Export (Type type)
74                 {
75                         throw new NotImplementedException ();
76                 }
77
78                 public static XmlQualifiedName GetRootElementName (Type type)
79                 {
80                         throw new NotImplementedException ();
81                 }
82
83                 public static XmlQualifiedName GetSchemaTypeName (Type type)
84                 {
85                         throw new NotImplementedException ();
86                 }
87         }
88 }
89 #endif