Class NodeView<N extends Node>

    • Constructor Detail

      • NodeView

        public NodeView​(N node)
      • NodeView

        public NodeView​(N node,
                        int position)
      • NodeView

        public NodeView​(N node,
                        int position,
                        boolean hasNext)
    • Method Detail

      • compareTo

        public int compareTo​(View<N> other)
        Description copied from interface: View
        Compare views by XQuery comparison rules.
        Specified by:
        compareTo in interface java.lang.Comparable<N extends Node>
        Specified by:
        compareTo in interface View<N extends Node>
        Parameters:
        other - view to compare with
        Returns:
        comparison result
      • toBoolean

        public boolean toBoolean()
        Description copied from interface: View
        Converts this view to a boolean value.
        Specified by:
        toBoolean in interface View<N extends Node>
        Returns:
        boolean value
      • toNumber

        public double toNumber()
        Description copied from interface: View
        Converts this view to a numeric value.
        Specified by:
        toNumber in interface View<N extends Node>
        Returns:
        numeric value
      • toString

        public java.lang.String toString()
        Description copied from interface: View
        Converts this view to a string value.
        Specified by:
        toString in interface View<N extends Node>
        Overrides:
        toString in class java.lang.Object
        Returns:
        string value
      • visit

        public <T> T visit​(ViewVisitor<N,​T> visitor)
                    throws XmlBuilderException
        Description copied from interface: View
        Visits current XML element.
        Specified by:
        visit in interface View<N extends Node>
        Type Parameters:
        T - type of return value
        Parameters:
        visitor - XML element visitor
        Returns:
        visitor result
        Throws:
        XmlBuilderException - if error occur during XML model modification
      • iterator

        public java.util.Iterator<NodeView<N>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<N extends Node>
      • getNode

        public N getNode()
      • getPosition

        public int getPosition()
      • hasNext

        public boolean hasNext()
      • isNew

        public boolean isNew()
      • isMarked

        public boolean isMarked()
      • mark

        public void mark()