Uses of Class
com.itextpdf.styledxmlparser.jsoup.nodes.Element
Packages that use Element
Package
Description
-
Uses of Element in com.itextpdf.styledxmlparser.jsoup.nodes
Subclasses of Element in com.itextpdf.styledxmlparser.jsoup.nodesModifier and TypeClassDescriptionclass
A HTML Document.class
A HTML Form Element provides ready access to the form fields/controls that are associated with it.class
Fields in com.itextpdf.styledxmlparser.jsoup.nodes declared as ElementFields in com.itextpdf.styledxmlparser.jsoup.nodes with type parameters of type ElementModifier and TypeFieldDescriptionElement.EmptyChildren
private WeakReference
<List<Element>> Element.shadowChildrenRef
Methods in com.itextpdf.styledxmlparser.jsoup.nodes with type parameters of type ElementModifier and TypeMethodDescriptionprivate static <E extends Element>
intElement.indexInList
(Element search, List<E> elements) Methods in com.itextpdf.styledxmlparser.jsoup.nodes that return ElementModifier and TypeMethodDescriptionAdd a class name to this element'sclass
attribute.Add inner HTML to this element.Element.appendChild
(Node child) Insert a node to the end of this Element's children.Element.appendChildren
(Collection<? extends Node> children) Insert the given nodes to the end of this Element's children.Element.appendElement
(String tagName) Create a new element by tag name, and add it as the last child.Element.appendText
(String text) Create and append a new TextNode to this element.Add this element to the supplied parent element, as its next child.Set a boolean attribute value on this element.Document.body()
Get this document's<body>
or<frameset>
element.Element.child
(int index) Get a child element of this element, by its 0-based index number.Element.classNames
(Set<String> classNames) Set the element'sclass
attribute to the supplied class names.Find the closest element up the tree of parents that matches the specified evaluator.Find the closest element up the tree of parents that matches the specified CSS query.Document.createElement
(String tagName) Create a new Element, with this document's base uri.Element.firstElementSibling()
Gets the first Element sibling of this element.private Element
Node.getDeepChild
(Element el) Element.getElementById
(String id) Find an element by ID, including or under this element.Document.head()
Get this document'shead
element.Set this element's inner HTML.private Element
Document.htmlEl()
Find the root HTML element, or create it if it doesn't exist.Set theid
attribute of this element.Element.insertChild
(int index, Node child) Inserts the given child node into this element at the specified index.Element.insertChildren
(int index, Node... children) Inserts the given child nodes into this element at the specified index.Element.insertChildren
(int index, Collection<? extends Node> children) Inserts the given child nodes into this element at the specified index.Element.lastElementSibling()
Gets the last element sibling of this element.Element.nextElementSibling()
Gets the next sibling element of this element.Add inner HTML into this element.Element.prependChild
(Node child) Add a node to the start of this element's children.Element.prependChildren
(Collection<? extends Node> children) Insert the given nodes to the start of this Element's children.Element.prependElement
(String tagName) Create a new element by tag name, and add it as the first child.Element.prependText
(String text) Create and prepend a new TextNode to this element.Element.previousElementSibling()
Gets the previous element sibling of this element.Element.removeClass
(String className) Remove a class name from this element'sclass
attribute.Element.selectFirst
(Evaluator evaluator) Finds the first Element that matches the supplied Evaluator, with this element as the starting context, ornull
if none match.Element.selectFirst
(String cssQuery) Find the first Element that matches theSelector
CSS query, with this element as the starting context.Change (rename) the tag of this element.Set the text of thebody
of this document.Set the text of this element.Element.toggleClass
(String className) Toggle a class name on this element'sclass
attribute: if present, remove it; otherwise add it.Set the value of a form element (input, textarea, etc).Methods in com.itextpdf.styledxmlparser.jsoup.nodes that return types with arguments of type ElementModifier and TypeMethodDescriptionElement.childElementsList()
Maintains a shadow copy of this element's child elements.Methods in com.itextpdf.styledxmlparser.jsoup.nodes with parameters of type ElementModifier and TypeMethodDescriptionprivate static void
Element.accumulateParents
(Element el, Elements parents) FormElement.addElement
(Element element) Add a form control element to this form.Add this element to the supplied parent element, as its next child.private static void
Element.appendWhitespaceIfBr
(Element element, StringBuilder accum) private Element
Node.getDeepChild
(Element el) private static <E extends Element>
intElement.indexInList
(Element search, List<E> elements) private void
Document.normaliseStructure
(String tag, Element htmlEl) private void
Document.normaliseTextNodes
(Element element) private static String
Element.searchUpForAttribute
(Element start, String key) Constructors in com.itextpdf.styledxmlparser.jsoup.nodes with parameters of type Element -
Uses of Element in com.itextpdf.styledxmlparser.jsoup.parser
Fields in com.itextpdf.styledxmlparser.jsoup.parser declared as ElementModifier and TypeFieldDescriptionprivate Element
HtmlTreeBuilder.contextElement
private Element
HtmlTreeBuilder.headElement
Fields in com.itextpdf.styledxmlparser.jsoup.parser with type parameters of type ElementMethods in com.itextpdf.styledxmlparser.jsoup.parser that return ElementModifier and TypeMethodDescription(package private) Element
HtmlTreeBuilder.aboveOnStack
(Element el) protected Element
TreeBuilder.currentElement()
(package private) Element
HtmlTreeBuilder.getActiveFormattingElement
(String nodeName) (package private) Element
HtmlTreeBuilder.getFromStack
(String elName) (package private) Element
HtmlTreeBuilder.getHeadElement()
(package private) Element
HtmlTreeBuilder.insert
(Token.StartTag startTag) (package private) Element
XmlTreeBuilder.insert
(Token.StartTag startTag) (package private) Element
HtmlTreeBuilder.insertEmpty
(Token.StartTag startTag) (package private) Element
HtmlTreeBuilder.insertStartTag
(String startTagName) (package private) Element
HtmlTreeBuilder.lastFormattingElement()
(package private) Element
HtmlTreeBuilder.pop()
(package private) Element
HtmlTreeBuilder.popStackToClose
(String elName) (package private) Element
HtmlTreeBuilder.removeLastFormattingElement()
Methods in com.itextpdf.styledxmlparser.jsoup.parser that return types with arguments of type ElementMethods in com.itextpdf.styledxmlparser.jsoup.parser with parameters of type ElementModifier and TypeMethodDescription(package private) Element
HtmlTreeBuilder.aboveOnStack
(Element el) (package private) void
HtmlTreeBuilder.checkActiveFormattingElements
(Element in) (package private) void
(package private) void
HtmlTreeBuilder.insertOnStackAfter
(Element after, Element in) private boolean
HtmlTreeBuilder.isElementInQueue
(ArrayList<Element> queue, Element element) (package private) boolean
HtmlTreeBuilder.isInActiveFormattingElements
(Element el) private boolean
HtmlTreeBuilder.isSameFormattingElement
(Element a, Element b) (package private) boolean
(package private) void
HtmlTreeBuilder.maybeSetBaseUri
(Element base) (package private) boolean
HtmlTreeBuilder.parseFragment
(String inputFragment, Element context, String baseUri, Parser parser) Parser.parseFragment
(String fragmentHtml, Element context, String baseUri) Parse a fragment of HTML into a list of nodes.Parser.parseFragment
(String fragmentHtml, Element context, String baseUri, ParseErrorList errorList) Parse a fragment of HTML into a list of nodes.TreeBuilder.parseFragment
(String inputFragment, Element context, String baseUri, Parser parser) XmlTreeBuilder.parseFragment
(String inputFragment, Element context, String baseUri, Parser parser) Parser.parseFragmentInput
(String fragment, Element context, String baseUri) (package private) int
HtmlTreeBuilder.positionOfElement
(Element el) (package private) void
(package private) void
HtmlTreeBuilder.pushActiveFormattingElements
(Element in) (package private) void
HtmlTreeBuilder.pushWithBookmark
(Element in, int bookmark) (package private) void
HtmlTreeBuilder.removeFromActiveFormattingElements
(Element el) (package private) boolean
HtmlTreeBuilder.removeFromStack
(Element el) (package private) void
HtmlTreeBuilder.replaceActiveFormattingElement
(Element out, Element in) private void
HtmlTreeBuilder.replaceInQueue
(ArrayList<Element> queue, Element out, Element in) (package private) void
HtmlTreeBuilder.replaceOnStack
(Element out, Element in) (package private) void
HtmlTreeBuilder.setHeadElement
(Element headElement) Method parameters in com.itextpdf.styledxmlparser.jsoup.parser with type arguments of type ElementModifier and TypeMethodDescriptionprivate boolean
HtmlTreeBuilder.isElementInQueue
(ArrayList<Element> queue, Element element) private void
HtmlTreeBuilder.replaceInQueue
(ArrayList<Element> queue, Element out, Element in) -
Uses of Element in com.itextpdf.styledxmlparser.jsoup.safety
Fields in com.itextpdf.styledxmlparser.jsoup.safety declared as ElementModifier and TypeFieldDescriptionprivate Element
Cleaner.CleaningVisitor.destination
(package private) Element
Cleaner.ElementMeta.el
private final Element
Cleaner.CleaningVisitor.root
Methods in com.itextpdf.styledxmlparser.jsoup.safety with parameters of type ElementModifier and TypeMethodDescriptionprivate int
Cleaner.copySafeNodes
(Element source, Element dest) private Cleaner.ElementMeta
Cleaner.createSafeElement
(Element sourceEl) protected boolean
Safelist.isSafeAttribute
(String tagName, Element el, Attribute attr) Test if the supplied attribute is allowed by this safelist for this tagprotected boolean
Whitelist.isSafeAttribute
(String tagName, Element el, Attribute attr) Deprecated.private boolean
Safelist.testValidProtocol
(Element el, Attribute attr, Set<Safelist.Protocol> protocols) Constructors in com.itextpdf.styledxmlparser.jsoup.safety with parameters of type ElementModifierConstructorDescription(package private)
CleaningVisitor
(Element root, Element destination) (package private)
ElementMeta
(Element el, int numAttribsDiscarded) -
Uses of Element in com.itextpdf.styledxmlparser.jsoup.select
Fields in com.itextpdf.styledxmlparser.jsoup.select declared as ElementModifier and TypeFieldDescription(package private) Element
Collector.FirstFinder.match
private final Element
Collector.Accumulator.root
private final Element
Collector.FirstFinder.root
Methods in com.itextpdf.styledxmlparser.jsoup.select that return ElementModifier and TypeMethodDescriptionstatic Element
Finds the first Element that matches the Evaluator that descends from the root, and stops the query once that first match is found.Elements.first()
Get the first matched element.Elements.last()
Get the last matched element.static Element
Selector.selectFirst
(String cssQuery, Element root) Find the first element that matches the query.Methods in com.itextpdf.styledxmlparser.jsoup.select with parameters of type ElementModifier and TypeMethodDescriptionprotected abstract int
Evaluator.CssNthEvaluator.calculatePosition
(Element root, Element element) protected int
Evaluator.IsNthChild.calculatePosition
(Element root, Element element) protected int
Evaluator.IsNthLastChild.calculatePosition
(Element root, Element element) protected int
Evaluator.IsNthLastOfType.calculatePosition
(Element root, Element element) protected int
Evaluator.IsNthOfType.calculatePosition
(Element root, Element element) static Elements
Build a list of elements, by visiting root and every descendant of root, and testing it against the evaluator.static Element
Finds the first Element that matches the Evaluator that descends from the root, and stops the query once that first match is found.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
abstract boolean
Test if the element meets the evaluator's requirements.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static Elements
Find elements matching selector.static Elements
Find elements matching selector.static Element
Selector.selectFirst
(String cssQuery, Element root) Find the first element that matches the query.Method parameters in com.itextpdf.styledxmlparser.jsoup.select with type arguments of type ElementModifier and TypeMethodDescription(package private) static Elements
Selector.filterOut
(Collection<Element> elements, Collection<Element> outs) static Elements
Find elements matching selector.Constructors in com.itextpdf.styledxmlparser.jsoup.select with parameters of type ElementModifierConstructorDescription(package private)
Accumulator
(Element root, Elements elements, Evaluator eval) (package private)
FirstFinder
(Element root, Evaluator eval) Constructor parameters in com.itextpdf.styledxmlparser.jsoup.select with type arguments of type Element -
Uses of Element in com.itextpdf.styledxmlparser.node.impl.jsoup.node
Fields in com.itextpdf.styledxmlparser.node.impl.jsoup.node declared as ElementConstructors in com.itextpdf.styledxmlparser.node.impl.jsoup.node with parameters of type ElementModifierConstructorDescriptionJsoupElementNode
(Element element) Creates a newJsoupElementNode
instance.