- Initial commit of System.Xml.Serialization namespace (don't get too excited, the...
[mono.git] / mcs / class / System.XML / System.Xml.Serialization / XmlAttributeAttribute.cs
1 //
2 // XmlAttributeAttribute.cs: 
3 //
4 // Author:
5 //   John Donagher (john@webmeta.com)
6 //
7 // (C) 2002 John Donagher
8 //
9
10 using System.Xml.Schema;\r
11 using System;\r
12 \r
13 namespace System.Xml.Serialization\r
14 {\r
15         /// <summary>\r
16         /// Summary description for XmlAttributeAttribute.\r
17         /// </summary>\r
18         [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field\r
19                  | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]\r
20         public class XmlAttributeAttribute : Attribute\r
21         {\r
22                 private string attributeName;\r
23                 private string dataType;\r
24                 private XmlSchemaForm form;\r
25                 private string ns;\r
26 \r
27                 public XmlAttributeAttribute ()\r
28                 {\r
29                 }\r
30                 public XmlAttributeAttribute (string attributeName)\r
31                 {\r
32                         AttributeName = attributeName;\r
33                 }\r
34                 [MonoTODO]\r
35                 public XmlAttributeAttribute (Type type)\r
36                 {\r
37                 }\r
38                 [MonoTODO]\r
39                 public XmlAttributeAttribute (string attributeName, Type type)\r
40                 {\r
41                         AttributeName = attributeName;\r
42                 }\r
43 \r
44                 public string AttributeName {\r
45                         get {
46                                 return attributeName;
47                         }\r
48                         set {
49                                 attributeName = value;
50                         }\r
51                 }\r
52                 public string DataType {\r
53                         get {
54                                 return dataType;
55                         }\r
56                         set {
57                                 dataType = value;
58                         }\r
59                 }\r
60                 public XmlSchemaForm Form {\r
61                         get {
62                                 return form;
63                         }\r
64                         set {
65                                 form = value;
66                         }\r
67                 }\r
68                 public string Namespace {\r
69                         get {
70                                 return ns;
71                         }\r
72                         set {
73                                 ns = value;
74                         }\r
75                 }\r
76 \r
77         }\r
78 }\r