java.lang.Object
com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
All Implemented Interfaces:
INode
Direct Known Subclasses:
JsoupDataNode, JsoupDocumentTypeNode, JsoupElementNode, JsoupTextNode

public class JsoupNode extends Object implements INode
Implementation of the INode interface; wrapper for the JSoup Node class.
  • Constructor Details

    • JsoupNode

      public JsoupNode (com.itextpdf.styledxmlparser.jsoup.nodes.Node node)
      Creates a new JsoupNode instance.
      Parameters:
      node - the node
  • Method Details

    • childNodes

      public 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