Uses of Interface
org.joox.Match

Packages that use Match
Package
Description
 
  • Uses of Match in org.joox

    Classes in org.joox that implement Match
    Modifier and Type
    Class
    Description
    (package private) class 
     
    Methods in org.joox that return Match
    Modifier and Type
    Method
    Description
    static Match
    JOOX.$()
    Wrap a new empty document
    static Match
    JOOX.$(File file)
    Read a DOM document from a file into a Match element set
    static Match
    JOOX.$(InputStream stream)
    Read a DOM document from a stream into a Match element set
    static Match
    JOOX.$(Reader reader)
    Read a DOM document from a reader into a Match element set
    static Match
    JOOX.$(Object object)
    Wrap a JAXB-marshallable element in a jOOX Match element set
    static Match
    JOOX.$(String name)
    Create a new DOM element in an independent document
    static Match
    JOOX.$(String name, String content)
    Create a new DOM element in an independent document
    static Match
    JOOX.$(String name, Match... content)
    Create a new DOM element in an independent document
    static Match
    JOOX.$(String name, Element... content)
    Create a new DOM element in an independent document
    static Match
    JOOX.$(URI uri)
    Convenience method for calling $(new File(uri))
    static Match
    JOOX.$(URL url)
    Convenience method for calling $(url.openStream())
    static Match
    JOOX.$(Path path)
    Read a DOM document from a file into a Match element set
    static Match
    JOOX.$(Context context)
    Convenience method for calling $(context.element())
    static Match
    JOOX.$(Match match)
    Convenience method for calling $(match)
    static Match
    JOOX.$(Document document)
    Wrap a DOM document in a jOOX Match element set
    static Match
    JOOX.$(Element element)
    Wrap a DOM element in a jOOX Match element set
    static Match
    JOOX.$(Node node)
    Wrap a DOM Node in a jOOX Match element set
    static Match
    JOOX.$(NodeList list)
    Wrap a DOM NodeList in a jOOX Match element set
    static Match
    JOOX.$(InputSource source)
    Read a DOM document from a file into a Match element set
    Match.add(Match... elements)
    Add some elements to the set of matched elements
    Match.add(Element... elements)
    Add some elements to the set of matched elements
    Match.after(String content)
    Add content after each element in the set of matched elements.
    Match.after(Content content)
    Add content after each element in the set of matched elements.
    Match.after(Match... content)
    Add content after each element in the set of matched elements.
    Match.after(Element... content)
    Add content after each element in the set of matched elements.
    Match.andSelf()
    Add the previous set of matched elements to the current one.
    Match.append(String content)
    Append content to the end of each element's content in the set of matched elements.
    Match.append(Content content)
    Append content to the end of each element's content in the set of matched elements.
    Match.append(Match... content)
    Append content to the end of each element's content in the set of matched elements.
    Match.append(Element... content)
    Append content to the end of each element's content in the set of matched elements.
    Match.attr(String name, String value)
    Set an attribute on all elements in the set of matched elements.
    Match.attr(String name, Content value)
    Set an attribute on all elements in the set of matched elements.
    Match.before(String content)
    Add content before each element in the set of matched elements.
    Match.before(Content content)
    Add content before each element in the set of matched elements.
    Match.before(Match... content)
    Add content before each element in the set of matched elements.
    Match.before(Element... content)
    Add content before each element in the set of matched elements.
    Match.cdata(String content)
    Set some CDATA content to all elements in the set of matched elements (possibly replacing existing content).
    Match.cdata(Content 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.
    Match.child(String selector)
    Find the first matching child of each element in the current set of matched elements
    Match.child(Filter filter)
    Find the first matching child of each element in the current set of matched elements
    Match.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.
    Match.children(String selector)
    Find all children of each element in the current set of matched elements.
    Match.children(Filter filter)
    Find all children of each element in the current set of matched elements.
    Match.content(Object content)
    Add some JAXB-marshallable XML content to all elements in the set of matched elements (possibly replacing existing content).
    Match.content(String content)
    Add some XML content to all elements in the set of matched elements (possibly replacing existing content).
    Match.content(Content content)
    Add some XML content to all elements in the set of matched elements (possibly replacing existing content).
    Match.copy()
    Get a copy of the Match wrapper.
    Match.each(Iterable<? extends Each> each)
    Execute several callbacks for every element in the current set of matched elements.
    Match.each(Each each)
    Execute a callback for every element in the current set of matched elements.
    Match.each(Each... each)
    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.
    Match.filter(String selector)
    Reduce the current set of matched elements.
    Match.filter(Filter filter)
    Reduce the current set of matched elements.
    Match.find()
    Find all descendants of each element in the current set of matched elements.
    Match.find(String selector)
    Find all descendants of each element in the current set of matched elements.
    Match.find(Filter filter)
    Find all descendants of each element in the current set of matched elements.
    Match.first()
    Get the first in a set of matched elements.
    Match.has(String selector)
    Reduce the set of matched element to those who have a descendant that matches a selector.
    Match.has(Filter filter)
    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 elements
    final Match
    Impl.matchAttr(String name, String valueRegex)
     
    final Match
    Impl.matchAttr(String name, String valueRegex, boolean keepMatches)
     
    Match.matchAttr(String name, String valueRegex)
    Reduce the set of matched elements by filtering out those whose attribute content doesn't match a given regex
    Match.matchAttr(String name, String valueRegex, boolean keepMatches)
    Reduce 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)
    Match.matchTag(String regex)
    Reduce the set of matched elements by filtering out those whose tag name doesn't match a given regex
    Match.matchTag(String regex, boolean keepMatches)
    Reduce 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)
    Match.matchText(String regex)
    Reduce the set of matched elements by filtering out those whose text content doesn't match a given regex
    Match.matchText(String regex, boolean keepMatches)
    Reduce 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
    Impl.namespace(String namespacePrefix, String namespaceURI)
     
    Match.namespace(String namespacePrefix, String namespaceURI)
    Get a new Match with added namespace configuration for subsequent XPath calls
    final Match
     
    Get a new Match with added namespace configuration for subsequent XPath calls
    Match.next()
    Get the immediate next sibling of every element in set of matched elements.
    Match.next(String selector)
    Get the immediate next sibling of every element in set of matched elements, matching a selector
    Match.next(Filter filter)
    Get the immediate next sibling of every element in set of matched elements, matching a filter
    Match.nextAll()
    Get all next siblings of every element in a set of matched elements
    Match.nextAll(String selector)
    Get all next siblings of every element in a set of matched elements, matching a selector
    Match.nextAll(Filter filter)
    Get all next siblings of every element in a set of matched elements, matching a filter
    Match.nextUntil(String until)
    Get all next siblings of every element in a set of matched elements until the provided selector matches
    Match.nextUntil(String until, String selector)
    Get all next siblings of every element in a set of matched elements, matching a selector, until the provided selector matches
    Match.nextUntil(String until, Filter filter)
    Get all next siblings of every element in a set of matched elements, matching a filter, until the provided selector matches
    Match.nextUntil(Filter until)
    Get all next siblings of every element in a set of matched elements until the provided filter matches
    Match.nextUntil(Filter until, String selector)
    Get all next siblings of every element in a set of matched elements, matching a selector until the provided filter matches
    Match.nextUntil(Filter until, Filter filter)
    Get all next siblings of every element in a set of matched elements, matching a filter until the provided filter matches
    Match.not(String selector)
    Remove elements from the set of matched elements.
    Match.not(Filter filter)
    Remove elements from the set of matched elements.
    Match.parent()
    Get the immediate parent elements of every element in a set of matched elements
    Match.parent(String selector)
    Get the immediate parent elements of every element in a set of matched elements, matching a selector
    Match.parent(Filter filter)
    Get the immediate parent elements of every element in a set of matched elements, matching a filter
    Match.parents()
    Get all ancestor elements of every element in a set of matched elements
    Match.parents(String selector)
    Get all ancestor elements of every element in a set of matched elements, matching a selector
    Match.parents(Filter filter)
    Get all ancestor elements of every element in a set of matched elements, matching a filter
    Match.parentsUntil(String until)
    Get all ancestors of every element in a set of matched elements until the provided selector matches
    Match.parentsUntil(String until, String selector)
    Get all ancestors of every element in a set of matched elements, matching a selector, until the provided selector matches
    Match.parentsUntil(String until, Filter filter)
    Get all ancestors of every element in a set of matched elements, matching a filter, until the provided selector matches
    Match.parentsUntil(Filter until)
    Get all ancestors of every element in a set of matched elements until the provided filter matches
    Match.parentsUntil(Filter until, String selector)
    Get all ancestors of every element in a set of matched elements, matching a selector until the provided filter matches
    Match.parentsUntil(Filter until, Filter filter)
    Get all ancestors of every element in a set of matched elements, matching a filter until the provided filter matches
    Match.prepend(String content)
    Prepend content to the beginning of each element's content in the set of matched elements.
    Match.prepend(Content content)
    Prepend content to the beginning of each element's content in the set of matched elements.
    Match.prepend(Match... content)
    Prepend content to the beginning of each element's content in the set of matched elements.
    Match.prepend(Element... content)
    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.
    Match.prev(String selector)
    Get the immediate previous sibling of every element in set of matched elements, matching a selector
    Match.prev(Filter filter)
    Get the immediate previous sibling of every element in set of matched elements, matching a filter
    Match.prevAll()
    Get all previous siblings of every element in a set of matched elements
    Match.prevAll(String selector)
    Get all previous siblings of every element in a set of matched elements, matching a selector
    Match.prevAll(Filter filter)
    Get all previous siblings of every element in a set of matched elements, matching a filter
    Match.prevUntil(String until)
    Get all previous siblings of every element in a set of matched elements until the provided selector matches
    Match.prevUntil(String until, String selector)
    Get all previous siblings of every element in a set of matched elements, matching a selector, until the provided selector matches
    Match.prevUntil(String until, Filter filter)
    Get all previous siblings of every element in a set of matched elements, matching a filter, until the provided selector matches
    Match.prevUntil(Filter until)
    Get all previous siblings of every element in a set of matched elements until the provided filter matches
    Match.prevUntil(Filter until, String selector)
    Get all previous siblings of every element in a set of matched elements, matching a selector until the provided filter matches
    Match.prevUntil(Filter until, Filter filter)
    Get all previous siblings of every element in a set of matched elements, matching a filter until the provided filter matches
    Match.remove()
    Removes all elements from their parent nodes in the set of matched elements.
    Match.remove(String selector)
    Removes all elements from their parent nodes in the set of matched elements, matching a selector
    Match.remove(Filter filter)
    Removes all elements from their parent nodes in the set of matched elements, matching a filter
    Match.removeAttr(String name)
    Remove an attribute from all elements in the set of matched elements.
    final Match
    Impl.rename(String tag)
     
    final Match
    Impl.rename(Content tag)
     
    Match.rename(String tag)
    Rename all tags in the set of matched elements to some new tag name
    Match.rename(Content tag)
    Rename all tags in the set of matched elements to some new tag name
    Match.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 elements
    Match.siblings()
    Get all siblings of every element in a set of matched elements
    Match.siblings(String selector)
    Get all siblings of every element in a set of matched elements, matching a selector
    Match.siblings(Filter filter)
    Get all siblings of every element in a set of matched elements, matching a filter
    Match.slice(int start)
    Reduce the set of matched elements by specifying a range of indexes
    Match.slice(int start, int end)
    Reduce the set of matched elements by specifying a range of indexes
    Impl.sort(Comparator<Element> comparator)
     
    Match.sort(Comparator<Element> comparator)
    Allows to sort the result with the given comparator.
    Match.text(String content)
    Set some text content to all elements in the set of matched elements (possibly replacing existing content).
    Match.text(Content content)
    Set some text content to all elements in the set of matched elements (possibly replacing existing content).
    Match.transform(File transformer)
    Transform all elements in the set of matched elements.
    Match.transform(InputStream transformer)
    Transform all elements in the set of matched elements.
    Match.transform(Reader transformer)
    Transform all elements in the set of matched elements.
    Match.transform(String transformer)
    Transform all elements in the set of matched elements.
    Match.transform(URL transformer)
    Transform all elements in the set of matched elements.
    Match.transform(Source transformer)
    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 parents
    Match.wrap(String parent)
    Wrap all elements from their parent nodes in the set of matched elements in a new parent element
    Match.wrap(Content parent)
    Wrap all elements in the set of matched elements in a new parent element
    final Match
    Impl.write(File file)
     
    final Match
    Impl.write(OutputStream stream)
     
    final Match
    Impl.write(Writer writer)
     
    Match.write(File file)
    Write the set of matched elements into a file
    Match.write(OutputStream stream)
    Write the set of matched elements into a stream
    Match.write(Writer writer)
    Write the set of matched elements into a writer
    Match.xpath(String expression)
    Match all elements given a certain XPath expression applied to each element in the current set of matched elements.
    Match.xpath(String expression, Object... variables)
    Match all elements given a certain XPath expression applied to each element in the current set of matched elements.
    Methods in org.joox that return types with arguments of type Match
    Modifier and Type
    Method
    Description
    final List<Match>
    Impl.each()
     
    Match.each()
    Get all elements in the set of matched elements in a list of matches, every match representing one element
    Methods in org.joox with parameters of type Match
    Modifier and Type
    Method
    Description
    static Match
    JOOX.$(String name, Match... content)
    Create a new DOM element in an independent document
    static Match
    JOOX.$(Match match)
    Convenience method for calling $(match)
    final Impl
    Impl.add(Match... e)
     
    Match.add(Match... elements)
    Add some elements to the set of matched elements
    final Impl
    Impl.after(Match... content)
     
    Match.after(Match... content)
    Add content after each element in the set of matched elements.
    final Impl
    Impl.append(Match... content)
     
    Match.append(Match... content)
    Append content to the end of each element's content in the set of matched elements.
    final Impl
    Impl.before(Match... content)
     
    Match.before(Match... content)
    Add content before each element in the set of matched elements.
    (package private) static final Element[]
    Util.elements(Match... content)
    Transform an Match[] into an Element[], removing duplicates.
    final Impl
    Impl.prepend(Match... content)
     
    Match.prepend(Match... content)
    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.