* SoapAnyUri.cs, SoapBase64Binary.cs, SoapDate.cs, SoapDateTime.cs
[mono.git] / mcs / class / corlib / System.Runtime.Remoting.Metadata.W3cXsd2001 / SoapId.cs
1 //
2 // System.Runtime.Remoting.Metadata.W3cXsd2001.SoapId
3 //
4 // Authors:
5 //      Martin Willemoes Hansen (mwh@sysrq.dk)
6 //      Lluis Sanchez Gual (lluis@ximian.com)
7 //
8 // (C) 2003 Martin Willemoes Hansen
9 //
10
11 using System;
12
13 namespace System.Runtime.Remoting.Metadata.W3cXsd2001 
14 {
15         [Serializable]
16         public sealed class SoapId : ISoapXsd
17         {
18                 string _value;
19                 
20                 public SoapId()
21                 {
22                 }
23                 
24                 public SoapId (string value)
25                 {
26                         _value = SoapHelper.Normalize (value);
27                 }
28                 
29                 public string Value {
30                         get { return _value; } 
31                         set { _value = value; }
32                 }
33
34                 public static string XsdType {
35                         get { return "ID"; }
36                 }
37
38                 public string GetXsdType()
39                 {
40                         return XsdType;
41                 }
42                 
43                 public static SoapId Parse (string value)
44                 {
45                         return new SoapId (value);
46                 }
47
48                 public override string ToString()
49                 {
50                         return _value;
51                 }
52         }
53 }