2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.Runtime.Serialization / System.Runtime.Serialization / ImportOptions.cs
blob8b5b5e389e99c4724e0725ba6837daa585da4064
1 //
2 // ImportOptions.cs
3 //
4 // Author:
5 // Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2005 Novell, Inc. http://www.novell.com
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #if NET_2_0
30 using System.CodeDom.Compiler;
31 using System.Collections.Generic;
33 namespace System.Runtime.Serialization
35 public class ImportOptions
37 IDataContractSurrogate surrogate;
38 ICollection<Type> referenced_collection_types =
39 new List<Type> ();
40 ICollection<Type> referenced_types = new List<Type> ();
41 bool enable_data_binding;
42 bool generate_internal;
43 bool generate_serializable;
44 bool import_xml_type;
45 IDictionary<string, string> namespaces =
46 new Dictionary<string, string> ();
47 CodeDomProvider code_provider;
49 public ImportOptions ()
53 public CodeDomProvider CodeProvider {
54 get { return code_provider; }
55 set { code_provider = value; }
58 [MonoTODO]
59 public IDataContractSurrogate DataContractSurrogate {
60 get { return surrogate; }
61 set { surrogate = value; }
64 [MonoTODO]
65 public bool EnableDataBinding {
66 get { return enable_data_binding; }
67 set { enable_data_binding = value; }
70 public bool GenerateInternal {
71 get { return generate_internal; }
72 set { generate_internal = value; }
75 public bool GenerateSerializable {
76 get { return generate_serializable; }
77 set { generate_serializable = value; }
80 [MonoTODO]
81 public bool ImportXmlType {
82 get { return import_xml_type; }
83 set { import_xml_type = value; }
86 public IDictionary<string, string> Namespaces {
87 get { return namespaces; }
90 [MonoTODO]
91 public ICollection<Type> ReferencedCollectionTypes {
92 get { return referenced_collection_types; }
95 [MonoTODO]
96 public ICollection<Type> ReferencedTypes {
97 get { return referenced_types; }
102 #endif