Class Ann


  • public final class Ann
    extends Object
    Annotation.
    Author:
    BaseX Team 2005-23, BSD License, Christian Gruen
    • Field Detail

      • info

        public final InputInfo info
        Input info.
      • definition

        public final Annotation definition
        Annotation definition (null if name is assigned).
    • Constructor Detail

      • Ann

        public Ann​(InputInfo info,
                   Annotation definition,
                   Value value)
        Constructor.
        Parameters:
        info - input info
        definition - definition
        value - value
      • Ann

        public Ann​(InputInfo info,
                   QNm name,
                   Value value)
        Constructor.
        Parameters:
        info - input info
        name - name
        value - value
    • Method Detail

      • name

        public QNm name()
        Returns the name of the annotation.
        Returns:
        name
      • value

        public Value value()
        Returns the value of the annotation.
        Returns:
        value
      • toString

        public void toString​(QueryString qs)
        Adds the annotation to a query string.
        Parameters:
        qs - query string builder