XmlSchemaUnique.cs 865 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaUnique.
  9. /// </summary>
  10. public class XmlSchemaUnique : XmlSchemaIdentityConstraint
  11. {
  12. private int errorCount;
  13. public XmlSchemaUnique()
  14. {
  15. }
  16. /// <remarks>
  17. /// 1. name must be present
  18. /// 2. selector and field must be present
  19. /// </remarks>
  20. [MonoTODO]
  21. internal new int Compile(ValidationEventHandler h, XmlSchemaInfo info)
  22. {
  23. return base.Compile(h,info);
  24. }
  25. [MonoTODO]
  26. internal int Validate(ValidationEventHandler h)
  27. {
  28. return errorCount;
  29. }
  30. internal new void error(ValidationEventHandler handle, string message)
  31. {
  32. errorCount++;
  33. ValidationHandler.RaiseValidationError(handle, this, message);
  34. }
  35. }
  36. }