Class NotationValue

All Implemented Interfaces:
Serializable, Expression, Item, ValueRepresentation

public final class NotationValue extends QNameValue
An xs:NOTATION value.
See Also:
  • Constructor Details

    • NotationValue

      public NotationValue(String prefix, String uri, String localName, NameChecker checker) throws XPathException
      Constructor
      Parameters:
      prefix - The prefix part of the QName (not used in comparisons). Use null or "" to represent the default prefix.
      uri - The namespace part of the QName. Use null or "" to represent the null namespace.
      localName - The local part of the QName
      Throws:
      XPathException
  • Method Details

    • convertPrimitive

      public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
      Convert to target data type
      Overrides:
      convertPrimitive in class QNameValue
      Parameters:
      requiredType - an integer identifying the required atomic type
      validate - true if validation is required. If set to false, the caller guarantees that the value is valid for the target data type, and that further validation is therefore not required. Note that a validation failure may be reported even if validation was not requested.
      context -
      Returns:
      an AtomicValue, a value of the required type; or an ErrorValue
    • getItemType

      public ItemType getItemType(TypeHierarchy th)
      Return the type of the expression
      Specified by:
      getItemType in interface Expression
      Overrides:
      getItemType in class QNameValue
      Parameters:
      th -
      Returns:
      Type.NOTATION (always)
    • toString

      public String toString()
      The toString() method returns the name in the form QName("uri", "local")
      Overrides:
      toString in class QNameValue
      Returns:
      the name in Clark notation: {uri}local