Package | Description |
---|---|
org.joox |
Modifier and Type | Method | Description |
---|---|---|
static Match |
JOOX.$() |
Wrap a new empty document
|
static Match |
JOOX.$(java.io.File file) |
Read a DOM document from a file into a
Match element set |
static Match |
JOOX.$(java.io.InputStream stream) |
Read a DOM document from a stream into a
Match element set |
static Match |
JOOX.$(java.io.Reader reader) |
Read a DOM document from a reader into a
Match element set |
static Match |
JOOX.$(java.lang.Object object) |
Wrap a JAXB-marshallable element in a jOOX
Match element set |
static Match |
JOOX.$(java.lang.String name) |
Create a new DOM element in an independent document
|
static Match |
JOOX.$(java.lang.String name,
java.lang.String content) |
Create a new DOM element in an independent document
|
static Match |
JOOX.$(java.lang.String name,
Match... content) |
Create a new DOM element in an independent document
|
static Match |
JOOX.$(java.lang.String name,
org.w3c.dom.Element... content) |
Create a new DOM element in an independent document
|
static Match |
JOOX.$(java.net.URI uri) |
Convenience method for calling
$(new File(uri)) |
static Match |
JOOX.$(java.net.URL url) |
Convenience method for calling
$(url.openStream()) |
static Match |
JOOX.$(Context context) |
Convenience method for calling
$(context.element()) |
static Match |
JOOX.$(Match match) |
Convenience method for calling
$(match) |
static Match |
JOOX.$(org.w3c.dom.Document document) |
Wrap a DOM document in a jOOX
Match element set |
static Match |
JOOX.$(org.w3c.dom.Element element) |
Wrap a DOM element in a jOOX
Match element set |
static Match |
JOOX.$(org.w3c.dom.Node node) |
Wrap a DOM
Node in a jOOX Match element set |
static Match |
JOOX.$(org.w3c.dom.NodeList list) |
Wrap a DOM
NodeList in a jOOX Match element set |
static Match |
JOOX.$(org.xml.sax.InputSource source) |
Read a DOM document from a file into a
Match element set |
Match |
Match.add(Match... elements) |
Add some elements to the set of matched elements
|
Match |
Match.add(org.w3c.dom.Element... elements) |
Add some elements to the set of matched elements
|
Match |
Match.after(java.lang.String content) |
Add content after each element in the set of matched elements.
|
Match |
Match.after(Content content) |
Add content after each element in the set of matched elements.
|
Match |
Match.after(Match... content) |
Add content after each element in the set of matched elements.
|
Match |
Match.after(org.w3c.dom.Element... content) |
Add content after each element in the set of matched elements.
|
Match |
Match.andSelf() |
Add the previous set of matched elements to the current one.
|
Match |
Match.append(java.lang.String content) |
Append content to the end of each element's content in the set of matched
elements.
|
Match |
Match.append(Content content) |
Append content to the end of each element's content in the set of matched
elements.
|
Match |
Match.append(Match... content) |
Append content to the end of each element's content in the set of matched
elements.
|
Match |
Match.append(org.w3c.dom.Element... content) |
Append content to the end of each element's content in the set of matched
elements.
|
Match |
Match.attr(java.lang.String name,
java.lang.String value) |
Set an attribute on all elements in the set of matched elements.
|
Match |
Match.attr(java.lang.String name,
Content value) |
Set an attribute on all elements in the set of matched elements.
|
Match |
Match.before(java.lang.String content) |
Add content before each element in the set of matched elements.
|
Match |
Match.before(Content content) |
Add content before each element in the set of matched elements.
|
Match |
Match.before(Match... content) |
Add content before each element in the set of matched elements.
|
Match |
Match.before(org.w3c.dom.Element... content) |
Add content before each element in the set of matched elements.
|
Match |
Match.cdata(java.lang.String content) |
Set some CDATA content to all elements in the set of matched elements
(possibly replacing existing content).
|
Match |
Match.cdata(Content content) |
Set some CDATA content to all elements in the set of matched elements
(possibly replacing existing content).
|
Match |
Match.child() |
Find the first child of each element in the current set of matched
elements.
|
Match |
Match.child(int index) |
Find the child at a given index of each element in the current set of
matched elements.
|
Match |
Match.child(java.lang.String selector) |
Find the first matching child of each element in the current set of
matched elements
|
Match |
Match.child(Filter filter) |
Find the first matching child of each element in the current set of
matched elements
|
Match |
Match.children() |
Find all children of each element in the current set of matched elements.
|
Match |
Match.children(int... indexes) |
Find all children of each element at given indexes in the current set of
matched elements.
|
Match |
Match.children(java.lang.String selector) |
Find all children of each element in the current set of matched elements.
|
Match |
Match.children(Filter filter) |
Find all children of each element in the current set of matched elements.
|
Match |
Match.content(java.lang.Object content) |
Add some JAXB-marshallable XML content to all elements in the set of
matched elements (possibly replacing existing content).
|
Match |
Match.content(java.lang.String content) |
Add some XML content to all elements in the set of matched elements
(possibly replacing existing content).
|
Match |
Match.content(Content content) |
Add some XML content to all elements in the set of matched elements
(possibly replacing existing content).
|
Match |
Match.copy() |
Get a copy of the
Match wrapper. |
Match |
Match.each(java.lang.Iterable<? extends Each> each) |
Execute several callbacks for every element in the current set of matched
elements.
|
Match |
Match.each(Each each) |
Execute a callback for every element in the current set of matched
elements.
|
Match |
Match.each(Each... each) |
Execute several callbacks for every element in the current set of matched
elements.
|
Match |
Match.empty() |
Removes all content from all elements in the set of matched elements.
|
Match |
Match.eq(int... indexes) |
Reduce the current set of matched elements to the elements at the given
indexes.
|
Match |
Match.filter(java.lang.String selector) |
Reduce the current set of matched elements.
|
Match |
Match.filter(Filter filter) |
Reduce the current set of matched elements.
|
Match |
Match.find() |
Find all descendants of each element in the current set of matched
elements.
|
Match |
Match.find(java.lang.String selector) |
Find all descendants of each element in the current set of matched
elements.
|
Match |
Match.find(Filter filter) |
Find all descendants of each element in the current set of matched
elements.
|
Match |
Match.first() |
Get the first in a set of matched elements.
|
Match |
Match.has(java.lang.String selector) |
Reduce the set of matched element to those who have a descendant that
matches a selector.
|
Match |
Match.has(Filter filter) |
Reduce the set of matched element to those who have a descendant that
matches a filter.
|
Match |
Match.last() |
Get the last in a set of matched elements.
|
Match |
Match.leaf() |
Reduce the set of matched elements to the ones that are leaf elements
|
Match |
Match.matchAttr(java.lang.String name,
java.lang.String valueRegex) |
Reduce the set of matched elements by filtering out those whose attribute
content doesn't match a given regex
|
Match |
Match.matchAttr(java.lang.String name,
java.lang.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 |
Match.matchTag(java.lang.String regex) |
Reduce the set of matched elements by filtering out those whose tag name
doesn't match a given regex
|
Match |
Match.matchTag(java.lang.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 |
Match.matchText(java.lang.String regex) |
Reduce the set of matched elements by filtering out those whose text
content doesn't match a given regex
|
Match |
Match.matchText(java.lang.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) |
Match |
Match.namespace(java.lang.String namespacePrefix,
java.lang.String namespaceURI) |
Get a new Match with added namespace configuration for subsequent XPath
calls
|
Match |
Match.namespaces(java.util.Map<java.lang.String,java.lang.String> map) |
Get a new Match with added namespace configuration for subsequent XPath
calls
|
Match |
Match.next() |
Get the immediate next sibling of every element in set of matched
elements.
|
Match |
Match.next(java.lang.String selector) |
Get the immediate next sibling of every element in set of matched
elements, matching a selector
|
Match |
Match.next(Filter filter) |
Get the immediate next sibling of every element in set of matched
elements, matching a filter
|
Match |
Match.nextAll() |
Get all next siblings of every element in a set of matched elements
|
Match |
Match.nextAll(java.lang.String selector) |
Get all next siblings of every element in a set of matched elements,
matching a selector
|
Match |
Match.nextAll(Filter filter) |
Get all next siblings of every element in a set of matched elements,
matching a filter
|
Match |
Match.nextUntil(java.lang.String until) |
Get all next siblings of every element in a set of matched elements until
the provided selector matches
|
Match |
Match.nextUntil(java.lang.String until,
java.lang.String selector) |
Get all next siblings of every element in a set of matched elements,
matching a selector, until the provided selector matches
|
Match |
Match.nextUntil(java.lang.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 |
Match.nextUntil(Filter until) |
Get all next siblings of every element in a set of matched elements until
the provided filter matches
|
Match |
Match.nextUntil(Filter until,
java.lang.String selector) |
Get all next siblings of every element in a set of matched elements,
matching a selector until the provided filter matches
|
Match |
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 |
Match.not(java.lang.String selector) |
Remove elements from the set of matched elements.
|
Match |
Match.not(Filter filter) |
Remove elements from the set of matched elements.
|
Match |
Match.parent() |
Get the immediate parent elements of every element in a set of matched
elements
|
Match |
Match.parent(java.lang.String selector) |
Get the immediate parent elements of every element in a set of matched
elements, matching a selector
|
Match |
Match.parent(Filter filter) |
Get the immediate parent elements of every element in a set of matched
elements, matching a filter
|
Match |
Match.parents() |
Get all ancestor elements of every element in a set of matched elements
|
Match |
Match.parents(java.lang.String selector) |
Get all ancestor elements of every element in a set of matched elements,
matching a selector
|
Match |
Match.parents(Filter filter) |
Get all ancestor elements of every element in a set of matched elements,
matching a filter
|
Match |
Match.parentsUntil(java.lang.String until) |
Get all ancestors of every element in a set of matched elements until the
provided selector matches
|
Match |
Match.parentsUntil(java.lang.String until,
java.lang.String selector) |
Get all ancestors of every element in a set of matched elements, matching
a selector, until the provided selector matches
|
Match |
Match.parentsUntil(java.lang.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 |
Match.parentsUntil(Filter until) |
Get all ancestors of every element in a set of matched elements until the
provided filter matches
|
Match |
Match.parentsUntil(Filter until,
java.lang.String selector) |
Get all ancestors of every element in a set of matched elements, matching
a selector until the provided filter matches
|
Match |
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 |
Match.prepend(java.lang.String content) |
Prepend content to the beginning of each element's content in the set of
matched elements.
|
Match |
Match.prepend(Content content) |
Prepend content to the beginning of each element's content in the set of
matched elements.
|
Match |
Match.prepend(Match... content) |
Prepend content to the beginning of each element's content in the set of
matched elements.
|
Match |
Match.prepend(org.w3c.dom.Element... content) |
Prepend content to the beginning of each element's content in the set of
matched elements.
|
Match |
Match.prev() |
Get the immediate previous sibling of every element in set of matched
elements.
|
Match |
Match.prev(java.lang.String selector) |
Get the immediate previous sibling of every element in set of matched
elements, matching a selector
|
Match |
Match.prev(Filter filter) |
Get the immediate previous sibling of every element in set of matched
elements, matching a filter
|
Match |
Match.prevAll() |
Get all previous siblings of every element in a set of matched elements
|
Match |
Match.prevAll(java.lang.String selector) |
Get all previous siblings of every element in a set of matched elements,
matching a selector
|
Match |
Match.prevAll(Filter filter) |
Get all previous siblings of every element in a set of matched elements,
matching a filter
|
Match |
Match.prevUntil(java.lang.String until) |
Get all previous siblings of every element in a set of matched elements
until the provided selector matches
|
Match |
Match.prevUntil(java.lang.String until,
java.lang.String selector) |
Get all previous siblings of every element in a set of matched elements,
matching a selector, until the provided selector matches
|
Match |
Match.prevUntil(java.lang.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 |
Match.prevUntil(Filter until) |
Get all previous siblings of every element in a set of matched elements
until the provided filter matches
|
Match |
Match.prevUntil(Filter until,
java.lang.String selector) |
Get all previous siblings of every element in a set of matched elements,
matching a selector until the provided filter matches
|
Match |
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 |
Match.remove() |
Removes all elements from their parent nodes in the set of matched
elements.
|
Match |
Match.remove(java.lang.String selector) |
Removes all elements from their parent nodes in the set of matched
elements, matching a selector
|
Match |
Match.remove(Filter filter) |
Removes all elements from their parent nodes in the set of matched
elements, matching a filter
|
Match |
Match.removeAttr(java.lang.String name) |
Remove an attribute from all elements in the set of matched elements.
|
Match |
Match.rename(java.lang.String tag) |
Rename all tags in the set of matched elements to some new tag name
|
Match |
Match.rename(Content tag) |
Rename all tags in the set of matched elements to some new tag name
|
Match |
Match.replaceWith(java.lang.String content) |
Replace all elements in the set of matched elements with some new
content.
|
Match |
Match.replaceWith(Content content) |
Replace all elements in the set of matched elements with some new
content.
|
Match |
Match.replaceWith(Match... content) |
Replace all elements in the set of matched elements with some new
content.
|
Match |
Match.replaceWith(org.w3c.dom.Element... content) |
Replace all elements in the set of matched elements with some new
content.
|
Match |
Match.reverse() |
Reverse the order of the set of matched elements
|
Match |
Match.siblings() |
Get all siblings of every element in a set of matched elements
|
Match |
Match.siblings(java.lang.String selector) |
Get all siblings of every element in a set of matched elements, matching
a selector
|
Match |
Match.siblings(Filter filter) |
Get all siblings of every element in a set of matched elements, matching
a filter
|
Match |
Match.slice(int start) |
Reduce the set of matched elements by specifying a range of indexes
|
Match |
Match.slice(int start,
int end) |
Reduce the set of matched elements by specifying a range of indexes
|
Match |
Match.sort(java.util.Comparator<org.w3c.dom.Element> comparator) |
Allows to sort the result with the given comparator.
|
Match |
Match.text(java.lang.String content) |
Set some text content to all elements in the set of matched elements
(possibly replacing existing content).
|
Match |
Match.text(Content content) |
Set some text content to all elements in the set of matched elements
(possibly replacing existing content).
|
Match |
Match.transform(java.io.File transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.transform(java.io.InputStream transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.transform(java.io.Reader transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.transform(java.lang.String transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.transform(java.net.URL transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.transform(javax.xml.transform.Source transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.transform(javax.xml.transform.Transformer transformer) |
Transform all elements in the set of matched elements.
|
Match |
Match.unwrap() |
Removes all elements in the set of matched elements from their parents
|
Match |
Match.wrap(java.lang.String parent) |
Wrap all elements from their parent nodes in the set of matched elements
in a new parent element
|
Match |
Match.wrap(Content parent) |
Wrap all elements in the set of matched elements in a new parent element
|
Match |
Match.write(java.io.File file) |
Write the set of matched elements into a file
|
Match |
Match.write(java.io.OutputStream stream) |
Write the set of matched elements into a stream
|
Match |
Match.write(java.io.Writer writer) |
Write the set of matched elements into a writer
|
Match |
Match.xpath(java.lang.String expression) |
Match all elements given a certain XPath expression applied to each
element in the current set of matched elements.
|
Match |
Match.xpath(java.lang.String expression,
java.lang.Object... variables) |
Match all elements given a certain XPath expression applied to each
element in the current set of matched elements.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List<Match> |
Match.each() |
Get all elements in the set of matched elements in a list of matches,
every match representing one element
|
Modifier and Type | Method | Description |
---|---|---|
static Match |
JOOX.$(java.lang.String name,
Match... content) |
Create a new DOM element in an independent document
|
static Match |
JOOX.$(Match match) |
Convenience method for calling
$(match) |
Match |
Match.add(Match... elements) |
Add some elements to the set of matched elements
|
Match |
Match.after(Match... content) |
Add content after each element in the set of matched elements.
|
Match |
Match.append(Match... content) |
Append content to the end of each element's content in the set of matched
elements.
|
Match |
Match.before(Match... content) |
Add content before each element in the set of matched elements.
|
Match |
Match.prepend(Match... content) |
Prepend content to the beginning of each element's content in the set of
matched elements.
|
Match |
Match.replaceWith(Match... content) |
Replace all elements in the set of matched elements with some new
content.
|
Copyright © 2018. All rights reserved.