Class IdentityField

    • Constructor Detail

      • IdentityField

        public IdentityField​(java.lang.String xpath)
        Creates a new IdentityField.
        xpath - the xpath for the IdentityField. Must not be null.
    • Method Detail

      • isListValued

        public boolean isListValued()
      • setBuiltInBaseType

        public void setBuiltInBaseType​(BuiltInAtomicType builtInBaseType,
                                       boolean listValued)
      • setAscending

        public void setAscending​(boolean upwards)
      • isAscending

        public boolean isAscending()
      • getCardinality

        public int getCardinality​(ExpressionVisitor visitor,
                                  ContextItemStaticInfo contextItemType)
                           throws XPathException
        Get the static cardinality of the expression, that is the number of nodes the field xpath will select for each node selected by the selector xpath.
        visitor - the expression visitor
        contextItemType - the type of the context item, and information about whether a context item will always be provided or not
        the static cardinality
        XPathException - if an error is found during the evaluation