XmlSchemaIdentityConstraint.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml;
  5. using System.Xml.Serialization;
  6. namespace System.Xml.Schema
  7. {
  8. /// <summary>
  9. /// Summary description for XmlSchemaIdentityConstraint.
  10. /// </summary>
  11. public class XmlSchemaIdentityConstraint : XmlSchemaAnnotated
  12. {
  13. private XmlSchemaObjectCollection fields;
  14. private string name;
  15. private XmlQualifiedName qName;
  16. private XmlSchemaXPath selector;
  17. public XmlSchemaIdentityConstraint()
  18. {
  19. fields = new XmlSchemaObjectCollection();
  20. qName = XmlQualifiedName.Empty;
  21. }
  22. [XmlElement("field",typeof(XmlSchemaXPath),Namespace="http://www.w3.org/2001/XMLSchema")]
  23. public XmlSchemaObjectCollection Fields
  24. {
  25. get{ return fields; }
  26. }
  27. [XmlElement("selector",typeof(XmlSchemaXPath),Namespace="http://www.w3.org/2001/XMLSchema")]
  28. public XmlSchemaXPath Selector
  29. {
  30. get{ return selector; }
  31. set{ selector = value; }
  32. }
  33. [System.Xml.Serialization.XmlAttribute("name")]
  34. public string Name
  35. {
  36. get{ return name; }
  37. set{ name = value; }
  38. }
  39. [XmlIgnore]
  40. public XmlQualifiedName QualifiedName
  41. {
  42. get{ return qName; }
  43. }
  44. }
  45. }