Uses of Interface
org.joox.Match
Packages that use Match
-
Uses of Match in org.joox
Modifier and TypeMethodDescriptionstatic Match
JOOX.$()
Wrap a new empty documentstatic Match
Read a DOM document from a file into aMatch
element setstatic Match
JOOX.$
(InputStream stream) Read a DOM document from a stream into aMatch
element setstatic Match
Read a DOM document from a reader into aMatch
element setstatic Match
Wrap a JAXB-marshallable element in a jOOXMatch
element setstatic Match
Create a new DOM element in an independent documentstatic Match
Create a new DOM element in an independent documentstatic Match
Create a new DOM element in an independent documentstatic Match
Create a new DOM element in an independent documentstatic Match
Convenience method for calling$(new File(uri))
static Match
Convenience method for calling$(url.openStream())
static Match
Read a DOM document from a file into aMatch
element setstatic Match
Convenience method for calling$(context.element())
static Match
Convenience method for calling$(match)
static Match
Wrap a DOM document in a jOOXMatch
element setstatic Match
Wrap a DOM element in a jOOXMatch
element setstatic Match
static Match
static Match
JOOX.$
(InputSource source) Read a DOM document from a file into aMatch
element setAdd some elements to the set of matched elementsAdd some elements to the set of matched elementsAdd content after each element in the set of matched elements.Add content after each element in the set of matched elements.Add content after each element in the set of matched elements.Add content after each element in the set of matched elements.Match.andSelf()
Add the previous set of matched elements to the current one.Append content to the end of each element's content in the set of matched elements.Append content to the end of each element's content in the set of matched elements.Append content to the end of each element's content in the set of matched elements.Append content to the end of each element's content in the set of matched elements.Set an attribute on all elements in the set of matched elements.Set an attribute on all elements in the set of matched elements.Add content before each element in the set of matched elements.Add content before each element in the set of matched elements.Add content before each element in the set of matched elements.Add content before each element in the set of matched elements.Set some CDATA content to all elements in the set of matched elements (possibly replacing existing content).Set some CDATA content to all elements in the set of matched elements (possibly replacing existing content).Match.child()
Find the first child of each element in the current set of matched elements.Match.child
(int index) Find the child at a given index of each element in the current set of matched elements.Find the first matching child of each element in the current set of matched elementsFind the first matching child of each element in the current set of matched elementsMatch.children()
Find all children of each element in the current set of matched elements.Match.children
(int... indexes) Find all children of each element at given indexes in the current set of matched elements.Find all children of each element in the current set of matched elements.Find all children of each element in the current set of matched elements.Add some JAXB-marshallable XML content to all elements in the set of matched elements (possibly replacing existing content).Add some XML content to all elements in the set of matched elements (possibly replacing existing content).Add some XML content to all elements in the set of matched elements (possibly replacing existing content).Match.copy()
Get a copy of theMatch
wrapper.Execute several callbacks for every element in the current set of matched elements.Execute a callback for every element in the current set of matched elements.Execute several callbacks for every element in the current set of matched elements.final Match
Impl.empty()
Match.empty()
Removes all content from all elements in the set of matched elements.Match.eq
(int... indexes) Reduce the current set of matched elements to the elements at the given indexes.Reduce the current set of matched elements.Reduce the current set of matched elements.Match.find()
Find all descendants of each element in the current set of matched elements.Find all descendants of each element in the current set of matched elements.Find all descendants of each element in the current set of matched elements.Match.first()
Get the first in a set of matched elements.Reduce the set of matched element to those who have a descendant that matches a selector.Reduce the set of matched element to those who have a descendant that matches a filter.Match.last()
Get the last in a set of matched elements.Match.leaf()
Reduce the set of matched elements to the ones that are leaf elementsfinal Match
final Match
Reduce the set of matched elements by filtering out those whose attribute content doesn't match a given regexReduce the set of matched elements by filtering out those whose attribute content doesn't match a given regex(keepMatches = true)
, or those whose text content matches a given regex(keepMatches = false)
Reduce the set of matched elements by filtering out those whose tag name doesn't match a given regexReduce the set of matched elements by filtering out those whose tag name doesn't match a given regex(keepMatches = true)
, or those whose tag name matches a given regex(keepMatches = false)
Reduce the set of matched elements by filtering out those whose text content doesn't match a given regexReduce the set of matched elements by filtering out those whose text content doesn't match a given regex(keepMatches = true)
, or those whose text content matches a given regex(keepMatches = false)
final Match
Get a new Match with added namespace configuration for subsequent XPath callsfinal Match
Impl.namespaces
(Map<String, String> map) Match.namespaces
(Map<String, String> map) Get a new Match with added namespace configuration for subsequent XPath callsMatch.next()
Get the immediate next sibling of every element in set of matched elements.Get the immediate next sibling of every element in set of matched elements, matching a selectorGet the immediate next sibling of every element in set of matched elements, matching a filterMatch.nextAll()
Get all next siblings of every element in a set of matched elementsGet all next siblings of every element in a set of matched elements, matching a selectorGet all next siblings of every element in a set of matched elements, matching a filterGet all next siblings of every element in a set of matched elements until the provided selector matchesGet all next siblings of every element in a set of matched elements, matching a selector, until the provided selector matchesGet all next siblings of every element in a set of matched elements, matching a filter, until the provided selector matchesGet all next siblings of every element in a set of matched elements until the provided filter matchesGet all next siblings of every element in a set of matched elements, matching a selector until the provided filter matchesGet all next siblings of every element in a set of matched elements, matching a filter until the provided filter matchesRemove elements from the set of matched elements.Remove elements from the set of matched elements.Match.parent()
Get the immediate parent elements of every element in a set of matched elementsGet the immediate parent elements of every element in a set of matched elements, matching a selectorGet the immediate parent elements of every element in a set of matched elements, matching a filterMatch.parents()
Get all ancestor elements of every element in a set of matched elementsGet all ancestor elements of every element in a set of matched elements, matching a selectorGet all ancestor elements of every element in a set of matched elements, matching a filterMatch.parentsUntil
(String until) Get all ancestors of every element in a set of matched elements until the provided selector matchesMatch.parentsUntil
(String until, String selector) Get all ancestors of every element in a set of matched elements, matching a selector, until the provided selector matchesMatch.parentsUntil
(String until, Filter filter) Get all ancestors of every element in a set of matched elements, matching a filter, until the provided selector matchesMatch.parentsUntil
(Filter until) Get all ancestors of every element in a set of matched elements until the provided filter matchesMatch.parentsUntil
(Filter until, String selector) Get all ancestors of every element in a set of matched elements, matching a selector until the provided filter matchesMatch.parentsUntil
(Filter until, Filter filter) Get all ancestors of every element in a set of matched elements, matching a filter until the provided filter matchesPrepend content to the beginning of each element's content in the set of matched elements.Prepend content to the beginning of each element's content in the set of matched elements.Prepend content to the beginning of each element's content in the set of matched elements.Prepend content to the beginning of each element's content in the set of matched elements.Match.prev()
Get the immediate previous sibling of every element in set of matched elements.Get the immediate previous sibling of every element in set of matched elements, matching a selectorGet the immediate previous sibling of every element in set of matched elements, matching a filterMatch.prevAll()
Get all previous siblings of every element in a set of matched elementsGet all previous siblings of every element in a set of matched elements, matching a selectorGet all previous siblings of every element in a set of matched elements, matching a filterGet all previous siblings of every element in a set of matched elements until the provided selector matchesGet all previous siblings of every element in a set of matched elements, matching a selector, until the provided selector matchesGet all previous siblings of every element in a set of matched elements, matching a filter, until the provided selector matchesGet all previous siblings of every element in a set of matched elements until the provided filter matchesGet all previous siblings of every element in a set of matched elements, matching a selector until the provided filter matchesGet all previous siblings of every element in a set of matched elements, matching a filter until the provided filter matchesMatch.remove()
Removes all elements from their parent nodes in the set of matched elements.Removes all elements from their parent nodes in the set of matched elements, matching a selectorRemoves all elements from their parent nodes in the set of matched elements, matching a filterMatch.removeAttr
(String name) Remove an attribute from all elements in the set of matched elements.final Match
final Match
Rename all tags in the set of matched elements to some new tag nameRename all tags in the set of matched elements to some new tag nameMatch.replaceWith
(String content) Replace all elements in the set of matched elements with some new content.Match.replaceWith
(Content content) Replace all elements in the set of matched elements with some new content.Match.replaceWith
(Match... content) Replace all elements in the set of matched elements with some new content.Match.replaceWith
(Element... content) Replace all elements in the set of matched elements with some new content.Match.reverse()
Reverse the order of the set of matched elementsMatch.siblings()
Get all siblings of every element in a set of matched elementsGet all siblings of every element in a set of matched elements, matching a selectorGet all siblings of every element in a set of matched elements, matching a filterMatch.slice
(int start) Reduce the set of matched elements by specifying a range of indexesMatch.slice
(int start, int end) Reduce the set of matched elements by specifying a range of indexesImpl.sort
(Comparator<Element> comparator) Match.sort
(Comparator<Element> comparator) Allows to sort the result with the given comparator.Set some text content to all elements in the set of matched elements (possibly replacing existing content).Set some text content to all elements in the set of matched elements (possibly replacing existing content).Transform all elements in the set of matched elements.Match.transform
(InputStream transformer) Transform all elements in the set of matched elements.Transform all elements in the set of matched elements.Transform all elements in the set of matched elements.Transform all elements in the set of matched elements.Transform all elements in the set of matched elements.Match.transform
(Transformer transformer) Transform all elements in the set of matched elements.Match.unwrap()
Removes all elements in the set of matched elements from their parentsWrap all elements from their parent nodes in the set of matched elements in a new parent elementWrap all elements in the set of matched elements in a new parent elementfinal Match
final Match
Impl.write
(OutputStream stream) final Match
Write the set of matched elements into a fileMatch.write
(OutputStream stream) Write the set of matched elements into a streamWrite the set of matched elements into a writerMatch all elements given a certain XPath expression applied to each element in the current set of matched elements.Match all elements given a certain XPath expression applied to each element in the current set of matched elements.Modifier and TypeMethodDescriptionImpl.each()
Match.each()
Get all elements in the set of matched elements in a list of matches, every match representing one elementModifier and TypeMethodDescriptionstatic Match
Create a new DOM element in an independent documentstatic Match
Convenience method for calling$(match)
final Impl
Add some elements to the set of matched elementsfinal Impl
Add content after each element in the set of matched elements.final Impl
Append content to the end of each element's content in the set of matched elements.final Impl
Add content before each element in the set of matched elements.(package private) static final Element[]
final Impl
Prepend content to the beginning of each element's content in the set of matched elements.final Impl
Impl.replaceWith
(Match... content) Match.replaceWith
(Match... content) Replace all elements in the set of matched elements with some new content.