Class JsoupNode

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<INode> childNodes
      The child nodes.
      private Node node
      The JSoup node instance.
      (package private) INode parentNode
      The parent node.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsoupNode​(Node node)
      Creates a new JsoupNode instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(INode node)
      Adds a child node.
      java.util.List<INode> childNodes()
      Gets the child nodes.
      INode parentNode()
      Gets the parent node.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • node

        private Node node
        The JSoup node instance.
      • childNodes

        private java.util.List<INode> childNodes
        The child nodes.
      • parentNode

        INode parentNode
        The parent node.
    • Constructor Detail

      • JsoupNode

        public JsoupNode​(Node node)
        Creates a new JsoupNode instance.
        Parameters:
        node - the node
    • Method Detail

      • childNodes

        public java.util.List<INode> childNodes()
        Description copied from interface: INode
        Gets the child nodes.
        Specified by:
        childNodes in interface INode
        Returns:
        a list of INode instances.
      • addChild

        public void addChild​(INode node)
        Description copied from interface: INode
        Adds a child node.
        Specified by:
        addChild in interface INode
        Parameters:
        node - a child node that will be added to the current node
      • parentNode

        public INode parentNode()
        Description copied from interface: INode
        Gets the parent node.
        Specified by:
        parentNode in interface INode
        Returns:
        the parent node