Import.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // System.Web.Services.Description.Import.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Xml.Serialization;
  10. namespace System.Web.Services.Description {
  11. public sealed class Import : DocumentableItem {
  12. #region Fields
  13. string location;
  14. string ns;
  15. ServiceDescription serviceDescription;
  16. #endregion // Fields
  17. #region Constructors
  18. public Import ()
  19. {
  20. location = String.Empty;
  21. ns = String.Empty;
  22. serviceDescription = null;
  23. }
  24. #endregion // Constructors
  25. #region Properties
  26. [XmlAttribute ("location")]
  27. public string Location {
  28. get { return location; }
  29. set { location = value; }
  30. }
  31. [XmlAttribute ("namespace")]
  32. public string Namespace {
  33. get { return ns; }
  34. set { ns = value; }
  35. }
  36. [XmlIgnore]
  37. public ServiceDescription ServiceDescription {
  38. get { return serviceDescription; }
  39. }
  40. #endregion // Properties
  41. #region Methods
  42. internal void SetParent (ServiceDescription serviceDescription)
  43. {
  44. this.serviceDescription = serviceDescription;
  45. }
  46. #endregion
  47. }
  48. }