SchemaReference.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. //
  2. // System.Web.Services.Discovery.SchemaReference.cs
  3. //
  4. // Author:
  5. // Dave Bettin ([email protected])
  6. //
  7. // Copyright (C) Dave Bettin, 2002
  8. //
  9. using System.ComponentModel;
  10. using System.IO;
  11. using System.Xml.Schema;
  12. using System.Xml.Serialization;
  13. namespace System.Web.Services.Discovery {
  14. [XmlRootAttribute("schemaRef", Namespace="http://schemas/xmlsoap.org/disco/schema/", IsNullable=true)]
  15. public sealed class SchemaReference : DiscoveryReference {
  16. #region Fields
  17. public const string Namespace = "http://schemas/xmlsoap.org/disco/schema/";
  18. private string defaultFilename;
  19. private string href;
  20. private string url;
  21. private string targetNamespace;
  22. private XmlSchema schema;
  23. #endregion // Fields
  24. #region Constructors
  25. [MonoTODO]
  26. public SchemaReference ()
  27. {
  28. throw new NotImplementedException ();
  29. }
  30. [MonoTODO]
  31. public SchemaReference (string href) : this()
  32. {
  33. throw new NotImplementedException ();
  34. }
  35. #endregion // Constructors
  36. #region Properties
  37. [XmlIgnore]
  38. public override string DefaultFilename {
  39. get { return defaultFilename; }
  40. }
  41. [XmlAttribute("ref")]
  42. public string Ref {
  43. get { return href; }
  44. set { href = value; }
  45. }
  46. [XmlIgnore]
  47. public override string Url {
  48. get { return url; }
  49. set { url = value; }
  50. }
  51. [DefaultValue("")]
  52. [XmlAttribute("targetNamespace")]
  53. public string TargetNamespace {
  54. get { return targetNamespace; }
  55. set { targetNamespace = targetNamespace; }
  56. }
  57. [XmlIgnore]
  58. public XmlSchema Schema {
  59. get { return schema; }
  60. }
  61. #endregion // Properties
  62. #region Methods
  63. [MonoTODO]
  64. public override object ReadDocument (Stream stream)
  65. {
  66. throw new NotImplementedException ();
  67. }
  68. [MonoTODO]
  69. protected internal override void Resolve (string contentType, Stream stream)
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. [MonoTODO]
  74. public override void WriteDocument (object document, Stream stream)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. #endregion // Methods
  79. }
  80. }