XPathItem.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // XPathItem.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. #if NET_2_0
  8. using System.Collections;
  9. using System.Xml.Schema;
  10. namespace System.Xml.XPath
  11. {
  12. public abstract class XPathItem
  13. {
  14. protected XPathItem ()
  15. {
  16. }
  17. public virtual object ValueAs (Type type)
  18. {
  19. return ValueAs (type, null);
  20. }
  21. public abstract object ValueAs (Type type, IXmlNamespaceResolver nsResolver);
  22. public abstract bool IsNode { get; }
  23. public abstract object TypedValue { get; }
  24. public abstract string Value { get; }
  25. public abstract bool ValueAsBoolean { get; }
  26. public abstract DateTime ValueAsDateTime { get; }
  27. public abstract decimal ValueAsDecimal { get; }
  28. public abstract double ValueAsDouble { get; }
  29. public abstract int ValueAsInt32 { get; }
  30. public abstract long ValueAsInt64 { get; }
  31. public abstract ICollection ValueAsList { get; }
  32. public abstract float ValueAsSingle { get; }
  33. public abstract Type ValueType { get; }
  34. public abstract XmlSchemaType XmlType { get; }
  35. }
  36. }
  37. #endif