XmlSchemaIdentityConstraint.cs 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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]
  23. public XmlSchemaObjectCollection Fields
  24. {
  25. get{ return fields; }
  26. }
  27. [XmlAttribute]
  28. public string Name
  29. {
  30. get{ return name; }
  31. set{ name = value; }
  32. }
  33. [XmlIgnore]
  34. public XmlQualifiedName QualifiedName
  35. {
  36. get{ return qName; }
  37. }
  38. [XmlElement]
  39. public XmlSchemaXPath Selector
  40. {
  41. get{ return selector; }
  42. set{ selector = value; }
  43. }
  44. }
  45. }