2004-01-19 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data / XmlConstants.cs
1 // 
2 // System.Data/DataSet.cs
3 //
4 // Author:
5 //   Stuart Caborn <stuart.caborn@virgin.net>
6 //
7 // (C) Stuart Caborn 2002
8
9 //
10 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
11 //
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 // 
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 // 
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 //
31
32 using System.Xml;
33 using System.Xml.Schema;
34
35 namespace System.Data 
36 {
37 ///<summary>
38 ///Constants class to hold XmlSerialisation
39 ///strings
40 ///</summary>
41 internal class XmlConstants
42 {
43         ///<summary>The namespace prefix for the xml schema namespace</summary>
44         public const string SchemaPrefix = "xs";
45         
46         ///<summary>
47         /// The w3 XmlSchema namespace
48         /// </summary>
49         public const string SchemaNamespace = "http://www.w3.org/2001/XMLSchema";
50         
51         public const string XmlnsNS = "http://www.w3.org/2000/xmlns/";
52         
53         //xs elements and values 
54         //TODO - these must exist somwhere else???
55         public const string SchemaElement = "schema";
56         public const string AttributeFormDefault = "attributeFormDefault";
57         public const string ElementFormDefault = "elementFormDefault";
58         public const string Qualified = "qualified";
59         public const string Unqualified = "unqualified";
60         public const string Element = "element";
61         public const string Choice = "choice";
62         public const string ComplexType = "complexType";
63         public const string SimpleType = "simpleType";
64         public const string Restriction = "restriction";
65         public const string MaxLength = "maxLength";
66         public const string Sequence = "sequence";
67         public const string MaxOccurs = "maxOccurs";
68         public const string MinOccurs = "minOccurs";
69         public const string Unbounded = "unbounded";
70         public const string Name = "name";
71         public const string Type = "type";
72         public const string Id = "id";
73         public const string TargetNamespace = "targetNamespace";
74         public const string Form = "form";
75         public const string Attribute = "attribute";
76         public const string Default = "default";
77         public const string Caption = "Caption";
78         public const string Base = "base";
79         public const string Value = "value";
80         public const string DataType = "DataType";
81         public const string AutoIncrement = "AutoIncrement";
82         public const string AutoIncrementSeed = "AutoIncrementSeed";
83
84         //ms schema objects     
85         public const string MsdataPrefix = "msdata";    
86         public const string MsdataNamespace = "urn:schemas-microsoft-com:xml-msdata";
87         public const string MspropPrefix = "msprop";    
88         public const string MspropNamespace = "urn:schemas-microsoft-com:xml-msprop";
89         public const string DiffgrPrefix = "diffgr";
90         public const string DiffgrNamespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
91         public const string TnsPrefix = "mstns";
92         public const string IsDataSet = "IsDataSet";
93         public const string Locale = "Locale";
94         public const string Ordinal = "Ordinal";
95         public const string IsNested = "IsNested";
96         public const string RelationName = "RelationName";
97         public const string ConstraintName = "ConstraintName";
98         public const string PrimaryKey = "PrimaryKey";
99         public const string ColumnName = "ColumnName";
100         public const string ReadOnly = "ReadOnly";
101
102         public static XmlQualifiedName QnString = new XmlQualifiedName ("string", XmlSchema.Namespace);
103         public static XmlQualifiedName QnShort = new XmlQualifiedName ("short", XmlSchema.Namespace);
104         public static XmlQualifiedName QnInt = new XmlQualifiedName ("int", XmlSchema.Namespace);
105         public static XmlQualifiedName QnLong = new XmlQualifiedName ("long", XmlSchema.Namespace);
106         public static XmlQualifiedName QnBoolean = new XmlQualifiedName ("boolean", XmlSchema.Namespace);
107         public static XmlQualifiedName QnUnsignedByte = new XmlQualifiedName ("unsignedByte", XmlSchema.Namespace);
108         public static XmlQualifiedName QnChar = new XmlQualifiedName ("char", XmlSchema.Namespace);
109         public static XmlQualifiedName QnDateTime = new XmlQualifiedName ("dateTime", XmlSchema.Namespace);
110         public static XmlQualifiedName QnDecimal = new XmlQualifiedName ("decimal", XmlSchema.Namespace);
111         public static XmlQualifiedName QnDouble = new XmlQualifiedName ("double", XmlSchema.Namespace);
112         public static XmlQualifiedName QnSbyte = new XmlQualifiedName ("byte", XmlSchema.Namespace);
113         public static XmlQualifiedName QnFloat = new XmlQualifiedName ("float", XmlSchema.Namespace);
114         public static XmlQualifiedName QnDuration = new XmlQualifiedName ("duration", XmlSchema.Namespace);
115         public static XmlQualifiedName QnUsignedShort = new XmlQualifiedName ("usignedShort", XmlSchema.Namespace);
116         public static XmlQualifiedName QnUnsignedInt = new XmlQualifiedName ("unsignedInt", XmlSchema.Namespace);
117         public static XmlQualifiedName QnUnsignedLong = new XmlQualifiedName ("unsignedLong", XmlSchema.Namespace);
118         public static XmlQualifiedName QnUri = new XmlQualifiedName ("anyURI", XmlSchema.Namespace);
119         public static XmlQualifiedName QnBase64Binary = new XmlQualifiedName ("base64Binary", XmlSchema.Namespace);
120         public static XmlQualifiedName QnXmlQualifiedName = new XmlQualifiedName ("QName", XmlSchema.Namespace);
121 }
122
123 }