- add(Element...) - Method in interface org.joox.Match
-
Add some elements to the set of matched elements
- add(Match...) - Method in interface org.joox.Match
-
Add some elements to the set of matched elements
- after(String) - Method in interface org.joox.Match
-
Add content after each element in the set of matched elements.
- after(Content) - Method in interface org.joox.Match
-
Add content after each element in the set of matched elements.
- after(Match...) - Method in interface org.joox.Match
-
Add content after each element in the set of matched elements.
- after(Element...) - Method in interface org.joox.Match
-
Add content after each element in the set of matched elements.
- all() - Static method in class org.joox.JOOX
-
A filter that always returns true
- and(Filter...) - Static method in class org.joox.JOOX
-
Combine filters
- andSelf() - Method in interface org.joox.Match
-
Add the previous set of matched elements to the current one.
- append(String) - Method in interface org.joox.Match
-
Append content to the end of each element's content in the set of matched
elements.
- append(Content) - Method in interface org.joox.Match
-
Append content to the end of each element's content in the set of matched
elements.
- append(Match...) - Method in interface org.joox.Match
-
Append content to the end of each element's content in the set of matched
elements.
- append(Element...) - Method in interface org.joox.Match
-
Append content to the end of each element's content in the set of matched
elements.
- at(int...) - Static method in class org.joox.JOOX
-
A filter that returns true on elements at given iteration indexes
- attr(String) - Static method in class org.joox.JOOX
-
A filter that returns all elements with a given attribute
- attr(String, String...) - Static method in class org.joox.JOOX
-
A filter that returns all elements with a given attribute being set to a
given value
- attr(String) - Method in interface org.joox.Match
-
Get an attribute from the first element in the set of matched elements,
or null
if the first element does not have that attribute.
- attr(String, Class<T>) - Method in interface org.joox.Match
-
Get a converted attribute from the first element in the set of matched
elements, or null
if the first element does not have that
attribute.
- attr(String, String) - Method in interface org.joox.Match
-
Set an attribute on all elements in the set of matched elements.
- attr(String, Content) - Method in interface org.joox.Match
-
Set an attribute on all elements in the set of matched elements.
- Attrs - Interface in org.joox
-
- attrs(String) - Static method in class org.joox.JOOX
-
Create a mapper that returns all attributes with a given name
- attrs(String) - Method in interface org.joox.Match
-
Get an attribute from all elements in the set of matched elements
jOOX is namespace-unaware.
- attrs(String, Class<T>) - Method in interface org.joox.Match
-
Get a converted attribute from all elements in the set of matched
elements
jOOX is namespace-unaware.
- chain(Each...) - Static method in class org.joox.JOOX
-
Chain several instances of
Each
into a single one.
- chain(Iterable<? extends Each>) - Static method in class org.joox.JOOX
-
Chain several instances of
Each
into a single one.
- child() - Method in interface org.joox.Match
-
Find the first child of each element in the current set of matched
elements.
- child(String) - Method in interface org.joox.Match
-
Find the first matching child of each element in the current set of
matched elements
The selector provided to this method supports the following features:
* can be used to select everything
tag names can be used to select XML elements by tag
names (see
Element.getElementsByTagName(String)
.
- child(Filter) - Method in interface org.joox.Match
-
Find the first matching child of each element in the current set of
matched elements
- child(int) - Method in interface org.joox.Match
-
Find the child at a given index of each element in the current set of
matched elements.
- children() - Method in interface org.joox.Match
-
Find all children of each element in the current set of matched elements.
- children(String) - Method in interface org.joox.Match
-
Find all children of each element in the current set of matched elements.
- children(Filter) - Method in interface org.joox.Match
-
Find all children of each element in the current set of matched elements.
- children(int...) - Method in interface org.joox.Match
-
Find all children of each element at given indexes in the current set of
matched elements.
- Content - Interface in org.joox
-
A Callback providing (mostly new) content for each element
- content(Context) - Method in interface org.joox.Content
-
The callback method invoked for every matched element.
- content(String) - Static method in class org.joox.JOOX
-
Get a constant content that returns the same value
for all
elements.
- content(Object) - Static method in class org.joox.JOOX
-
Get a constant content that returns a marshalled, JAXB-annotated
value
for all elements.
- content() - Method in interface org.joox.Match
-
Get the XML content of the first element in the set of matched elements,
or null
if there are no matched elements
This is the same as calling content(0)
- content(int) - Method in interface org.joox.Match
-
Get the XML content at a given index in the current set of matched
elements.
- content(String) - Method in interface org.joox.Match
-
Add some XML content to all elements in the set of matched elements
(possibly replacing existing content).
- content(Object) - Method in interface org.joox.Match
-
Add some JAXB-marshallable XML content to all elements in the set of
matched elements (possibly replacing existing content).
- content(Content) - Method in interface org.joox.Match
-
Add some XML content to all elements in the set of matched elements
(possibly replacing existing content).
- contents() - Method in interface org.joox.Match
-
Get all XML content of the elements in the set of matched elements.
- contents(int...) - Method in interface org.joox.Match
-
Get all XML content of the elements at given indexes in the set of
matched elements.
- Context - Interface in org.joox
-
- convert(String, Class<T>) - Static method in class org.joox.JOOX
-
Convert a string value to any of these types:
String
: The conversion has no effect
Byte
: Numeric conversion.
- convert(List<String>, Class<T>) - Static method in class org.joox.JOOX
-
Convert several values
- copy() - Method in interface org.joox.Match
-
Get a copy of the
Match
wrapper.
- CSS2XPath - Class in org.joox.selector
-
A utility class converting CSS selector expressions to XPath expressions.
- CSS2XPath() - Constructor for class org.joox.selector.CSS2XPath
-
- css2xpath(String) - Static method in class org.joox.selector.CSS2XPath
-
Convert a CSS selector expression to an XPath expression
- css2xpath(String, boolean) - Static method in class org.joox.selector.CSS2XPath
-
Convert a CSS selector expression to an XPath expression
- Each - Interface in org.joox
-
A callback to be executed for a set of matched elements.
- each(Context) - Method in interface org.joox.Each
-
The callback method invoked for every matched element.
- each() - Method in interface org.joox.Match
-
Get all elements in the set of matched elements in a list of matches,
every match representing one element
- each(Each) - Method in interface org.joox.Match
-
Execute a callback for every element in the current set of matched
elements.
- each(Each...) - Method in interface org.joox.Match
-
Execute several callbacks for every element in the current set of matched
elements.
- each(Iterable<? extends Each>) - Method in interface org.joox.Match
-
Execute several callbacks for every element in the current set of matched
elements.
- element() - Method in interface org.joox.Context
-
The element currently being iterated on.
- elementIndex() - Method in interface org.joox.Context
-
The index of the element currently being iterated on.
- elementSize() - Method in interface org.joox.Context
-
The number of elements currently being iterated on.
- empty() - Method in interface org.joox.Match
-
Removes all content from all elements in the set of matched elements.
- eq(int...) - Method in interface org.joox.Match
-
Reduce the current set of matched elements to the elements at the given
indexes.
- even() - Static method in class org.joox.JOOX
-
A filter that returns true on all even iteration indexes (starting with
0!)
- id() - Method in interface org.joox.Match
-
Get the first id value
This is the same as calling id(0)
- id(int) - Method in interface org.joox.Match
-
Get an id value at a given index in the current set of matched elements.
- id(Class<T>) - Method in interface org.joox.Match
-
Get the first converted id value
- ids(String...) - Static method in class org.joox.JOOX
-
Create a filter matching id attributes
- ids() - Static method in class org.joox.JOOX
-
Create a mapper that returns all id
attributes
- ids() - Method in interface org.joox.Match
-
Get a list of id values in the current set of matched elements.
- ids(int...) - Method in interface org.joox.Match
-
Get a list of id values at given indexes in the current set of matched
elements.
- ids(Class<T>) - Method in interface org.joox.Match
-
Get a list of converted id values in the current set of matched elements.
- is(String) - Method in interface org.joox.Match
-
Check if at least one element in the set of matched elements satisfies a
selector.
- is(Filter) - Method in interface org.joox.Match
-
Check if at least one element in the set of matched elements satisfies a
filter.
- isEmpty() - Method in interface org.joox.Match
-
Whether there are any matched elements in the set of matched elements
- isNotEmpty() - Method in interface org.joox.Match
-
Whether there are any matched elements in the set of matched elements
- iterable(NodeList) - Static method in class org.joox.JOOX
-
- iterator(NodeList) - Static method in class org.joox.JOOX
-
- map(Context) - Method in interface org.joox.Mapper
-
The callback method invoked for every matched element.
- map(Mapper<E>) - Method in interface org.joox.Match
-
Map the set of matched elements to a list of something
- Mapper<E> - Interface in org.joox
-
A mapping type providing data for every element.
- match() - Method in interface org.joox.Context
-
The element in the set of matched elements from which this callback is
made.
- Match - Interface in org.joox
-
A wrapper type for
Element
This is the main type of the jOOX library.
- matchAttr(String, String) - Static method in class org.joox.JOOX
-
A filter that returns all elements whose text content matches a given
regex
- matchAttr(String, String) - Method in interface org.joox.Match
-
Reduce the set of matched elements by filtering out those whose attribute
content doesn't match a given regex
This is the same as calling matchAttr(name, valueRegex, true)
- matchAttr(String, String, boolean) - Method in interface org.joox.Match
-
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)
- matchIndex() - Method in interface org.joox.Context
-
The index of the element in the set of matched elements from which this
callback is made.
- matchSize() - Method in interface org.joox.Context
-
The number of elements in the set of matched elements from which this
callback is made.
- matchTag(String) - Static method in class org.joox.JOOX
-
A filter that returns all elements whose tag name matches a given regex
This is the same as calling matchTag(regex, true)
- matchTag(String, boolean) - Static method in class org.joox.JOOX
-
A filter that returns all elements whose tag name matches a given regex
This method allows for specifying whether namespace prefixes should be
ignored.
- matchTag(String) - Method in interface org.joox.Match
-
Reduce the set of matched elements by filtering out those whose tag name
doesn't match a given regex
This is the same as calling matchText(regex, true)
- matchTag(String, boolean) - Method in interface org.joox.Match
-
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)
- matchText(String) - Static method in class org.joox.JOOX
-
A filter that returns all elements whose text content matches a given
regex
- matchText(String) - Method in interface org.joox.Match
-
Reduce the set of matched elements by filtering out those whose text
content doesn't match a given regex
This is the same as calling matchText(regex, true)
- matchText(String, boolean) - Method in interface org.joox.Match
-
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)
- namespace(String, String) - Method in interface org.joox.Match
-
- namespacePrefix(String) - Static method in class org.joox.JOOX
-
A filter that returns all elements with a given namespace prefix
null
and the empty string are treated equally to indicate
that no namespace prefix should be present.
- namespacePrefix() - Method in interface org.joox.Match
-
Get the namespace prefix of the first element in the current set of
matched elements.
- namespacePrefix(int) - Method in interface org.joox.Match
-
Get a namespace prefix of the element at a given index in the current set
of matched elements.
- namespacePrefixes() - Method in interface org.joox.Match
-
Get a list of namespace prefixes of the elements in the current set of
matched elements.
- namespacePrefixes(int...) - Method in interface org.joox.Match
-
Get a list of namespace prefixes of the elements at given indexes in the
current set of matched elements.
- namespaces(Map<String, String>) - Method in interface org.joox.Match
-
Get a new Match with added namespace configuration for subsequent XPath
calls
- namespaceURI(String) - Static method in class org.joox.JOOX
-
A filter that returns all elements with a given namespace URI
null
and the empty string are treated equally to indicate
that no namespace URI should be present.
- namespaceURI() - Method in interface org.joox.Match
-
Get the namespace URI of the first element in the current set of matched
elements.
- namespaceURI(int) - Method in interface org.joox.Match
-
Get a namespace URI of the element at a given index in the current set of
matched elements.
- namespaceURIs() - Method in interface org.joox.Match
-
Get a list of namespace URIs of the elements in the current set of
matched elements.
- namespaceURIs(int...) - Method in interface org.joox.Match
-
Get a list of namespace URIs of the elements at given indexes in the
current set of matched elements.
- next() - Method in interface org.joox.Match
-
Get the immediate next sibling of every element in set of matched
elements.
- next(String) - Method in interface org.joox.Match
-
Get the immediate next sibling of every element in set of matched
elements, matching a selector
The selector provided to this method supports the following features:
* can be used to select everything
tag names can be used to select XML elements by tag
names (see
Element.getElementsByTagName(String)
.
- next(Filter) - Method in interface org.joox.Match
-
- nextAll() - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements
- nextAll(String) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements,
matching a selector
The selector provided to this method supports the following features:
* can be used to select everything
tag names can be used to select XML elements by tag
names (see
Element.getElementsByTagName(String)
.
- nextAll(Filter) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements,
matching a filter
The callback
Context
is populated like this:
Context.match()
- the matched element whose next siblings are
searched
Context.matchIndex()
- the index of the matched element whose
next siblings are searched
Context.element()
- the next siblings that is being filtered
Context.elementIndex()
- the relative index of the next
siblings that are being filtered
- nextUntil(String) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements until
the provided selector matches
The selector provided to this method supports the following features:
* can be used to select everything
tag names can be used to select XML elements by tag
names (see
Element.getElementsByTagName(String)
.
- nextUntil(Filter) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements until
the provided filter matches
The callback
Context
is populated like this:
Context.match()
- the matched element whose next siblings are
searched
Context.matchIndex()
- the index of the matched element whose
next siblings are searched
Context.element()
- the next siblings that is being filtered
Context.elementIndex()
- the relative index of the next
siblings that are being filtered
- nextUntil(String, String) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements,
matching a selector, until the provided selector matches
The selector provided to this method supports the following features:
* can be used to select everything
tag names can be used to select XML elements by tag
names (see
Element.getElementsByTagName(String)
.
- nextUntil(String, Filter) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements,
matching a filter, until the provided selector matches
The callback
Context
is populated like this:
Context.match()
- the matched element whose next siblings are
searched
Context.matchIndex()
- the index of the matched element whose
next siblings are searched
Context.element()
- the next siblings that is being filtered
Context.elementIndex()
- the relative index of the next
siblings that are being filtered
- nextUntil(Filter, String) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements,
matching a selector until the provided filter matches
The callback
Context
is populated like this:
Context.match()
- the matched element whose next siblings are
searched
Context.matchIndex()
- the index of the matched element whose
next siblings are searched
Context.element()
- the next siblings that is being filtered
Context.elementIndex()
- the relative index of the next
siblings that are being filtered
- nextUntil(Filter, Filter) - Method in interface org.joox.Match
-
Get all next siblings of every element in a set of matched elements,
matching a filter until the provided filter matches
The callback
Context
is populated like this:
Context.match()
- the matched element whose next siblings are
searched
Context.matchIndex()
- the index of the matched element whose
next siblings are searched
Context.element()
- the next siblings that is being filtered
Context.elementIndex()
- the relative index of the next
siblings that are being filtered
- none() - Static method in class org.joox.JOOX
-
A filter that always returns false
- not(Filter) - Static method in class org.joox.JOOX
-
Inverse a filter
- not(String) - Method in interface org.joox.Match
-
Remove elements from the set of matched elements.
- not(Filter) - Method in interface org.joox.Match
-
Remove elements from the set of matched elements.
- tag(String) - Static method in class org.joox.JOOX
-
A filter that returns all elements with a given tag name
This is the same as calling tag(tagName, true)
- tag(String, boolean) - Static method in class org.joox.JOOX
-
A filter that returns all elements with a given tag name
This method allows for specifying whether namespace prefixes should be
ignored.
- tag() - Method in interface org.joox.Match
-
Get the tag name of the first element in the current set of matched
elements.
- tag(int) - Method in interface org.joox.Match
-
Get a tag name of the element at a given index in the current set of
matched elements.
- tags() - Method in interface org.joox.Match
-
Get a list of tag names of the elements in the current set of matched
elements.
- tags(int...) - Method in interface org.joox.Match
-
Get a list of tag names of the elements at given indexes in the current
set of matched elements.
- text() - Method in interface org.joox.Match
-
Get the text content of the first element in the set of matched elements,
or null
if there are no matched elements.
- text(Class<T>) - Method in interface org.joox.Match
-
Get the converted text content of the first element in the set of matched
elements, or null
if there are no matched elements.
- text(int) - Method in interface org.joox.Match
-
Get the text content at a given index in the current set of matched
elements.
- text(String) - Method in interface org.joox.Match
-
Set some text content to all elements in the set of matched elements
(possibly replacing existing content).
- text(Content) - Method in interface org.joox.Match
-
Set some text content to all elements in the set of matched elements
(possibly replacing existing content).
- texts() - Method in interface org.joox.Match
-
Get all text content of the elements in the set of matched elements.
- texts(Class<T>) - Method in interface org.joox.Match
-
Get all converted text content of the elements in the set of matched
elements.
- texts(int...) - Method in interface org.joox.Match
-
Get all text content of the elements at given indexes in the set of
matched elements.
- transform(Transformer) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.
- transform(Source) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.
- transform(InputStream) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.
- transform(Reader) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.
- transform(URL) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.
- transform(File) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.
- transform(String) - Method in interface org.joox.Match
-
Transform all elements in the set of matched elements.